forked from openproblems-bio/task_perturbation_prediction
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update_scripts (openproblems-bio#52)
* update * fix labels * add back epoch logging * add message * revert multigpu changes in LGC_ensemble * simply tower config * fix scripts * use mean_across_compounds as test data * implement alternative implementations of the metrics in R * fix descriptions, add alternative metrics in wf * apply patch to fix lgc_ensemble on bootstrapped data Co-authored-by: ttunja <60556758+ttunja@users.noreply.github.com> * fix component names * fix metric ids * fill std nas in transformer_ensemble * fix resource * fix method id --------- Co-authored-by: ttunja <60556758+ttunja@users.noreply.github.com>
- Loading branch information
Showing
29 changed files
with
454 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
RUN_ID="tval_$(date +%Y-%m-%d_%H-%M-%S)" | ||
publish_dir="s3://openproblems-data/resources/dge_perturbation_prediction/results/${RUN_ID}" | ||
|
||
cat > /tmp/params.yaml << HERE | ||
id: dge_perturbation_task | ||
input_states: s3://openproblems-bio/public/neurips-2023-competition/workflow-resources/neurips-2023-data/state.yaml | ||
output_state: "state.yaml" | ||
publish_dir: "$publish_dir" | ||
rename_keys: "de_train_h5ad:de_train_h5ad,de_test_h5ad:de_test_h5ad,id_map:id_map" | ||
settings: '{"layer": "t"}' | ||
HERE | ||
|
||
tw launch https://github.com/openproblems-bio/task-dge-perturbation-prediction.git \ | ||
--revision add_cell_obs_to_uns_build \ | ||
--pull-latest \ | ||
--main-script target/nextflow/workflows/run_benchmark/main.nf \ | ||
--workspace 53907369739130 \ | ||
--compute-env 6TeIFgV5OY4pJCk8I0bfOh \ | ||
--params-file /tmp/params.yaml \ | ||
--entry-name auto \ | ||
--config src/common/nextflow_helpers/labels_tw.config |
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
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
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
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,46 @@ | ||
__merge__: ../../api/comp_metric.yaml | ||
functionality: | ||
name: mean_correlation_r | ||
info: | ||
metrics: | ||
- name: mean_pearson_r | ||
label: Mean Pearson bis | ||
summary: The mean of Pearson correlations per row (perturbation). | ||
description: | | ||
The **Mean Pearson Correlation** is computed as follows: | ||
$$ | ||
\textrm{Mean-Pearson} = \frac{1}{R}\sum_{i=1}^R\frac{\textrm{Cov}(\mathbf{y}_i, \mathbf{\hat{y}}_i)}{\textrm{Var}(\mathbf{y}_i) \cdot \textrm{Var}(\mathbf{\hat{y}}_i)} | ||
$$ | ||
where $(R)$ is the number of scored rows, and $(\mathbf{y}_i)$ and $(\mathbf{\hat{y}}_i)$ are the actual and predicted values, respectively, for row $(i)$. | ||
repository_url: null | ||
documentation_url: null | ||
min: -1 | ||
max: 1 | ||
maximize: true | ||
- name: mean_spearman_r | ||
label: Mean Spearman bis | ||
summary: The mean of Spearman correlations per row (perturbation). | ||
description: | | ||
The **Mean Spearman Correlation** is computed as follows: | ||
$$ | ||
\textrm{Mean-Pearson} = \frac{1}{R}\sum_{i=1}^R\frac{\textrm{Cov}(\mathbf{r}_i, \mathbf{\hat{r}}_i)}{\textrm{Var}(\mathbf{r}_i) \cdot \textrm{Var}(\mathbf{\hat{r}}_i)} | ||
$$ | ||
where $(R)$ is the number of scored rows, and $(\mathbf{r}_i)$ and $(\mathbf{\hat{r}}_i)$ are the ranks of the actual and predicted values, respectively, for row $(i)$. | ||
repository_url: null | ||
documentation_url: null | ||
min: -1 | ||
max: 1 | ||
maximize: true | ||
resources: | ||
- type: r_script | ||
path: script.R | ||
platforms: | ||
- type: docker | ||
image: ghcr.io/openproblems-bio/base_r:1.0.4 | ||
- type: nextflow | ||
directives: | ||
label: [ midtime, highmem, highcpu ] |
Oops, something went wrong.