Skip to content

Commit efefbe7

Browse files
committed
Refresh datasets page from the republished 2.4 data (Figshare v2)
Regenerate every number on the Datasets page from the build now served as version 2 of Figshare article 33990850. gen_dataset_stats.py now also writes dataset_summary_statistics.csv and dataset_curve_metrics_wide.csv, which were previously produced by notebooks/dataset_documentation.ipynb against hardcoded local paths and had not been recomputed for 2.4. It also fixes two counting bugs: - Lines with quoted fields (e.g. samples other_names "b1_4, b1_5, b1_6") were split on raw delimiters, shifting columns. This undercounted MPNST samples (47 vs 133) and Novartis (348 vs 386), overcounted the cell-line datasets by one, and garbled model_type values. - Sample ids written as floats ("3524.0", novartis experiments) are normalized so they match the integer ids in the omics files. Also add a delta_auc entry to the dose-response metric glossary and update the refresh instructions in docs/README.md.
1 parent 7aa6c01 commit efefbe7

6 files changed

Lines changed: 177 additions & 68 deletions

File tree

‎docs/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ To update pages navigate to `docs/source/`, all .rst and .md files live here. He
6868
**Note:**
6969
- When adding pages, reStructuredText files are the most sphinx friendly and allow for use of helpful directives. However, Markdown files can be used and will render properly when the myst-parser extension is used.
7070
- New pages must be added to the `.. toctree::` in the `index.rst` to be recognized by Sphinx.
71-
- The counts on the Datasets page (`datasets_included.rst`) are generated directly from a local CoderData build using `scripts/gen_dataset_stats.py`, which writes a machine-readable summary to `docs/source/_static/dataset_counts.csv`. To refresh the numbers for a new release, run `python scripts/gen_dataset_stats.py --build-dir <build_output_dir> --output docs/source/_static/dataset_counts.csv` and update the tables in `datasets_included.rst` accordingly.
71+
- The counts on the Datasets page (`datasets_included.rst`) are generated directly from a local CoderData build using `scripts/gen_dataset_stats.py`. To refresh the numbers for a new release, run `python scripts/gen_dataset_stats.py --build-dir <build_output_dir>` from the repository root. This rewrites `dataset_counts.csv`, `dataset_summary_statistics.csv` and `dataset_curve_metrics_wide.csv` in `docs/source/_static/`. The last two are rendered on the page directly; copy the sample and drug counts from `dataset_counts.csv` into the Datasets and Modalities table by hand.
7272
- Currently the API reference does not include documentation for `plot_2D_respones_metric`, `format`, `split_train_test_validate`, and `split_train_other`. It seems that the most updated `coderdata` directory currently does not include docstrings for these functions.
7373

7474
### Tutorial
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
dataset,model_type,samples,drugs,genes,experiments,transcriptomics,proteomics,phosphoproteomics,mutations,copy_number,drug_descriptors,combinations,dose_response_metrics
2-
beataml,ex vivo,1022,164,19221,324980,13573491,1437831,0,7233,0,264696,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
2+
beataml,ex vivo,1022,164,19221,322110,13573491,1437831,0,7233,0,264696,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
33
bladder,patient derived organoid;tumor;patient derived xenograft;xenograft derived organoid,134,50,19403,33000,815975,0,0,3568,1135661,80700,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
4-
ccle,cell line,503,24,19380,115430,9114448,2180178,0,224974,6788934,38736,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
4+
ccle,cell line,502,24,19380,115430,9114448,2180178,0,224974,6788934,38736,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
55
colorectal,patient derived organoid;tumor,61,10,20839,1400,156993,0,0,44634,689155,16140,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
66
cptac,tumor,1139,0,19278,0,21170373,9486498,0,252398,19261183,0,0,
7-
ctrpv2,cell line,848,460,19381,3101330,15739656,3011948,0,389773,10906812,742440,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
8-
fimm,cell line,53,52,19353,26630,919104,250970,0,12743,760509,83928,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
9-
gcsi,cell line,571,43,19380,132290,10148440,2247800,0,276904,7197012,69402,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
10-
gdscv1,cell line,985,291,19158,2454890,18501510,4694495,0,3385316,37266972,469674,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
11-
gdscv2,cell line,807,170,19158,1146910,15192913,3879361,0,2852337,30512750,274380,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
12-
hcmi,patient derived organoid,1087,0,19218,0,12540435,0,0,100602,6044025,0,0,
7+
ctrpv2,cell line,847,460,19381,3101330,15739656,3011948,0,389773,10906812,742440,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
8+
fimm,cell line,52,52,19353,26630,919104,250970,0,12743,760509,83928,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
9+
gcsi,cell line,570,43,19380,132290,10148440,2247800,0,276904,7197012,69402,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
10+
gdscv1,cell line,984,291,19158,2454890,18501510,4694495,0,3385316,37266972,469674,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
11+
gdscv2,cell line,806,169,19158,1139640,15192913,3879361,0,2852337,30512750,272766,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
12+
hcmi,patient derived organoid,1087,0,19220,0,12540435,0,0,104261,6044025,0,0,
1313
liver,patient derived organoid,62,76,27163,44530,1063454,452662,0,12810,1686901,122664,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
14-
mpnst,3D-MEDS;patient derived xenograft;tumor,47,39,19731,27985,1612748,52638,0,84720,541907,62946,75,aac;abc;auc;delta_auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2;lmm;mrecist;tgi
15-
nci60,cell line,84,23267,19368,12364040,1340360,387298,0,54400,1094391,37551324,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
16-
novartis,patient derived xenograft,348,25,19042,6950,6215451,0,0,106692,6219933,40350,0,abc;lmm;mrecist;tgi
14+
mpnst,3D-MEDS;patient derived xenograft;tumor,133,39,19731,27985,1612748,52638,0,84720,541907,62946,75,aac;abc;auc;delta_auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2;lmm;mrecist;tgi
15+
nci60,cell line,83,55143,19368,29189940,1340360,387298,0,54400,1094391,89025012,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
16+
novartis,patient derived xenograft,386,25,19042,6950,6215451,0,0,106692,6219933,40350,0,abc;lmm;mrecist;tgi
1717
pancreatic,patient derived organoid,49,25,19070,1900,1031014,0,0,78589,955688,40350,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
18-
prism,cell line,479,1418,19381,6385340,9076152,2144440,0,249890,6992973,2288652,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
18+
prism,cell line,478,1416,19381,6381390,9076152,2144440,0,249890,6992973,2287038,0,aac;auc;dss;fit_auc;fit_ec50;fit_ec50se;fit_einf;fit_hs;fit_ic50;fit_r2
1919
sarcoma,tumor;patient derived organoid,36,34,17895,275,573198,0,0,92,0,54876,0,published_auc
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
dataset,num_drugs,aac,abc,auc,dss,fit_auc,fit_ec50,fit_ec50se,fit_einf,fit_hs,fit_ic50,fit_r2,lmm,mRESCIST,published_auc,TGI
2-
beataml,164,X,,X,X,X,X,X,X,X,X,X,,,,
3-
bladder,50,X,,X,X,X,X,X,X,X,X,X,,,,
4-
ccle,24,X,,X,X,X,X,X,X,X,X,X,,,,
5-
colorectal,10,X,,X,X,X,X,X,X,X,X,X,,,,
6-
ctrpv2,459,X,,X,X,X,X,X,X,X,X,X,,,,
7-
fimm,52,X,,X,X,X,X,X,X,X,X,X,,,,
8-
gcsi,44,X,,X,X,X,X,X,X,X,X,X,,,,
9-
gdscv1,294,X,,X,X,X,X,X,X,X,X,X,,,,
10-
gdscv2,171,X,,X,X,X,X,X,X,X,X,X,,,,
11-
liver,76,X,,X,X,X,X,X,X,X,X,X,,,,
12-
mpnst,30,X,X,X,X,X,X,X,X,X,X,X,X,X,,X
13-
nci60,55157,X,,X,X,X,X,X,X,X,X,X,,,,
14-
novartis,25,,X,,,,,,,,,,X,X,,X
15-
pancreatic,25,X,,X,X,X,X,X,X,X,X,X,,,,
16-
prism,1419,X,,X,X,X,X,X,X,X,X,X,,,,
17-
sarcoma,34,,,,,,,,,,,,,,X,
1+
dataset,num_drugs,aac,abc,auc,delta_auc,dss,fit_auc,fit_ec50,fit_ec50se,fit_einf,fit_hs,fit_ic50,fit_r2,lmm,mrecist,published_auc,tgi
2+
beataml,139,X,,X,,X,X,X,X,X,X,X,X,,,,
3+
bladder,50,X,,X,,X,X,X,X,X,X,X,X,,,,
4+
ccle,24,X,,X,,X,X,X,X,X,X,X,X,,,,
5+
colorectal,10,X,,X,,X,X,X,X,X,X,X,X,,,,
6+
ctrpv2,460,X,,X,,X,X,X,X,X,X,X,X,,,,
7+
fimm,52,X,,X,,X,X,X,X,X,X,X,X,,,,
8+
gcsi,43,X,,X,,X,X,X,X,X,X,X,X,,,,
9+
gdscv1,291,X,,X,,X,X,X,X,X,X,X,X,,,,
10+
gdscv2,169,X,,X,,X,X,X,X,X,X,X,X,,,,
11+
liver,73,X,,X,,X,X,X,X,X,X,X,X,,,,
12+
mpnst,39,X,X,X,X,X,X,X,X,X,X,X,X,X,X,,X
13+
nci60,55143,X,,X,,X,X,X,X,X,X,X,X,,,,
14+
novartis,23,,X,,,,,,,,,,,X,X,,X
15+
pancreatic,5,X,,X,,X,X,X,X,X,X,X,X,,,,
16+
prism,1416,X,,X,,X,X,X,X,X,X,X,X,,,,
17+
sarcoma,32,,,,,,,,,,,,,,,X,
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
dataset,sample_drug_pairs,sample_drug_transcript_pairs,sample_drug_transcriptomics_mutation_pairs,sample_drug_transcriptomics_copynumber_pairs,sample_drug_mutation_copynumber_pairs
2-
beataml,31926,4137,3958,,
2+
beataml,32211,4176,3995,,
33
bladder,3300,840,640,640,3100
4-
ccle,11543,10887,10792,10887,11118
4+
ccle,11543,10933,10885,8375,8398
55
colorectal,140,60,60,60,140
66
cptac,,,,,
7-
ctrpv2,309401,300507,295742,299698,300616
8-
fimm,2663,2457,2457,2457,2611
9-
gcsi,13398,12506,12338,12506,13112
10-
gdscv1,247753,245220,241999,241240,242570
11-
gdscv2,115440,114373,112829,112523,113133
7+
ctrpv2,310133,300871,297687,216046,216830
8+
fimm,2663,2457,2457,2098,2098
9+
gcsi,13229,12368,12259,9186,9248
10+
gdscv1,245489,242980,239787,239034,240351
11+
gdscv2,113964,112911,111387,111085,111687
1212
hcmi,,,,,
1313
liver,4453,4453,4453,4453,4453
14-
mpnst,272,193,184,191,184
15-
nci60,2960756,2329149,2329132,2329149,2784474
14+
mpnst,2736,2657,181,181,181
15+
nci60,2909092,2318378,2318362,2063572,2063572
1616
novartis,1766,1734,1734,1723,1723
1717
pancreatic,190,190,185,185,185
18-
prism,638983,632078,630672,632078,636226
18+
prism,637674,632199,632199,497743,499088
1919
sarcoma,275,234,187,,

‎docs/source/datasets_included.rst‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ Dataset Overview
1818

1919
"BeatAML", "[1]_, [2]_", "ex vivo", "1022", "164", "X", "X", "X", "X", "X", ""
2020
"Bladder", "[3]_", "patient derived organoid; patient derived xenograft; tumor; xenograft derived organoid", "134", "50", "X", "X", "X", "", "X", "X"
21-
"CCLE", "[4]_", "cell line", "503", "24", "X", "X", "X", "X", "X", "X"
21+
"CCLE", "[4]_", "cell line", "502", "24", "X", "X", "X", "X", "X", "X"
2222
"Colorectal", "[18]_", "patient derived organoid; tumor", "61", "10", "X", "X", "X", "", "X", "X"
2323
"CPTAC", "[5]_", "tumor", "1139", "", "", "", "X", "X", "X", "X"
24-
"CTRPv2", "[6]_, [7]_, [8]_", "cell line", "848", "460", "X", "X", "X", "X", "X", "X"
25-
"FIMM", "[9]_, [10]_", "cell line", "53", "52", "X", "X", "X", "X", "X", "X"
26-
"GDSC v1", "[23]_, [24]_, [25]_", "cell line", "985", "291", "X", "X", "X", "X", "X", "X"
27-
"GDSC v2", "[23]_, [24]_, [25]_", "cell line", "807", "170", "X", "X", "X", "X", "X", "X"
28-
"gCSI", "[21]_, [22]_", "cell line", "571", "43", "X", "X", "X", "X", "X", "X"
24+
"CTRPv2", "[6]_, [7]_, [8]_", "cell line", "847", "460", "X", "X", "X", "X", "X", "X"
25+
"FIMM", "[9]_, [10]_", "cell line", "52", "52", "X", "X", "X", "X", "X", "X"
26+
"GDSC v1", "[23]_, [24]_, [25]_", "cell line", "984", "291", "X", "X", "X", "X", "X", "X"
27+
"GDSC v2", "[23]_, [24]_, [25]_", "cell line", "806", "169", "X", "X", "X", "X", "X", "X"
28+
"gCSI", "[21]_, [22]_", "cell line", "570", "43", "X", "X", "X", "X", "X", "X"
2929
"HCMI", "[11]_", "patient derived organoid", "1087", "", "", "", "X", "", "X", "X"
3030
"Liver", "[19]_", "patient derived organoid", "62", "76", "X", "X", "X", "X", "X", "X"
31-
"MPNST", "[12]_", "3D-MEDS; patient derived xenograft; tumor", "47", "39", "X", "X", "X", "X", "X", "X"
32-
"NCI60", "[13]_", "cell line", "84", "23267", "X", "X", "X", "X", "X", "X"
33-
"Novartis", "[20]_", "patient derived xenograft", "348", "25", "X", "X", "X", "", "X", "X"
31+
"MPNST", "[12]_", "3D-MEDS; patient derived xenograft; tumor", "133", "39", "X", "X", "X", "X", "X", "X"
32+
"NCI60", "[13]_", "cell line", "83", "55143", "X", "X", "X", "X", "X", "X"
33+
"Novartis", "[20]_", "patient derived xenograft", "386", "25", "X", "X", "X", "", "X", "X"
3434
"Pancreatic", "[14]_", "patient derived organoid", "49", "25", "X", "X", "X", "", "X", "X"
35-
"PRISM", "[15]_, [16]_", "cell line", "479", "1418", "X", "X", "X", "X", "X", "X"
35+
"PRISM", "[15]_, [16]_", "cell line", "478", "1416", "X", "X", "X", "X", "X", "X"
3636
"Sarcoma", "[17]_", "tumor; patient derived organoid", "36", "34", "X", "X", "X", "", "X", ""
3737

3838

@@ -78,6 +78,7 @@ Types of dose-response metrics collected include:
7878
- AAC - Area above the response curve; the complement value of AUC.
7979
- ABC - Area between curves, the difference between the AUC of the control and the treated cells. (PDX)
8080
- AUC - Area under the fitted hill slope curve across all doses present. Lower AUC signifies lower levels of growth.
81+
- delta_auc - Difference in AUC between a single drug and its combination (single-drug AUC minus combination AUC); used for MPNST treated-microtissue combination experiments.
8182
- DSS - A multiparametric dose response value, that takes into account control and treated cells; the Drug Sensitivity Score is described in Yadav et al., 2014.
8283
- fit_auc - Area under the fitted hill slope curve across the common interval of −log10[M], where the molar concentration ranges from 10⁻⁴ to 10⁻¹⁰.
8384
- fit_ec50 - The fitted curve prediction of the −log10M concentration at which 50% of the maximal effect is observed.

0 commit comments

Comments
 (0)