Skip to content

Commit 4e9fb0e

Browse files
authored
Merge pull request nf-core#142 from maxulysse/fix_dbsnp_known_indels_usage
Fix dbsnp usage
2 parents 48cb638 + 358c6ff commit 4e9fb0e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2828
- [#132](https://github.com/nf-core/rnavar/pull/132) - Added missing variantcaller key to meta map, to fix null value in publishDir
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
31+
- [#142](https://github.com/nf-core/rnavar/pull/142) - Fix dbsnp channels
3132

3233
### Dependencies
3334

workflows/rnavar/main.nf

+7-4
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,11 @@ workflow RNAVAR {
253253
interval_flag = params.no_intervals
254254
// Run haplotyper even in the absence of dbSNP files
255255
if (!params.dbsnp){
256-
ch_dbsnp = []
257-
ch_dbsnp_tbi = []
256+
ch_dbsnp_for_haplotypecaller = [[id:'null'], []]
257+
ch_dbsnp_for_haplotypecaller_tbi = [[id:'null'], []]
258+
} else {
259+
ch_dbsnp_for_haplotypecaller = ch_dbsnp.map{ vcf -> [[id:'dbsnp'], vcf] }
260+
ch_dbsnp_for_haplotypecaller_tbi = ch_dbsnp_tbi.map{ tbi -> [[id:'dbsnp'], tbi] }
258261
}
259262

260263
ch_haplotypecaller_vcf = Channel.empty()
@@ -273,8 +276,8 @@ workflow RNAVAR {
273276
ch_fasta,
274277
ch_fasta_fai.map{ it -> [[id:it.baseName], it] },
275278
ch_dict,
276-
ch_dbsnp.map{ it -> [[id:it.baseName], it] },
277-
ch_dbsnp_tbi.map{ it -> [[id:it.baseName], it] }
279+
ch_dbsnp_for_haplotypecaller,
280+
ch_dbsnp_for_haplotypecaller_tbi
278281
)
279282

280283
ch_haplotypecaller_raw = GATK4_HAPLOTYPECALLER.out.vcf.map{ meta, vcf -> [ meta + [id:meta.sample] - meta.subMap('sample'), vcf ] }.groupTuple()

0 commit comments

Comments
 (0)