Skip to content

Commit 93301b7

Browse files
authored
Merge pull request #909 from nf-core/pileupcaller_paths_fix
Pileupcaller paths fix
2 parents d2418f6 + 4f19b50 commit 93301b7

2 files changed

Lines changed: 31 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1919
- [#895](https://github.com/nf-core/eager/issues/895) Output documentation typo fix and added location of output docs in pipeline summary (♥ to @RodrigoBarquera for reporting)
2020
- [#897](https://github.com/nf-core/eager/issues/897) Fix pipeline crash if no Kraken2 results generated (♥ to @alexandregilardet for reporting)
2121
- [#899](https://github.com/nf-core/eager/issues/897) Fix pipeline crash for circulargenerator if reference file does not end in .fasta (♥ to @scarlhoff for reporting)
22+
- Fix staging of input bams for genotyping_pileupcaller process. Downstream changes from changes introduced when fixing endorspy caching.
2223

2324
### `Dependencies`
2425

main.nf

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ if (params.run_bam_filtering) {
17871787
def seqtype = it[3]
17881788
def organism = it[4]
17891789
def strandedness = it[5]
1790-
def udg = it[6]
1790+
def udg = it[6]
17911791
def stats = file(it[7])
17921792
def poststats = file("$projectDir/assets/nf-core_eager_dummy.txt")
17931793

@@ -2229,7 +2229,7 @@ process bam_trim {
22292229
tuple samplename, libraryid, lane, seqtype, organism, strandedness, udg, path(bam), path(bai) from ch_bamutils_decision.totrim
22302230

22312231
output:
2232-
tuple samplename, libraryid, lane, seqtype, organism, strandedness, udg, file("*.trimmed.bam"), file("*.trimmed.bam.{bai,csi}") into ch_trimmed_from_bamutils
2232+
tuple samplename, libraryid, lane, seqtype, organism, strandedness, udg, path("*.trimmed.bam"), path("*.trimmed.bam.{bai,csi}") into ch_trimmed_from_bamutils
22332233

22342234
script:
22352235
def softclip = params.bamutils_softclip ? '-c' : ''
@@ -2261,7 +2261,7 @@ ch_trimmed_formerge = ch_bamutils_decision.notrim
22612261
def seqtype = it[3]
22622262
def organism = it[4]
22632263
def strandedness = it[5]
2264-
def udg = it[6]
2264+
def udg = it[6]
22652265
def bam = it[7].flatten()
22662266
def bai = it[8].flatten()
22672267

@@ -2487,10 +2487,36 @@ ch_damagemanipulation_for_genotyping_pileupcaller
24872487
// Create pileupcaller input tuples
24882488
ch_input_for_genotyping_pileupcaller.singleStranded
24892489
.groupTuple(by:[5])
2490+
.map{
2491+
def samplename = it[0]
2492+
def libraryid = it[1]
2493+
def lane = it[2]
2494+
def seqtype = it[3]
2495+
def organism = it[4]
2496+
def strandedness = it[5]
2497+
def udg = it[6]
2498+
def bam = it[7].flatten()
2499+
def bai = it[8].flatten()
2500+
2501+
[samplename, libraryid, lane, seqtype, organism, strandedness, udg, bam, bai ]
2502+
}
24902503
.set {ch_prepped_for_pileupcaller_single}
24912504

24922505
ch_input_for_genotyping_pileupcaller.doubleStranded
24932506
.groupTuple(by:[5])
2507+
.map{
2508+
def samplename = it[0]
2509+
def libraryid = it[1]
2510+
def lane = it[2]
2511+
def seqtype = it[3]
2512+
def organism = it[4]
2513+
def strandedness = it[5]
2514+
def udg = it[6]
2515+
def bam = it[7].flatten()
2516+
def bai = it[8].flatten()
2517+
2518+
[samplename, libraryid, lane, seqtype, organism, strandedness, udg, bam, bai ]
2519+
}
24942520
.set {ch_prepped_for_pileupcaller_double}
24952521

24962522
process genotyping_pileupcaller {
@@ -2502,7 +2528,7 @@ process genotyping_pileupcaller {
25022528
params.run_genotyping && params.genotyping_tool == 'pileupcaller'
25032529

25042530
input:
2505-
tuple samplename, libraryid, lane, seqtype, organism, strandedness, udg, bam, bai from ch_prepped_for_pileupcaller_double.mix(ch_prepped_for_pileupcaller_single)
2531+
tuple samplename, libraryid, lane, seqtype, organism, strandedness, udg, path(bam), path(bai) from ch_prepped_for_pileupcaller_double.mix(ch_prepped_for_pileupcaller_single)
25062532
file fasta from ch_fasta_for_genotyping_pileupcaller.collect()
25072533
file fai from ch_fai_for_pileupcaller.collect()
25082534
file dict from ch_dict_for_pileupcaller.collect()

0 commit comments

Comments
 (0)