Skip to content

Commit caec500

Browse files
committed
Merge branch 'development' into pub_fig
2 parents 112df75 + a5602b1 commit caec500

File tree

12 files changed

+3589
-367
lines changed

12 files changed

+3589
-367
lines changed

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,12 @@ Then,
3838
1. Open a PR from development to main with these changes.
3939
2. Wait for a review and merge.
4040
3. Create a new release on GitHub with the version number. Update the release notes with the changes made in this version.
41+
4. If the Docker github action fails (e.g., no space left on device), you can do it manually:
42+
- Enable Docker buildx locally. If you don't have a builder that supports multi-arch, create one:
43+
```{bash}
44+
docker buildx ls
45+
docker buildx create --use --name multiarch-builder
46+
docker buildx inspect --bootstrap
47+
```
48+
- Login to ghcr `docker login --username <GitHub-Username> --password <personal-access-token> ghcr.io`
49+
- Build the multi-platform image, insert the correct version `docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/daisybio/drevalpy:v<INSERT-VERSION> -t ghcr.io/daisybio/drevalpy:latest --push .`

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ data/TOYv1
99
data/TOYv2
1010
data/CTRPv1
1111
data/CTRPv2
12+
data/meta
1213

1314
# Byte-compiled / optimized / DLL files
1415
__pycache__/

README.md

Lines changed: 60 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,34 @@ By contributing your model to the DrEval catalog, you can increase your work's e
2222

2323
![DrEval](docs/_static/img/overview.png)
2424

25-
Use DrEval to Build Drug Response Models That Have an Impact
25+
---
2626

27-
1. Maintained, up-to-date baseline catalog, no need to re-implement literature models
27+
Use DrEval to build drug response models that have an impact
2828

29-
2. Gold standard datasets for benchmarking
29+
1. Maintained, up-to-date baseline catalog, no need to re-implement literature models
30+
2. Gold standard datasets for benchmarking
31+
3. Consistent application-driven evaluation
32+
4. Ablation studies with permutation tests
33+
5. Cross-study evaluation for generalization analysis
34+
6. Optimized nextflow pipeline for fast experiments
35+
7. Easy-to-use hyperparameter tuning
36+
8. Paper-ready visualizations to display performance
3037

31-
3. Consistent application-driven evaluation
32-
33-
4. Ablation studies with permutation tests
34-
35-
5. Cross-study evaluation for generalization analysis
36-
37-
6. Optimized nextflow pipeline for fast experiments
38-
39-
7. Easy-to-use hyperparameter tuning
40-
41-
8. Paper-ready visualizations to display performance
38+
---
4239

4340
This project is a collaboration of the Technical University of Munich (TUM, Germany)
4441
and the Freie Universität Berlin (FU, Germany).
4542

43+
## Demo
44+
4645
Check out our demo notebook in Colab:
4746
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/daisybio/drevalpy/blob/development/dreval_colab_demo.ipynb)
4847

48+
Expected runtime on a normal machine:
49+
50+
- Standalone demo: 38 minutes
51+
- Nextflow demo: 5 minutes
52+
4953
## Installation
5054

5155
Using pip:
@@ -176,34 +180,70 @@ nextflow run nf-core/drugresponseeval \
176180
-profile docker \
177181
--run_id ec50_run \
178182
--dataset_name CTRPv2 \
179-
--cross_study_datasets CTRPv1,CCLE,GDSC1,GDSC2 \
183+
--cross_study_datasets CTRPv1,CCLE,GDSC1,GDSC2,PDX_Bruna,BeatAML2 \
180184
--models RandomForest \
181185
--baselines NaiveMeanEffectsPredictor \
182-
--test_mode LPO,LCO,LTO,LDO \
186+
--test_mode LCO \
183187
--measure pEC50
184188

185189
# AUC run
186190
nextflow run nf-core/drugresponseeval \
187191
-profile docker \
188192
--run_id auc_run \
189193
--dataset_name CTRPv2 \
190-
--cross_study_datasets CTRPv1,CCLE,GDSC1,GDSC2 \
194+
--cross_study_datasets CTRPv1,CCLE,GDSC1,GDSC2,PDX_Bruna,BeatAML2 \
191195
--models RandomForest \
192196
--baselines NaiveMeanEffectsPredictor \
193-
--test_mode LPO,LCO,LTO,LDO \
197+
--test_mode LCO \
194198
--measure AUC
195199

196200
# Invariant ablation run
201+
# Run this on CPU
197202
nextflow run nf-core/drugresponseeval \
198203
-profile docker \
199-
--run_id invariant_ablation \
204+
--run_id invariant-rf \
200205
--dataset_name CTRPv2 \
201-
--models MultiOmicsRandomForest,DIPK \
206+
--models MultiOmicsRandomForest \
202207
--baselines NaiveMeanEffectsPredictor \
203208
--test_mode LPO,LCO,LDO \
204209
--randomization_mode SVRC,SVRD \
205210
--randomization_type invariant \
206211
--measure LN_IC50
212+
213+
# modify the profile to run this on GPU, if possible
214+
nextflow run nf-core/drugresponseeval \
215+
-profile docker \
216+
--run_id invariant-dipk \
217+
--dataset_name CTRPv2 \
218+
--models DIPK \
219+
--baselines NaiveMeanEffectsPredictor \
220+
--test_mode LPO,LCO,LDO \
221+
--randomization_mode SVRC,SVRD \
222+
--randomization_type invariant \
223+
--measure LN_IC50
224+
225+
## Inference on BeatAMl2, PDX_Bruna
226+
# run this on CPU
227+
nextflow run nf-core/drugresponseeval \
228+
-profile docker \
229+
--run_id infer_pdx_beat \
230+
--dataset_name CTRPv2 \
231+
--cross_study_datasets PDX_Bruna,BeatAML2 \
232+
--models RandomForest,SimpleNeuralNetwork,GradientBoosting,SRMF,ElasticNet,NaivePredictor,NaiveDrugMeanPredictor,NaiveCellLineMeanPredictor \
233+
--baselines NaiveMeanEffectsPredictor \
234+
--test_mode LPO,LCO,LDO \
235+
--measure LN_IC50
236+
237+
# modify profile to run this on GPU, if possible
238+
nextflow run nf-core/drugresponseeval \
239+
-profile docker \
240+
--run_id dipk_pdx_beat \
241+
--dataset_name CTRPv2 \
242+
--cross_study_datasets PDX_Bruna,BeatAML2 \
243+
--models DIPK \
244+
--baselines NaiveMeanEffectsPredictor \
245+
--test_mode LPO,LCO,LDO \
246+
--measure LN_IC50
207247
```
208248

209249
## Contact

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
# the built documents.
5757
#
5858
# The short X.Y version.
59-
version = "1.3.6"
59+
version = "1.4.0"
6060
# The full version, including alpha/beta/rc tags.
61-
release = "1.3.6"
61+
release = "1.4.0"
6262

6363
# The language for content autogenerated by Sphinx. Refer to documentation
6464
# for a list of supported languages.

0 commit comments

Comments
 (0)