-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.nf
37 lines (26 loc) · 995 Bytes
/
main.nf
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
nextflow.enable.dsl=2
include { pipeline_ngsmanager } from './pipelines/pipeline_ngsmanager'
include { logHeader } from './functions/common.nf'
log.info logHeader('NGSMANAGER')
def helpMessage() {
log.info"""
Usage:
# single-sample
nextflow run http://gtc-devsrv:3000/bioinfo/ngsmanager --cmp 2021.TE.8600.1.96 --riscd 210108-11234826-2AS_mapping-bowtie
Mandatory arguments
--cmp sample id
--riscd analysis result to be used as input
--sample_type one of: 'bacterium', 'virus', 'sarscov2'
# multi-sample
nextflow run http://gtc-devsrv:3000/bioinfo/ngsmanager --samplesheet samples.csv
Mandatory arguments
--samplesheet samplesheet containing samples metadata
""".stripIndent()
}
workflow {
if (!params.containsKey('cmp') && !params.containsKey('samplesheet')){
helpMessage()
exit 1
}
pipeline_ngsmanager()
}