-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun_test_local.sh
More file actions
executable file
·103 lines (92 loc) · 2.52 KB
/
run_test_local.sh
File metadata and controls
executable file
·103 lines (92 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
# get the root of the directory
REPO_ROOT=$(git rev-parse --show-toplevel)
# ensure that the command below is run from the root of the repository
cd "$REPO_ROOT"
set -e
echo "Running benchmark on test data"
echo " Make sure to run 'scripts/project/build_all_docker_containers.sh'!"
# generate a unique id
RUN_ID="testrun_$(date +%Y-%m-%d_%H-%M-%S)"
publish_dir="temp/results/${RUN_ID}"
cat > /tmp/params_settings.yaml << HERE
default_methods:
- custom_segmentation
- basic_transcript_assignment
- basic_count_aggregation
- basic_qc_filter
- alpha_shapes
- normalize_by_volume
- ssam
- no_correction
segmentation_methods:
- custom_segmentation
# - cellpose
- binning
# - stardist
# - watershed
transcript_assignment_methods:
- basic_transcript_assignment
#- baysor
# - clustermap
# - pciseq
# - comseg
# - proseg
count_aggregation_methods:
- basic_count_aggregation
qc_filtering_methods:
- basic_qc_filter
volume_calculation_methods:
- alpha_shapes
normalization_methods:
- normalize_by_volume
# - normalize_by_counts
# - spanorm
celltype_annotation_methods:
- ssam
# - tacco
# - moscot
# - mapmycells
# - tangram
# - singler
# - rctd
expression_correction_methods:
- no_correction
# - gene_efficiency_correction
# - resolvi_correction
method_parameters_yaml: /tmp/method_params.yaml
HERE
# Write the parameters to file (input_states version, NOTE: enable `-entry auto` for this)
cat > /tmp/params.yaml << HERE
input_states: resources_test/task_ist_preprocessing/**/state.yaml
rename_keys: 'input_sc:output_sc;input_sp:output_sp'
save_spatial_data: false
settings: '$(yq -o json /tmp/params_settings.yaml | jq -c .)'
output_state: "state.yaml"
publish_dir: "$publish_dir"
HERE
# #Write the parameters to file (specific id version, NOTE: disable `-entry auto` for this)
# cat > /tmp/params.yaml << HERE
# id: mouse_brain_combined
# input_sc: resources_test/task_ist_preprocessing/mouse_brain_combined/scrnaseq_reference.h5ad
# input_sp: resources_test/task_ist_preprocessing/mouse_brain_combined/raw_ist.zarr
# save_spatial_data: true
# $(cat /tmp/params_settings.yaml)
# output_state: "state.yaml"
# publish_dir: "$publish_dir"
# HERE
cat > /tmp/method_params.yaml << HERE
parameters:
binning:
default:
bin_size: 30
sweep:
bin_size: [20, 30, 40]
HERE
nextflow run . \
-main-script target/nextflow/workflows/run_benchmark/main.nf \
-profile docker \
-resume \
-entry auto \
-c common/nextflow_helpers/labels_ci.config \
-params-file /tmp/params.yaml