-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
99 additions
and
3 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 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,21 @@ | ||
|
||
__merge__: ../../../api/comp_method.yaml | ||
|
||
functionality: | ||
name: grn_inference_scenicplus | ||
namespace: "workflows" | ||
info: | ||
label: grn_inference_scenicplus | ||
summary: "Infers GRNs from multiomics data using scenicplus." | ||
|
||
resources: | ||
- type: nextflow_script | ||
path: main.nf | ||
entrypoint: run_wf | ||
dependencies: | ||
- name: grn_methods/scenicplus | ||
|
||
platforms: | ||
- type: nextflow | ||
directives: | ||
label: [ midtime, midmem, lowcpu ] |
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,21 @@ | ||
workflow run_wf { | ||
take: | ||
input_ch | ||
|
||
main: | ||
output_ch = input_ch | ||
|
||
| scenicplus.run( | ||
fromState: [multiomics_rna: "multiomics_rna", | ||
multiomics_atac: "multiomics_atac", | ||
temp_dir: "temp_dir", | ||
num_workers: "num_workers" | ||
], | ||
toState: [prediction:"prediction"] | ||
) | ||
|
||
| setState(["prediction"]) | ||
|
||
emit: | ||
output_ch | ||
} |
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,44 @@ | ||
#!/bin/bash | ||
|
||
RUN_ID="scenicplus" | ||
resources_dir="s3://openproblems-data/resources_test/grn" | ||
publish_dir="s3://openproblems-data/resources_test/grn/results/${RUN_ID}" | ||
|
||
# resources_dir="./resources_test" | ||
# publish_dir="./output/${RUN_ID}" | ||
|
||
num_workers=20 | ||
|
||
param_file="./params/${RUN_ID}.yaml" | ||
# Start writing to the YAML file | ||
cat > $param_file << HERE | ||
param_list: | ||
- id: ${RUN_ID} | ||
multiomics_rna: ${resources_dir}/grn-benchmark/multiomics_rna.h5ad | ||
multiomics_atac: ${resources_dir}/grn-benchmark/multiomics_atac.h5ad | ||
num_workers: $num_workers | ||
temp_dir: ./tmp/grn | ||
output_state: "state.yaml" | ||
publish_dir: "$publish_dir" | ||
HERE | ||
|
||
|
||
# nextflow run . \ | ||
# -main-script target/nextflow/workflows/grn_inference_scenicplus/main.nf \ | ||
# -profile docker \ | ||
# -with-trace \ | ||
# -c src/common/nextflow_helpers/labels_ci.config \ | ||
# -params-file params/${RUN_ID}.yaml | ||
|
||
|
||
# ./tw-windows-x86_64.exe launch ` | ||
# https://github.com/openproblems-bio/task_grn_benchmark.git ` | ||
# --revision build/main ` | ||
# --pull-latest ` | ||
# --main-script target/nextflow/workflows/run_grn_inference/main.nf ` | ||
# --workspace 53907369739130 ` | ||
# --compute-env 6TeIFgV5OY4pJCk8I0bfOh ` | ||
# --params-file ./params/celloracle_test.yaml ` | ||
# --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