-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathcall_snv_MT.config
More file actions
58 lines (46 loc) · 1.76 KB
/
call_snv_MT.config
File metadata and controls
58 lines (46 loc) · 1.76 KB
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
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Config file for defining DSL2 per module options and publishing paths
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Available keys to override module options:
ext.args = Additional arguments appended to command in module.
ext.args2 = Second set of arguments appended to command in module (multi-tool modules).
ext.args3 = Third set of arguments appended to command in module (multi-tool modules).
ext.prefix = File name prefix for output files.
ext.when = Conditional clause
----------------------------------------------------------------------------------------
*/
//
// Call SNVs in mitochondria
//
process {
withName: '.*CALL_SNV_MT:GATK4_MUTECT2_MT' {
ext.args = '--mitochondria-mode TRUE'
}
withName: '.*CALL_SNV_MT:GATK4_FILTERMUTECTCALLS_MT' {
ext.args = '--mitochondria-mode'
ext.prefix = { "${meta.id}_filtered" }
}
withName: '.*CALL_SNV:CALL_SNV_MT:HAPLOCHECK_MT' {
publishDir = [
path: { "${params.outdir}/haplocheck" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.endsWith(".txt") ? filename : null }
]
}
}
//
// Call SNVs in shifted mitochondria
//
process {
withName: '.*CALL_SNV_MT_SHIFT:GATK4_MUTECT2_MT' {
ext.args = '--mitochondria-mode TRUE'
}
withName: '.*CALL_SNV_MT_SHIFT:GATK4_FILTERMUTECTCALLS_MT' {
ext.args = '--mitochondria-mode'
ext.prefix = { "${meta.id}_filtered_shifted" }
}
withName: '.*CALL_SNV_MT_SHIFT:HAPLOCHECK_MT' {
ext.when = false
}
}