Skip to content

Commit

Permalink
Merge branch 'dev' into fix_references_usage
Browse files Browse the repository at this point in the history
  • Loading branch information
maxulysse committed May 31, 2024
2 parents 9040aa0 + 4e9fb0e commit 70e8a81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#132](https://github.com/nf-core/rnavar/pull/132) - Added missing variantcaller key to meta map, to fix null value in publishDir
- [#136](https://github.com/nf-core/rnavar/pull/136) - Replaced unzip module with gunzip, removed unzip module
- [#138](https://github.com/nf-core/rnavar/pull/138) - Proper usage of GVCF
- [#142](https://github.com/nf-core/rnavar/pull/142) - Fix dbsnp channels

### Dependencies

Expand Down
11 changes: 7 additions & 4 deletions workflows/rnavar/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,11 @@ workflow RNAVAR {
interval_flag = params.no_intervals
// Run haplotyper even in the absence of dbSNP files
if (!params.dbsnp){
ch_dbsnp = []
ch_dbsnp_tbi = []
ch_dbsnp_for_haplotypecaller = [[id:'null'], []]
ch_dbsnp_for_haplotypecaller_tbi = [[id:'null'], []]
} else {
ch_dbsnp_for_haplotypecaller = ch_dbsnp.map{ vcf -> [[id:'dbsnp'], vcf] }
ch_dbsnp_for_haplotypecaller_tbi = ch_dbsnp_tbi.map{ tbi -> [[id:'dbsnp'], tbi] }
}

ch_haplotypecaller_vcf = Channel.empty()
Expand All @@ -273,8 +276,8 @@ workflow RNAVAR {
ch_fasta,
ch_fasta_fai.map{ it -> [[id:it.baseName], it] },
ch_dict,
ch_dbsnp.map{ it -> [[id:it.baseName], it] },
ch_dbsnp_tbi.map{ it -> [[id:it.baseName], it] }
ch_dbsnp_for_haplotypecaller,
ch_dbsnp_for_haplotypecaller_tbi
)

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

0 comments on commit 70e8a81

Please sign in to comment.