generated from biobricks-ai/brick-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from biobricks-ai/run-20241206
Pipeline cleanup and generate HDT
- Loading branch information
Showing
10 changed files
with
100 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
https://github.com/biobricks-ai/pubchem-annotations#4bc6de375ba7dbdbd2986b53d952e41ace592551 | ||
https://github.com/biobricks-ai/pubchem-annotations#3b1b417e43b17b6caf75a730f8c4119aa76f8c16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ logs | |
/download | ||
/list | ||
/brick | ||
/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,45 @@ | ||
schema: '2.0' | ||
stages: {} | ||
stages: | ||
update_biobricks_dependencies: | ||
cmd: stages/00_update_biobricks_deps.sh | ||
deps: | ||
- path: stages/00_update_biobricks_deps.sh | ||
hash: md5 | ||
md5: fc8078fa10a515838c0bdd46f3d89127 | ||
size: 32 | ||
process-annotations: | ||
cmd: stages/01_process.py | ||
deps: | ||
- path: .bb/dependencies.txt | ||
hash: md5 | ||
md5: 8da1cbf5465d917e74655708a4357ddf | ||
size: 93 | ||
- path: stages/01_process.py | ||
hash: md5 | ||
md5: ca5bfb5063f33d221f14e6b010a896be | ||
size: 6025 | ||
outs: | ||
- path: cache/process/combined_annotations.ttl | ||
hash: md5 | ||
md5: 9e407f729c445a864cf3ef5cb5803568 | ||
size: 7063736995 | ||
build: | ||
cmd: stages/02_build.sh | ||
deps: | ||
- path: cache/process/combined_annotations.ttl | ||
hash: md5 | ||
md5: 9e407f729c445a864cf3ef5cb5803568 | ||
size: 7063736995 | ||
- path: stages/02_build.sh | ||
hash: md5 | ||
md5: 9e3974eba3e2118f230e10967dec1987 | ||
size: 515 | ||
outs: | ||
- path: brick/annotations.hdt | ||
hash: md5 | ||
md5: 188f7cc4f3b623e1a213c6aa4a12569b | ||
size: 1026674753 | ||
- path: brick/annotations.hdt.index.v1-1 | ||
hash: md5 | ||
md5: daa1e09f9599fb6db5979580d2e8ea41 | ||
size: 500214214 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
stages: | ||
|
||
update_biobricks_dependencies: | ||
cmd: stages/00_update_biobricks_dependencies.py | ||
cmd: stages/00_update_biobricks_deps.sh | ||
deps: | ||
- stages/00_update_biobricks_deps.sh | ||
|
||
process-annotations: | ||
cmd: stages/01_process.py | ||
deps: | ||
- .bb/dependencies.txt | ||
- stages/01_process.py | ||
outs: | ||
- cache/process/combined_annotations.ttl | ||
build: | ||
cmd: stages/02_build.sh | ||
deps: | ||
- cache/process/combined_annotations.ttl | ||
- stages/02_build.sh | ||
outs: | ||
- brick/pubchem-annotations.hdt | ||
- brick/annotations.hdt | ||
- brick/annotations.hdt.index.v1-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/bash | ||
|
||
biobricks pull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# Get local path | ||
localpath=$(pwd) | ||
echo "Local path: $localpath" | ||
|
||
# Get cache path | ||
cachepath="$localpath/cache" | ||
echo "Cache path: $cachepath" | ||
|
||
# Create brick directory | ||
brickpath="$localpath/brick" | ||
mkdir -p $brickpath | ||
echo "Brick path: $brickpath" | ||
|
||
export base_uri="http://rdf.ncbi.nlm.nih.gov/pubchem/annotations.hdt" | ||
|
||
input_path="$cachepath/process/combined_annotations.ttl" | ||
output_path="$brickpath/annotations.hdt" | ||
|
||
rdf2hdt -i -p -B "$base_uri" "$input_path" "$output_path" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import rdflib | ||
import pathlib | ||
from rdflib_hdt import HDTStore | ||
|