Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ workflow FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS {

ch_filtered_reads = channel.empty()
ch_trim_read_count = channel.empty()
ch_trim_reads_merged = channel.empty()
ch_multiqc_files = channel.empty()
ch_lint_log_raw = channel.empty()
ch_lint_log_trimmed = channel.empty()
Expand Down Expand Up @@ -240,6 +241,7 @@ workflow FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS {
)
ch_filtered_reads = FASTQ_FASTQC_UMITOOLS_FASTP.out.reads
ch_trim_read_count = FASTQ_FASTQC_UMITOOLS_FASTP.out.trim_read_count
ch_trim_reads_merged = FASTQ_FASTQC_UMITOOLS_FASTP.out.trim_reads_merged

// Capture individual outputs for workflow outputs
ch_fastqc_raw_html = FASTQ_FASTQC_UMITOOLS_FASTP.out.fastqc_raw_html
Expand Down Expand Up @@ -433,6 +435,7 @@ workflow FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS {
reads_cat = ch_reads_cat
reads_trimmed = ch_reads_trimmed
trim_read_count = ch_trim_read_count
trim_reads_merged = ch_trim_reads_merged
multiqc_files = ch_multiqc_files.transpose()

// Individual outputs for workflow outputs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,15 @@ output:
Number of reads remaining after trimming for all input samples.

Structure: [ val(meta), val(count) ]
- trim_reads_merged:
type: file
description: |
fastp's merged overlapping read pairs, produced only when `trimmer == 'fastp'` and
`fastp_merge == true`. Empty otherwise. These reads are excluded from `reads`;
callers that want to use them downstream must consume this channel separately.

Structure: [ val(meta), path(reads) ]
pattern: "*.merged.fastq.gz"
- multiqc_files:
type: file
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ nextflow_workflow {
{ assert pelines2.size() == 4508 },
{ assert workflow.out.trim_read_count[0][1] == 3022 },
{ assert sortmernaRrnaCount == 20 }, // 10 pairs = 20 individual reads (100% detection)
{ assert path(workflow.out.trim_reads_merged[0][1]).linesGzip.size() == 3022 * 4 }, // fastp's merged overlapping read pairs, excluded from `reads`
{ assert snapshot(
pelines1.join('\n').md5(),
pelines2.join('\n').md5(),
Expand Down