Skip to content

Commit

Permalink
tweak mqc mapdamage linking
Browse files Browse the repository at this point in the history
  • Loading branch information
TCLamnidis committed Oct 27, 2023
1 parent 23b74e9 commit 322fdcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2122,11 +2122,11 @@ process mapdamage_calculation {
file fasta from ch_fasta_for_mapdamage.collect()

output:
tuple samplename, libraryid, lane, seqtype, organism, strandedness, udg, path("results_*") into ch_output_from_mapdamage
path ("results_*") into ch_mapdamage_for_multiqc
tuple samplename, libraryid, lane, seqtype, organism, strandedness, udg, path("results_${base}") into ch_output_from_mapdamage
path ("results_${base}") into ch_mapdamage_for_multiqc

script:
def base = "${bam.baseName}"
base = "${bam.baseName}"
def singlestranded = strandedness == "single" ? '--single-stranded' : ''
def downsample = params.mapdamage_downsample != 0 ? "-n ${params.mapdamage_downsample} --downsample-seed=1" : '' // Include seed to make results consistent between runs
"""
Expand Down Expand Up @@ -3258,7 +3258,7 @@ process multiqc {
file ('flagstat_filtered/*') from ch_bam_filtered_flagstat_for_multiqc.collect().ifEmpty([])
file ('preseq/*') from ch_preseq_for_multiqc.collect().ifEmpty([])
file ('damageprofiler/dmgprof*/*') from ch_damageprofiler_results.collect().ifEmpty([])
path ('mapdamage/*') from ch_mapdamage_for_multiqc.collect().ifEmpty([]).dump(tag:'ch_mapdamage_for_multiqc')
file ('mapdamage/*') from ch_mapdamage_for_multiqc.collect().ifEmpty([]).dump(tag:'ch_mapdamage_for_multiqc')
file ('qualimap/qualimap*/*') from ch_qualimap_results.collect().ifEmpty([])
file ('markdup/*') from ch_markdup_results_for_multiqc.collect().ifEmpty([])
file ('dedup*/*') from ch_dedup_results_for_multiqc.collect().ifEmpty([])
Expand Down

0 comments on commit 322fdcd

Please sign in to comment.