Skip to content

Commit 9cde888

Browse files
author
RubyFore
committed
Update README.md
Added examples to readme of how to run code to generate bladderpdo datasets from command line.
1 parent fb33bbb commit 9cde888

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

build/bladderpdo/README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,36 @@ Copy number data is available at [this synapse link](https://www.synapse.org/Syn
1414

1515
## Drug Dose-Response Experiments
1616

17-
For these data, we had complete drug dose-response data to recalculate curves, available on Synapse in the [Lee Bladder PDO Datasets](https://www.synapse.org/Synapse:syn64765430) folder.
17+
For these data, we had complete drug dose-response data to recalculate curves, available on Synapse in the [Lee Bladder PDO Datasets](https://www.synapse.org/Synapse:syn64765430) folder.
18+
19+
## To Run Code
20+
21+
### First sample and omics steps are the same, by hand locally or in full build process
22+
```
23+
python3 00_createBladderPDOSampleFile.py --token $SYNAPSE_AUTH_TOKEN -p prevSamples
24+
25+
# for mutation data (-m)
26+
python3 01_createBladderPDOOmicsFiles.py --token $SYNAPSE_AUTH_TOKEN -s curSamples -g genes.csv -m
27+
# for expressiondata (-e)
28+
python3 01_createBladderPDOOmicsFiles.py --token $SYNAPSE_AUTH_TOKEN -s curSamples -g genes.csv -e
29+
# for copynumber (-c)
30+
python3 01_createBladderPDOOmicsFiles.py --token $SYNAPSE_AUTH_TOKEN -s curSamples -g genes.csv -c
31+
```
32+
33+
### For drug and experiment steps, command depends on location of helper scripts
34+
```
35+
# for running locally (from build directory):
36+
python3 -m bladderpdo.02_createBladderPDODrugsFile --token $SYNAPSE_AUTH_TOKEN -d prevDrugFilePath -o ./bladderpdo/bladderpdo_drugs.tsv
37+
# for running in Docker as part of full build
38+
python3 02_createBladderPDODrugsFile.py --token $SYNAPSE_AUTH_TOKEN -d prevDrugFilePath -o /tmp/bladderpdo_drugs.tsv
39+
40+
# for running locally (from build directory):
41+
python3 utils/build_drug_desc.py --drugtable ./bladderpdo/bladderpdo_drugs.tsv --desctable ./bladderpdo/bladderpdo_drug_descriptors.tsv.gz
42+
# for running in docker as part of full build
43+
python3 build_drug_desc.py --drugtable /tmp/bladderpdo_drugs.tsv --desctable /tmp/bladderpdo_drug_descriptors.tsv.gz
44+
45+
46+
python3 03_createBladderPDOExperimentFile.py --token $SYNAPSE_AUTH_TOKEN --drugfile curDrugFile --curSampleFile curSampleFile --output /tmp/bladderpdo_doserep.tsv
47+
48+
python3 fit_curve.py --input /tmp/bladderpdo_doserep.tsv --output /tmp/bladderpdo_experiments.tsv
49+
```

0 commit comments

Comments
 (0)