-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update spatial decomposition resource scripts (#429)
* add resource scripts * add spatial data summary to simulated dataset * add simulated dataset properties in comment * update id * remove id from params.yaml Co-authored-by: Kai Waldrant <[email protected]> * add label highmem to config * check if .obs contains key is_primary_data --------- Co-authored-by: Kai Waldrant <[email protected]> Former-commit-id: 949427c
- Loading branch information
1 parent
6f7ef2c
commit c698895
Showing
5 changed files
with
61 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Simulating spot-resolution spatial data with alpha = 1 | ||
|
||
cat > /tmp/params.yaml << 'HERE' | ||
id: spatial_decomposition_process_datasets | ||
input_states: s3://openproblems-data/resources/datasets/**/state.yaml | ||
settings: '{"output_spatial_masked": "$id/spatial_masked.h5ad", "output_single_cell": "$id/single_cell_ref.h5ad", "output_solution": "$id/solution.h5ad", "alpha": 1.0, "simulated_data": "$id/dataset_simulated.h5ad"}' | ||
rename_keys: 'input:output_dataset' | ||
output_state: "$id/state.yaml" | ||
publish_dir: s3://openproblems-data/resources/spatial_decomposition/datasets | ||
HERE | ||
|
||
cat > /tmp/nextflow.config << HERE | ||
process { | ||
executor = 'awsbatch' | ||
withName:'.*publishStatesProc' { | ||
memory = '16GB' | ||
disk = '100GB' | ||
} | ||
withLabel:highmem { | ||
memory = '350GB' | ||
} | ||
} | ||
HERE | ||
|
||
tw launch https://github.com/openproblems-bio/openproblems-v2.git \ | ||
--revision main_build \ | ||
--pull-latest \ | ||
--main-script target/nextflow/spatial_decomposition/workflows/process_datasets/main.nf \ | ||
--workspace 53907369739130 \ | ||
--compute-env 1pK56PjjzeraOOC2LDZvN2 \ | ||
--params-file /tmp/params.yaml \ | ||
--entry-name auto \ | ||
--config /tmp/nextflow.config \ | ||
# --labels spatial_decomposition,process_datasets |
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,22 @@ | ||
#!/bin/bash | ||
|
||
RUN_ID="run_$(date +%Y-%m-%d_%H-%M-%S)" | ||
publish_dir="s3://openproblems-data/resources/spatial_decomposition/results/${RUN_ID}" | ||
|
||
cat > /tmp/params.yaml << HERE | ||
input_states: s3://openproblems-data/resources/spatial_decomposition/datasets/**/state.yaml | ||
rename_keys: 'input_single_cell:output_single_cell,input_spatial_masked:output_spatial_masked,input_solution:output_solution' | ||
output_state: "state.yaml" | ||
publish_dir: "$publish_dir" | ||
HERE | ||
|
||
tw launch https://github.com/openproblems-bio/openproblems-v2.git \ | ||
--revision main_build \ | ||
--pull-latest \ | ||
--main-script target/nextflow/spatial_decomposition/workflows/run_benchmark/main.nf \ | ||
--workspace 53907369739130 \ | ||
--compute-env 1pK56PjjzeraOOC2LDZvN2 \ | ||
--params-file /tmp/params.yaml \ | ||
--entry-name auto \ | ||
--config src/wf_utils/labels_tw.config \ | ||
--labels spatial_decomposition,full |
Empty file.
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