-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add sc data preprocessing * fix task file info that was moved * refactor scripts * make uns metadata component an R component for now * add split_sc to wf * add pseudobulked data to preprocessing output * fixes to split_sc and process_dataset wf * update resource directory * fix defaults * make sc columns categorical * fix control setting in sc adata * update --------- Co-authored-by: Robrecht Cannoodt <[email protected]>
- Loading branch information
Showing
34 changed files
with
275 additions
and
115 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# if users change the scripts, the changes should not be committed. | ||
/create_*_*.s |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_python_method \ | ||
--language python \ | ||
--type method |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_python_metric \ | ||
--language python \ | ||
--type metric |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_r_method \ | ||
--language r \ | ||
--type method |
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,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/create_component \ | ||
--name my_r_metric \ | ||
--language r \ | ||
--type metric |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
common/create_task_readme/create_task_readme \ | ||
--task_dir src \ | ||
--output README.md | ||
set -e | ||
|
||
common/scripts/create_task_readme --input src/api |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Build all components in a namespace (refer https://viash.io/reference/cli/ns_build.html) | ||
viash ns build --parallel |
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Build all components in a namespace (refer https://viash.io/reference/cli/ns_build.html) | ||
# and set up the container via a cached build | ||
viash ns build --parallel --setup cachedbuild |
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,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Test all components in a namespace (refer https://viash.io/reference/cli/ns_test.html) | ||
viash ns test --parallel |
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
scripts/run_stability_tw.sh → scripts/run_benchmark/run_stability_tw.sh
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
6 changes: 3 additions & 3 deletions
6
scripts/sync_results.sh → scripts/run_benchmark/sync_results.sh
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/bin/bash | ||
|
||
aws s3 sync \ | ||
s3://openproblems-data/resources/perturbation_prediction/results/ \ | ||
s3://openproblems-data/resources/task_perturbation_prediction/results/ \ | ||
output/benchmark_results/ \ | ||
--delete --dryrun | ||
|
||
# sync back modified results | ||
aws s3 sync \ | ||
output/benchmark_results/ \ | ||
s3://openproblems-data/resources/perturbation_prediction/results/ \ | ||
s3://openproblems-data/resources/task_perturbation_prediction/results/ \ | ||
--delete --dryrun | ||
|
||
# sync one run | ||
runid=run_2024-06-01_00-03-09; aws s3 sync \ | ||
output/benchmark_results/${runid}/ \ | ||
s3://openproblems-data/resources/perturbation_prediction/results/${runid}/ \ | ||
s3://openproblems-data/resources/task_perturbation_prediction/results/${runid}/ \ | ||
--delete --dryrun |
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,5 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
common/scripts/sync_resources |
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
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,25 @@ | ||
library(anndata) | ||
|
||
## VIASH START | ||
par <- list( | ||
"input" = "resources/neurips-2023-raw/pseudobulk_cleaned.h5ad", | ||
"dataset_id" = "neurips-2023-data", | ||
"dataset_name" = "NeurIPS2023 scPerturb DGE", | ||
"dataset_url" = "TBD", | ||
"dataset_reference" = "TBD", | ||
"dataset_summary" = "Differential gene expression ...", | ||
"dataset_description" = "For this competition, we designed ...", | ||
"dataset_organism" = "homo_sapiens", | ||
"output" = "resources/datasets/neurips-2023-data/pseudobulk_uns.h5ad" | ||
) | ||
## VIASH END | ||
|
||
cat(">> Load dataset\n") | ||
input <- read_h5ad(par$input) | ||
|
||
for (key in c("dataset_id", "dataset_name", "dataset_url", "dataset_reference", "dataset_summary", "dataset_description", "dataset_organism")) { | ||
input$uns[[key]] <- par[[key]] | ||
} | ||
|
||
cat(">> Save filtered bulk dataset\n") | ||
input$write_h5ad(par$output, compression = "gzip") |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.