-
Notifications
You must be signed in to change notification settings - Fork 0
/
regenie.nf
49 lines (33 loc) · 1.04 KB
/
regenie.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
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
/**
===============================
IKMB PheWAS Assoc Pipeline
===============================
This Pipeline performs Association Testing for GWAS, mGWAS and PheWAS on QC'ed (and imputed) chromosome-wise genotyping data in vcf.gz format.
### Homepage / git
git@github.com:ikmb/phewas-assoc.git
**/
// Pipeline version
params.version = workflow.manifest.version
//Help page & Pipeline Header
WorkflowMain.initialise(workflow, params, log)
//Input Parameter Checks
WorkflowPhewas.initialise( params, log)
//If run_name wasn't set by the user, set it to workflow runName.
if(!params.hasProperty('run_name')){
params.run_name = workflow.runName
}
log.info "Run_name: '${params.run_name}'\n"
//Import workflow
include { assoc } from './workflows/Assoc' params(params)
//execute workflow
workflow {
assoc()
}
//completion logs
workflow.onComplete {
log.info "========================================="
log.info "Duration: $workflow.duration"
log.info "========================================="
}