forked from nhhaidee/scovtree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.nf
50 lines (38 loc) · 1.4 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env nextflow
/*
========================================================================================
nhhaidee/scovtree
========================================================================================
nhhaidee/scovtree Analysis Pipeline.
#### Homepage / Documentation
https://github.com/nhhaidee/scovtree
----------------------------------------------------------------------------------------
*/
nextflow.enable.dsl = 2
log.info Headers.nf_core(workflow, params.monochrome_logs)
def json_schema = "$projectDir/nextflow_schema.json"
if (params.help) {
def command = "nextflow run nf-core/scovtree -profile test,docker"
log.info NfcoreSchema.params_help(workflow, params, json_schema, command)
exit 0
}
if (params.validate_params) {
NfcoreSchema.validateParameters(params, json_schema, log)
}
////////////////////////////////////////////////////
/* -- PRINT PARAMETER SUMMARY -- */
////////////////////////////////////////////////////
log.info NfcoreSchema.params_summary_log(workflow, params, json_schema)
workflow SCOV2_TREE {
if (params.filter_gisaid){
include { PHYLOGENETIC_GISAID } from './workflows/phylogenetic_gisaid'
PHYLOGENETIC_GISAID()
}
else {
include { PHYLOGENETIC_ANALYSIS } from './workflows/phylogenetic_analysis'
PHYLOGENETIC_ANALYSIS ()
}
}
workflow {
SCOV2_TREE()
}