-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprepareDataForTesting.sh
More file actions
39 lines (33 loc) · 915 Bytes
/
Copy pathprepareDataForTesting.sh
File metadata and controls
39 lines (33 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -ex
echo "WARNING: Using miniature/empty drug and SNP metadata files for testing purposes. Don't use for main run!"
mkdir data
touch data/dbsnp_selected.tsv
echo '[
{
"PharmGKB": "PA450085",
"name": "Irinotecan",
"DrugBank": "DB00762",
"MeSH": [
"C051890",
"D000077146"
],
"isCancerDrug": true
},
{
"PharmGKB": "PA451363",
"name": "Simvastatin",
"DrugBank": "DB00641",
"MeSH": [
"D019821"
],
"isCancerDrug": false
}
]
' > data/selected_chemicals.json
echo "54658 UGT1A1 protein-coding" > data/gene_names.tsv
echo "1576 CYP3A4 protein-coding" >> data/gene_names.tsv
echo "1577 CYP3A5 protein-coding" >> data/gene_names.tsv
# Unzip the annotated training data of pharmacogenomics relations
gunzip -c annotations.variant_other.bioc.xml.gz > data/annotations.variant_other.bioc.xml
gunzip -c annotations.variant_star_rs.bioc.xml.gz > data/annotations.variant_star_rs.bioc.xml