-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.nf
More file actions
46 lines (39 loc) · 1.28 KB
/
main.nf
File metadata and controls
46 lines (39 loc) · 1.28 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
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
log.info """\
=============================================
C E L L S 2 S T A T S - N F P I P E L I N E
=============================================
run_dir: ${params.run_dir}
container_url: ${params.container_url}
container_tag: ${params.container_tag}
error_on_missing: ${params.error_on_missing}
skip_html_report: ${params.skip_html_report}
skip_cellprofiler: ${params.skip_cellprofiler}
visualization: ${params.visualization}
visualization_only: ${params.visualization_only}
segmentation: ${params.segmentation}
panel: ${params.panel}
max_unassigned: ${params.max_unassigned}
no_error_on_invalid: ${params.no_error_on_invalid}
batch: ${params.batch}
"""
// Check mandatory parameters
if (!params.run_dir) {
error "An input AVITI24 cytoprofiling result directory is required."
}
// Check if optional inputs were provided
def run_panel = params.panel ? params.panel : []
def run_manifest = params.run_manifest ? params.run_manifest : []
def segmentation = params.segmentation ? params.segmentation : []
// Import local modules
include { CELLS2STATS } from './modules/local/cells2stats'
workflow {
CELLS2STATS (
params.id,
params.run_dir,
run_panel,
run_manifest,
segmentation,
)
}