@@ -11,26 +11,95 @@ set -e
1111resources_test_s3=s3://openproblems-data/resources_test/task_ist_preprocessing
1212publish_dir_s3=" s3://openproblems-nextflow/temp/results/$( date +%Y-%m-%d_%H-%M-%S) "
1313
14- # write the parameters to file
14+ cat > /tmp/params_settings.yaml << HERE
15+ default_methods:
16+ - custom_segmentation
17+ - basic_transcript_assignment
18+ - basic_count_aggregation
19+ - basic_qc_filter
20+ - alpha_shapes
21+ - normalize_by_volume
22+ - ssam
23+ - no_correction
24+ segmentation_methods:
25+ - custom_segmentation
26+ - cellpose
27+ - binning
28+ - stardist
29+ - watershed
30+ transcript_assignment_methods:
31+ - basic_transcript_assignment
32+ - baysor
33+ - clustermap
34+ - pciseq
35+ - comseg
36+ - proseg
37+ count_aggregation_methods:
38+ - basic_count_aggregation
39+ qc_filtering_methods:
40+ - basic_qc_filter
41+ volume_calculation_methods:
42+ - alpha_shapes
43+ normalization_methods:
44+ - normalize_by_volume
45+ - normalize_by_counts
46+ - spanorm
47+ celltype_annotation_methods:
48+ - ssam
49+ - tacco
50+ - moscot
51+ expression_correction_methods:
52+ - no_correction
53+ - gene_efficiency_correction
54+ - resolvi_correction
55+ #method_parameters_yaml: /tmp/method_params.yaml
56+ HERE
57+
58+ # Write the parameters to file (input_states version, NOTE: enable `-entry_name auto` for this)
1559cat > /tmp/params.yaml << HERE
16- id: mouse_brain_combined
17- input_sc: $resources_test_s3 /mouse_brain_combined/scrnaseq_reference.h5ad
18- input_sp: $resources_test_s3 /mouse_brain_combined/raw_ist.zarr
60+ input_states: $resources_test_s3 /**/state.yaml
61+ rename_keys: 'input_sc:output_sc;input_sp:output_sp'
62+ save_spatial_data: false
63+ settings: '$( yq -o json /tmp/params_settings.yaml | jq -c .) '
1964output_state: "state.yaml"
20- publish_dir: $publish_dir_s3
65+ publish_dir: "$publish_dir_s3 "
66+ HERE
67+
68+ # # write the parameters to file (specific id version, NOTE: disable `-entry_name auto` for this)
69+ # cat > /tmp/params.yaml << HERE
70+ # id: mouse_brain_combined
71+ # input_sc: $resources_test_s3/mouse_brain_combined/scrnaseq_reference.h5ad
72+ # input_sp: $resources_test_s3/mouse_brain_combined/raw_ist.zarr
73+ # save_spatial_data: false
74+ # settings: '$(yq -o json /tmp/params_settings.yaml | jq -c .)'
75+ # output_state: "state.yaml"
76+ # publish_dir: $publish_dir_s3
77+ # HERE
78+
79+ # NOTE: this file needs to be made available on the seqera cloud workspace and the
80+ # path needs to be added above (method_parameters_yaml)
81+ cat > /tmp/method_params.yaml << HERE
82+ parameters:
83+ binning:
84+ default:
85+ bin_size: 30
86+ sweep:
87+ bin_size: [20, 30, 40]
2188HERE
2289
90+
2391tw launch https://github.com/openproblems-bio/task_ist_preprocessing.git \
2492 --revision build/main \
2593 --pull-latest \
2694 --main-script target/nextflow/workflows/run_benchmark/main.nf \
2795 --workspace 53907369739130 \
2896 --params-file /tmp/params.yaml \
97+ --entry-name auto \
2998 --config common/nextflow_helpers/labels_tw.config \
3099 --labels task_ist_preprocessing,test
31100
32- aws s3 sync \
33- s3://openproblems-nextflow/temp/results \
34- temp_results \
35- --profile op \
36- --dryrun
101+ # aws s3 sync \
102+ # s3://openproblems-nextflow/temp/results \
103+ # temp_results \
104+ # --profile op \
105+ # --dryrun
0 commit comments