-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
61 lines (48 loc) · 2.08 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
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env nextflow
/*
========================================================================================
nf-core/rvfvtyping
========================================================================================
rvfvtyping Analysis Pipeline.
#### Homepage / Documentation
https://github.com/ajodeh-juma/rvfvtyping
----------------------------------------------------------------------------------------
*/
nextflow.enable.dsl = 2
// log.info Headers.nf_core(workflow, params.monochrome_logs)
////////////////////////////////////////////////////
/* -- PRINT HELP -- */
////////////////////////////////////////////////////+
def json_schema = "$projectDir/nextflow_schema.json"
if (params.help) {
def command = "nextflow run main.nf --input '*.fasta' -profile docker"
log.info NfcoreSchema.params_help(workflow, params, json_schema, command)
exit 0
}
////////////////////////////////////////////////////
/* -- PRINT PARAMETER SUMMARY -- */
////////////////////////////////////////////////////
def summary_params = Schema.params_summary_map(workflow, params, json_schema)
log.info Schema.params_summary_log(workflow, params, json_schema)
////////////////////////////////////////////////////
/* -- PARAMETER CHECKS -- */
////////////////////////////////////////////////////
// Check that conda channels are set-up correctly
if (params.enable_conda) {
Checks.check_conda_channels(log)
}
// Check AWS batch settings
Checks.aws_batch(workflow, params)
////////////////////////////////////////////////////
/* -- VALIDATE PARAMETERS -- */
////////////////////////////////////////////////////+
if (params.validate_params) {
NfcoreSchema.validateParameters(params, json_schema, log)
}
////////////////////////////////////////////////////
/* -- RUN MAIN WORKFLOW -- */
////////////////////////////////////////////////////
workflow {
include { RVFVTYPING } from './workflows/rvfvtyping' addParams( summary_params: summary_params )
RVFVTYPING ()
}