-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
145 lines (137 loc) · 5.11 KB
/
nextflow.config
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
nextflow.enable.dsl = 2
executor {
$local {
queueSize = 5 // number of jobs to run in parallel, replace based on your system
}
}
profiles {
standard {
process.executor = "local"
}
gpu {
process.executor = "local"
}
}
conda {
enabled = true
cacheDir = "${projectDir}/env/.cache"
useMamba = true
}
params {
// environments are defined per subworkflow
env {
root = "${projectDir}/env/${params.profile}"
preprocess_data = "${params.env.root}/preprocess_data.yaml"
run_models_jax = "${params.env.root}/run_models_jax.yaml"
run_milo = "${params.env.root}/run_milo.yaml"
run_models_torch = "${params.env.root}/run_models_torch.yaml"
run_models = "${params.env.root}/run_models_jax.yaml"
compute_metrics = "${params.env.root}/compute_metrics.yaml"
analyze_results = "${params.env.root}/analyze_results.yaml"
compute_2dreps = "${params.env.root}/compute_2dreps.yaml"
}
conf {
root = "${projectDir}/conf"
datasets = "${params.conf.root}/datasets"
}
publish {
root = "${projectDir}/results"
}
workflows {
root = "${projectDir}/workflows"
}
subworkflows {
root = "${projectDir}/subworkflows"
preprocess_data = "${params.subworkflows.root}/preprocess_data/main.nf"
run_models = "${params.subworkflows.root}/run_models/main.nf"
compute_metrics = "${params.subworkflows.root}/compute_metrics/main.nf"
compute_sciplex_metrics = "${params.subworkflows.root}/compute_sciplex_metrics/main.nf"
analyze_results = "${params.subworkflows.root}/analyze_results/main.nf"
}
modules {
root = "${projectDir}/modules"
preprocess = "${params.modules.root}/preprocess.nf"
fit_mrvi = "${params.modules.root}/fit_mrvi.nf"
run_milo = "${params.modules.root}/run_milo.nf"
run_milode = "${params.modules.root}/run_milode.nf"
get_latent_mrvi = "${params.modules.root}/get_latent_mrvi.nf"
fit_and_get_latent_composition_baseline = "${params.modules.root}/fit_and_get_latent_composition_baseline.nf"
scib = "${params.modules.root}/scib.nf"
vendi = "${params.modules.root}/vendi.nf"
produce_figures_symsim_new = "${params.modules.root}/produce_figures_symsim_new.nf"
conduct_generic_analysis = "${params.modules.root}/conduct_generic_analysis.nf"
compute_rf = "${params.modules.root}/compute_rf.nf"
compute_2dreps = "${params.modules.root}/compute_2dreps.nf"
compute_sciplex_metrics = "${params.modules.root}/compute_sciplex_metrics.nf"
}
bin {
root = "${projectDir}/bin"
preprocess = "${params.bin.root}/preprocess.py"
fit_mrvi = "${params.bin.root}/fit_mrvi.py"
run_milo = "${params.bin.root}/run_milo.R"
run_milode = "${params.bin.root}/run_milode.R"
get_latent_mrvi = "${params.bin.root}/get_latent_mrvi.py"
fit_and_get_latent_composition_baseline = "${params.bin.root}/fit_and_get_latent_composition_baseline.py"
scib = "${params.bin.root}/scib.py"
vendi = "${params.bin.root}/vendi.py"
produce_figures_symsim_new = "${params.bin.root}/produce_figures_symsim_new.py"
conduct_generic_analysis = "${params.bin.root}/conduct_generic_analysis.py"
compute_rf = "${params.bin.root}/compute_rf.py"
compute_2dreps = "${params.bin.root}/compute_2dreps.py"
compute_sciplex_metrics = "${params.bin.root}/compute_sciplex_metrics.py"
}
// only relative paths need to be specified here since module outputs
// are placed in temporary work directories
outputs {
data = "data"
models = "models"
metrics = "metrics"
latents = "latents"
distance_matrices = "distance_matrices"
figures = "figures"
}
}
process {
publishDir = "${params.publish.root}/${params.workflow}"
withName: "preprocess" {
conda = "${params.env.preprocess_data}"
}
withName: "fit_mrvi" {
conda = "${params.env.run_models}"
}
withName: "run_milo" {
conda = "${params.env.run_milo}"
}
withName: "run_milode" {
conda = "${params.env.run_milo}"
}
withName: "get_latent_mrvi" {
conda = "${params.env.run_models}"
}
withName: "fit_and_get_latent_composition_baseline" {
conda = "${params.env.run_models_torch}"
}
withName: "scib" {
conda = "${params.env.compute_metrics}"
}
withName: "vendi" {
conda = "${params.env.compute_metrics}"
}
withName: "produce_figures_symsim_new" {
conda = "${params.env.analyze_results}"
}
withName: "conduct_generic_analysis" {
conda = "${params.env.analyze_results}"
}
withName: "compute_rf" {
conda = "${params.env.compute_metrics}"
}
withName: "compute_2dreps" {
conda = "${params.env.compute_2dreps}"
}
withName: "compute_sciplex_metrics" {
conda = "${params.env.compute_metrics}"
}
}
// params.workflow is passed in from the command line as --workflow
includeConfig "${params.conf.root}/${params.workflow}.config"