-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace OrphaPacket by ORDO CSV (#84)
- Loading branch information
Showing
10 changed files
with
50 additions
and
56 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
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 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
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,34 @@ | ||
## Rules related to ORDO download | ||
|
||
|
||
rule genes_ordo_download: # -- download ORDO CSV file | ||
output: | ||
csv=f"work/download/genes/ordo/{DV.ordo}/ordo.csv", | ||
csv_md5=f"work/download/genes/ordo/{DV.ordo}/ordo.csv.md5", | ||
shell: | ||
r""" | ||
wget --no-check-certificate \ | ||
-O {output.csv} \ | ||
'https://data.bioontology.org/ontologies/ORDO/submissions/28/download?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb&download_format=csv' | ||
md5sum {output.csv} > {output.csv_md5} | ||
""" | ||
|
||
rule genes_ordo_convert: # -- postprocess file for HGNC gene IDs | ||
input: | ||
csv="work/download/genes/ordo/{version}/ordo.csv", | ||
output: | ||
tsv="work/genes/ordo/{version}/orpha_diseases.tsv", | ||
tsv_md5="work/genes/ordo/{version}/orpha_diseases.tsv.md5", | ||
shell: | ||
""" | ||
export TMPDIR=$(mktemp -d) | ||
trap "rm -rf $TMPDIR" ERR EXIT | ||
python ./scripts/genes-orpha-diseases.py {input.csv} \ | ||
| qsv sort -d '\t' \ | ||
| qsv fmt -t '\t' \ | ||
> {output.tsv} | ||
md5sum {output.tsv} > {output.tsv}.md5 | ||
""" |
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
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