-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgermline.nf
63 lines (51 loc) · 1.13 KB
/
germline.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
62
63
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
process haplotypecaller {
input:
path inputBAM
path inputBAI
path inputBQSR
path inputRef
output:
path "${inputBAM.baseName}.haplotypecaller.vcf"
script:
def bqsrStub = inputBQSR ? "--in-recal-file ${inputBQSR}" : ""
"""
pbrun haplotypecaller \
--ref ${inputRef} \
--in-bam ${inputBAM} \
--out-variants "${inputBAM.baseName}.haplotypecaller.vcf" \
${bqsrStub}
"""
}
process deepvariant {
input:
path inputBAM
path inputBAI
path inputRef
output:
path "${inputBAM.baseName}.deepvariant.vcf"
script:
"""
pbrun deepvariant \
--in-bam ${inputBAM} \
--ref ${inputRef} \
--out-variants ${inputBAM.baseName}.deepvariant.vcf
"""
}
workflow Parabricks_Germline {
haplotypecaller(
inputBAM=params.inputBAM,
inputBAI=params.inputBAI,
inputBQSR=params.inputBQSR,
inputRef=params.inputRef
)
deepvariant(
inputBAM=params.inputBAM,
inputBAI=params.inputBAI,
inputRef=params.inputRef
)
}
workflow {
Parabricks_Germline()
}