-
Notifications
You must be signed in to change notification settings - Fork 2
/
harmonizer_list_dsl2.nf
45 lines (37 loc) · 1.08 KB
/
harmonizer_list_dsl2.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
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
include { HmPOS as HM_POS_37 } from './nf_modules/hmpos'
include { HmPOS as HM_POS_38 } from './nf_modules/hmpos'
include { HmVCF as HM_VCF_37 } from './nf_modules/hmvcf'
include { HmVCF as HM_VCF_38 } from './nf_modules/hmvcf'
include { Finalise as HM_FINALISE_37 } from './nf_modules/finalise'
include { Finalise as HM_FINALISE_38 } from './nf_modules/finalise'
workflow hm_37 {
take:
pgs_ids
main:
genebuild='37'
// Data analysis
HM_POS_37(pgs_ids, genebuild)
HM_VCF_37(HM_POS_37.out, genebuild)
// Data post-processing
HM_FINALISE_37(HM_VCF_37.out, genebuild)
}
workflow hm_38 {
take:
pgs_ids
main:
genebuild='38'
// Data analysis
HM_POS_38(pgs_ids, genebuild)
HM_VCF_38(HM_POS_38.out, genebuild)
// Data post-processing
HM_FINALISE_38(HM_VCF_38.out, genebuild)
}
workflow {
// Get list of PGS IDs
pgs_ids_list = channel.from(params.pgs)
// Run sub-workflows
hm_37(pgs_ids_list)
hm_38(pgs_ids_list)
}