-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathcall_snv_deepvariant.config
More file actions
62 lines (51 loc) · 2.26 KB
/
call_snv_deepvariant.config
File metadata and controls
62 lines (51 loc) · 2.26 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
59
60
61
62
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
----------------------------------------------------------------------------------------
*/
//
// SNV calling options - deepvariant
//
process {
withName: '.*CALL_SNV_DEEPVARIANT:.*' {
ext.when = params.variant_caller.equals("deepvariant")
}
withName: '.*CALL_SNV_DEEPVARIANT:DEEPVARIANT:DEEPVARIANT_MAKEEXAMPLES' {
ext.args = { [
"--channels insert_size",
meta.sex == "1" ? params.genome == 'GRCh37' ? '--haploid_contigs="X,Y"' : '--haploid_contigs="chrX,chrY"' : ''
].join(' ') }
}
withName: '.*CALL_SNV_DEEPVARIANT:DEEPVARIANT:DEEPVARIANT_CALLVARIANTS' {
ext.args = { [
"--checkpoint /opt/models/${params.analysis_type.toLowerCase()}",
].join(' ') }
}
withName: '.*CALL_SNV_DEEPVARIANT:DEEPVARIANT:DEEPVARIANT_POSTPROCESSVARIANTS' {
ext.prefix = { "${meta.id}_deepvar" }
}
withName: '.*CALL_SNV_DEEPVARIANT:GLNEXUS' {
ext.args = '--config DeepVariant_unfiltered'
}
withName: '.*CALL_SNV_DEEPVARIANT:SPLIT_MULTIALLELICS_GL' {
ext.args = '--output-type z --multiallelics -both'
}
withName: '.*CALL_SNV_DEEPVARIANT:REMOVE_DUPLICATES_GL' {
ext.args = '--output-type z --rm-dup none'
ext.prefix = { "${meta.id}_split_rmdup" }
}
withName: '.*CALL_SNV_DEEPVARIANT:ADD_VARCALLER_TO_BED' {
ext.args2 = '-s 1 -b 2 -e 3'
}
withName: '.*CALL_SNV_DEEPVARIANT:BCFTOOLS_ANNOTATE' {
ext.args = "-c CHROM,FROM,TO,FOUND_IN --output-type z"
ext.prefix = { "${meta.id}_split_rmdup_info" }
}
}