Skip to content

Commit 2c708c0

Browse files
authored
Merge pull request nf-core#143 from maxulysse/bedintervals
add contig ignore to beintervals
2 parents 4e9fb0e + 14895d2 commit 2c708c0

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
- [#136](https://github.com/nf-core/rnavar/pull/136) - Replaced unzip module with gunzip, removed unzip module
3030
- [#138](https://github.com/nf-core/rnavar/pull/138) - Proper usage of GVCF
3131
- [#142](https://github.com/nf-core/rnavar/pull/142) - Fix dbsnp channels
32+
- [#143](https://github.com/nf-core/rnavar/pull/143) - Use `DROP_MISSING_CONTIGS` by default in `GATK4_BEDTOINTERVALLIST`
3233

3334
### Dependencies
3435

conf/modules.config

+15-11
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
Config file for defining DSL2 per module options and publishing paths
44
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55
Available keys to override module options:
6-
ext.args = Additional arguments appended to command in module.
7-
ext.args2 = Second set of arguments appended to command in module (multi-tool modules).
8-
ext.args3 = Third set of arguments appended to command in module (multi-tool modules).
9-
ext.prefix = File name prefix for output files.
6+
ext.args = Additional arguments appended to command in module.
7+
ext.args2 = Second set of arguments appended to command in module (multi-tool modules).
8+
ext.args3 = Third set of arguments appended to command in module (multi-tool modules).
9+
ext.prefix = File name prefix for output files.
1010
----------------------------------------------------------------------------------------
1111
*/
1212

@@ -150,7 +150,7 @@ process {
150150
process {
151151

152152
withName: '.*:ALIGN_STAR:BAM_SORT_SAMTOOLS:SAMTOOLS_SORT' {
153-
ext.prefix = {"${meta.id}.aligned"}
153+
ext.prefix = {"${meta.id}.aligned"}
154154
publishDir = [
155155
path: { "${params.outdir}/preprocessing/${meta.id}" },
156156
mode: params.publish_dir_mode,
@@ -161,7 +161,7 @@ process {
161161

162162
withName: '.*:ALIGN_STAR:BAM_SORT_SAMTOOLS:SAMTOOLS_INDEX' {
163163
ext.args = params.bam_csi_index ? '-c' : ''
164-
ext.prefix = {"${meta.id}.aligned"}
164+
ext.prefix = {"${meta.id}.aligned"}
165165
publishDir = [
166166
path: { "${params.outdir}/preprocessing/${meta.id}" },
167167
mode: params.publish_dir_mode,
@@ -190,7 +190,7 @@ process {
190190
'--VALIDATION_STRINGENCY LENIENT',
191191
params.remove_duplicates ? '--REMOVE_DUPLICATES true' : ''
192192
].join(' ').trim()
193-
ext.prefix = {"${meta.id}.md"}
193+
ext.prefix = {"${meta.id}.md"}
194194
publishDir = [
195195
[
196196
path: { "${params.outdir}/preprocessing/${meta.id}" },
@@ -255,7 +255,7 @@ if(!params.skip_baserecalibration) {
255255
'--use-original-qualities',
256256
'--add-output-sam-program-record'
257257
].join(' ').trim()
258-
ext.prefix = {"${meta.id}.recal"}
258+
ext.prefix = {"${meta.id}.recal"}
259259
publishDir = [
260260
path: { "${params.outdir}/preprocessing/${meta.id}" },
261261
mode: params.publish_dir_mode,
@@ -266,7 +266,7 @@ if(!params.skip_baserecalibration) {
266266

267267
withName: '.*:RECALIBRATE:SAMTOOLS_INDEX' {
268268
ext.args = params.bam_csi_index ? '-c' : ''
269-
ext.prefix = {"${meta.id}.recal"}
269+
ext.prefix = {"${meta.id}.recal"}
270270
publishDir = [
271271
path: { "${params.outdir}/preprocessing/${meta.id}" },
272272
mode: params.publish_dir_mode,
@@ -310,7 +310,7 @@ process {
310310

311311
withName: TABIX_TABIX {
312312
ext.args = params.bam_csi_index ? '--csi' : ''
313-
ext.prefix = {"${meta.id}.haplotypecaller"}
313+
ext.prefix = {"${meta.id}.haplotypecaller"}
314314
publishDir = [
315315
path: { "${params.outdir}/variant_calling/${meta.id}" },
316316
mode: params.publish_dir_mode,
@@ -319,7 +319,7 @@ process {
319319
}
320320

321321
withName: GATK4_VARIANTFILTRATION {
322-
ext.prefix = {"${meta.id}.haplotypecaller.filtered"}
322+
ext.prefix = {"${meta.id}.haplotypecaller.filtered"}
323323
ext.args = [
324324
params.gatk_vf_window_size ? "--window $params.gatk_vf_window_size" : '',
325325
params.gatk_vf_cluster_size ? "--cluster $params.gatk_vf_cluster_size" : '',
@@ -332,4 +332,8 @@ process {
332332
pattern: "*.{vcf.gz,vcf.gz.tbi}"
333333
]
334334
}
335+
336+
withName: 'NFCORE_RNAVAR:RNAVAR:GATK4_BEDTOINTERVALLIST' {
337+
ext.args = '--DROP_MISSING_CONTIGS TRUE'
338+
}
335339
}

0 commit comments

Comments
 (0)