fix issue #5612 - boolean param to optionally log skipped fastqs#5638
Closed
glichtenstein wants to merge 5 commits intonf-core:masterfrom
Closed
fix issue #5612 - boolean param to optionally log skipped fastqs#5638glichtenstein wants to merge 5 commits intonf-core:masterfrom
glichtenstein wants to merge 5 commits intonf-core:masterfrom
Conversation
11 tasks
2 tasks
edmundmiller
requested changes
May 23, 2024
| appendToLogFile( | ||
| "Empty or invalid FASTQ file: ${fastq}", | ||
| logFile | ||
| if (params.log_skipped_fastqs) { |
Contributor
There was a problem hiding this comment.
Suggested change
| if (params.log_skipped_fastqs) { | |
| if (log_skipped_fastqs) { |
Contributor
Author
There was a problem hiding this comment.
For some reason, when I remove params. I get ERROR ~ No such variable: log_skipped_fastqs
|
|
||
| // 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") |
Contributor
There was a problem hiding this comment.
I think we generally try to avoid using params in subworkflows 😦
Contributor
Author
There was a problem hiding this comment.
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
Merged
Contributor
Author
|
superseded by #5720 |
17 tasks
This was referenced May 31, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
skipped_fastqs.log
PR checklist
Closes Issue #5612
nf-core/demultiplex counterpart: nf-core/demultiplex#190
versions.ymlfile.labelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile condaDescription
This pull request adds the optional parameter
--log_skipped_fastqsto thedemultiplexpipeline. 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/modulesrepository. The commit details are as follows:git format-patch -1 22bc6c5b186e16432e5b82d1932020b9c92e7040 -o /<some_dir>/patch/The patch was applied to ensure that the
demultiplexrepository includes the latest changes fromnf-core/modulesnecessary 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=truefalse
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=falseexecutor > 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.logEmpty 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