-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun_full_local.sh
More file actions
executable file
·98 lines (88 loc) · 2.29 KB
/
run_full_local.sh
File metadata and controls
executable file
·98 lines (88 loc) · 2.29 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
#!/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"
# NOTE: depending on the the datasets and components, you may need to launch this workflow
# on a different compute platform (e.g. a HPC, AWS Cloud, Azure Cloud, Google Cloud).
# please refer to the nextflow information for more details:
# https://www.nextflow.io/docs/latest/
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="run_$(date +%Y-%m-%d_%H-%M-%S)"
publish_dir="resources/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
# - split
method_parameters_yaml: /tmp/method_params.yaml
HERE
# write the parameters to file
cat > /tmp/params.yaml << HERE
input_states: resources/datasets/**/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
cat > /tmp/method_params.yaml << HERE
parameters:
binning:
default:
bin_size: 30
sweep:
bin_size: [20, 30, 40]
HERE
# run the benchmark
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