forked from cgpu/genomechronicler-nf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.nf
29 lines (22 loc) · 850 Bytes
/
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
Channel
.fromPath(params.bamFile)
.ifEmpty { exit 1, "--bamFile not specified or no file found at that destination with the suffix .bam. Please make sure to provide the file path correctly}" }
.set { chronicler_bam }
Channel.fromPath(params.vepFile)
.ifEmpty { exit 1, "--vepFile not specified or no file found at that destination with the suffix .html. Please make sure to provide the file path correctly}" }
.set { chronicler_vep }
process genomechronicler {
tag "$bam"
publishDir "$params.outdir/GenomeChronicler", mode: 'copy'
input:
file(bam) from chronicler_bam
file(vep) from chronicler_vep
output:
file("*") into chronicler_results
script:
optional_argument = vep.endsWith("no_vepFile.txt") ? '' : "--vepFile ${vep}"
"""
genomechronicler \
--bamFile $bam $optional_argument
"""
}