-
Notifications
You must be signed in to change notification settings - Fork 751
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
fix issue #5612 - boolean param to optionally log skipped fastqs #5638
fix issue #5612 - boolean param to optionally log skipped fastqs #5638
Conversation
appendToLogFile( | ||
"Empty or invalid FASTQ file: ${fastq}", | ||
logFile | ||
if (params.log_skipped_fastqs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (params.log_skipped_fastqs) { | |
if (log_skipped_fastqs) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, when I remove params.
I get ERROR ~ No such variable: log_skipped_fastqs
@@ -8,12 +8,13 @@ include { BCLCONVERT } from "../../../modules/nf-core/bclconvert/main" | |||
include { BCL2FASTQ } from "../../../modules/nf-core/bcl2fastq/main" | |||
|
|||
// Define the log file path before the workflow starts | |||
def logFile = new File("${params.outdir}/invalid_fastqs.log") | |||
def logFile = new File("${params.outdir}/skipped_fastqs.log") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we generally try to avoid using params
in subworkflows 😦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, if not it was ending in some temp workdir, this way it is saved inside the outdir provided in the nextflow run --outdir /some/path/outdir
, shall I remove it and leave it as def logFile = new File("skipped_fastqs.log")
?
90fe8e7
to
8e87edb
Compare
superseded by #5720 |
skipped_fastqs.log
PR checklist
Closes Issue #5612
nf-core/demultiplex counterpart: nf-core/demultiplex#190
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda
nf-core subworkflows test <SUBWORKFLOW> --profile docker
nf-core subworkflows test <SUBWORKFLOW> --profile singularity
nf-core subworkflows test <SUBWORKFLOW> --profile conda
Description
This pull request adds the optional parameter
--log_skipped_fastqs
to thedemultiplex
pipeline. This change was necessary to address the issue with logging skipped FASTQ files and preventing the AWS S3 issue.Patch Details
The changes in this PR were applied using a patch from a specific commit in the
nf-core/modules
repository. The commit details are as follows:git format-patch -1 22bc6c5b186e16432e5b82d1932020b9c92e7040 -o /<some_dir>/patch/
The patch was applied to ensure that the
demultiplex
repository includes the latest changes fromnf-core/modules
necessary for this feature.Testing
true
nextflow run glichtenstein/demultiplex -r 7d9538e --input nf-core-samplesheet.csv --outdir /data/scratch/iseq-DI/output -profile docker -work-dir /data/scratch/iseq-DI/workdir -resume --skip_tools fastp --log_empty_fastqs=true
false
nextflow run glichtenstein/demultiplex -r 7d9538e --input nf-core-samplesheet.csv --outdir /data/scratch/iseq-DI/output -profile docker -work-dir /data/scratch/iseq-DI/workdir -resume --skip_tools fastp --log_empty_fastqs=false
executor > local (5)
[1a/e1ae22] process > NFCORE_DEMULTIPLEX:DEMULTIPLEX:BCL_DEMULTIPLEX:BCLCONVERT [100%] 1 of 1 ✔
[5f/05036f] process > NFCORE_DEMULTIPLEX:DEMULTIPLEX:FALCO (iseq-DI_S1_L001) [100%] 1 of 1 ✔
[84/64923f] process > NFCORE_DEMULTIPLEX:DEMULTIPLEX:MD5SUM (iseq-DI_S1_L001) [100%] 2 of 2 ✔
[11/351698] process > NFCORE_DEMULTIPLEX:DEMULTIPLEX:MULTIQC [100%] 1 of 1 ✔
-[nf-core/demultiplex] Pipeline completed successfully-
cat output/empty_fastqs.log
Empty or invalid FASTQ file: /data/scratch/iseq-DI/workdir/1a/e1ae22.../Bad-iseq-DI_S2_L001_R1_001.fastq.gz
Empty or invalid FASTQ file: /data/scratch/iseq-DI/workdir/1a/e1ae22.../Bad-iseq-DI_S2_L001_R2_001.fastq.gz
Dataset used
SampleSheet was modified to include bad barcodes.
nf-core_samplesheet.csv
bcl_convert_samplesheet.csv