Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fq lint module update: exit on failed validation #7000

Closed
wants to merge 4 commits into from
Closed
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
14 changes: 14 additions & 0 deletions subworkflows/nf-core/fastq_qc_trim_filter_setstrandedness/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ include { BBMAP_BBSPLIT } from '../../../modules/nf-core/bbmap
include { CAT_FASTQ } from '../../../modules/nf-core/cat/fastq/main'
include { SORTMERNA } from '../../../modules/nf-core/sortmerna/main'
include { SORTMERNA as SORTMERNA_INDEX } from '../../../modules/nf-core/sortmerna/main'
include { FQ_LINT } from '../../../modules/nf-core/fq/lint/main'

include { FASTQ_SUBSAMPLE_FQ_SALMON } from '../fastq_subsample_fq_salmon'
include { FASTQ_FASTQC_UMITOOLS_TRIMGALORE } from '../fastq_fastqc_umitools_trimgalore'
Expand Down Expand Up @@ -106,6 +107,7 @@ workflow FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS {
umi_discard_read // integer: 0, 1 or 2
stranded_threshold // float: The fraction of stranded reads that must be assigned to a strandedness for confident assignment. Must be at least 0.5
unstranded_threshold // float: The difference in fraction of stranded reads assigned to 'forward' and 'reverse' below which a sample is classified as 'unstranded'
skip_linting // boolean: true/false

main:

Expand All @@ -114,6 +116,17 @@ workflow FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS {
ch_trim_read_count = Channel.empty()
ch_multiqc_files = Channel.empty()

//
// MODULE: Lint FastQ files
//
if(!skip_linting) {
FQ_LINT (
oligomyeggo marked this conversation as resolved.
Show resolved Hide resolved
ch_fastq_lint.map{ meta, fastqs -> [meta, fastqs.flatten()] }
)
ch_versions = ch_versions.mix(FQ_LINT.out.versions.first())
ch_lint_log = FQ_LINT.out.lint
}

ch_reads
.branch {
meta, fastqs ->
Expand Down Expand Up @@ -312,6 +325,7 @@ workflow FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS {

emit:

lint_log = ch_lint_log
reads = ch_strand_inferred_fastq
trim_read_count = ch_trim_read_count

Expand Down
Loading