-
Notifications
You must be signed in to change notification settings - Fork 694
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
migrating flash to nf-test #5470
Conversation
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 don't understand what the args2 is for here, when it is just next to args in the code
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.
Does this module take fastq files in and produce different ones? If so, can you include a check that the output files have different names
Or you could give them a suffix to make it clear they have been through this tool. |
Hi @SPPearce and @DavideBag |
There are definitely many fastq tools that don't follow that convention though |
I have double checked the default output of the software which is as follows:
There is no way to change the prefix added as "extendedFrags" or "notCombined". Most importantly, however, the current version of the module captures all outputs in a single channel, while they should be separated because one is the expected result (i.e. the merged reads = extendedFrags) and the other contains the not combined ones. |
I'm happy to introduce breaking changes that make sense. One option is to
rename the output channel, then it will definitely fail and force people to
do something
…On Mon, 29 Apr 2024, 10:27 DavideBag, ***@***.***> wrote:
I have double checked the default output of the software which is as
follows:
The default output of FLASH consists of the following files:
- out.extendedFrags.fastq The merged reads.
- out.notCombined_1.fastq Read 1 of mate pairs that were not merged.
- out.notCombined_2.fastq Read 2 of mate pairs that were not merged.
- out.hist Numeric histogram of merged read lengths.
- out.histogram Visual histogram of merged read lengths.
There is no way to change the prefix added as "extendedFrags" or
"notCombined".
We can introduce an input/output check as suggested, although there is
little probability the input will contain those words, ending up in an
overlap.
Most importantly, however, the current version of the module captures all
outputs in a single channel, while they should be separated because one is
the expected result (i.e. the merged reads = extendedFrags) and the other
contains the not combined ones.
The potential issue here is that this change might be a breaking change
for other pipelines, who can however patch the module if they wish to keep
all reads in a single channel.
I have discussed this with @lescai <https://github.com/lescai> but asking
@maxulysse <https://github.com/maxulysse> for advice on this, before
adding the changes to this PR.
—
Reply to this email directly, view it on GitHub
<#5470 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF55TWMTKK6GOWKUL4GPP3DY7YHBHAVCNFSM6AAAAABGCN2F5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSGI3DIMJUGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
LGTM now, quite thorough and now more explicit with flash documentation.
* migrating flash to nf-test * removing args2 from main.nf * Update nextflow.config * Changes discussed in the outputs --------- Co-authored-by: Simon Pearce <[email protected]>
* Try alternative strategy for extracting tags * Add check to prevent confirm pass if no tags present * Fix some names for GHA steps * Add fake change in fastp module * Add fake change in bam_sort_stats_samtools module * Add fake changes to pytest module and subworkflow * Add debug step * fixup * Got some variable names wrong... * Add subworkflows back to nf-tests * revert confirm-pass if statement * use JQ to separate modules and subworkflows * Fix quoting when parsing tags * coerce modules and subworkflows to lower case * Add specific linting checks to dependencies * Single vs double quotes again * Some more variable fixing * this might work * fixup * yet another fixup * Correct modules -> subworkflows * Fake change to pytest module * Correct dependency * One more time * More sorting stuff out * Update modules/nf-core/gunzip/tests/main.nf.test * Add fake change to module without nf-test so pytest ONLY is triggered * fixup incorrect variable * Switch to using self-hosted Docker profile * Add dependency checker from Carson Miller * fixup * fix(.github/python/find_changed_files.py): detect nf files less greedily and ignore tests directory The scanning function was picking up nf files outside of the target repos. This change only scans modules, subworkflows and workflows. * Revert to directories instead of files for module tagging * Create optional returntype for Python script * Remove superfluous python cache * feat: replace custom python with reusable github action for detecting nf-test changes * Fix variable name in output paths * Switch to new parents dir syntax * prod to bump version of action * Update .github/workflows/test.yml * Update .github/workflows/test.yml * Exclude more subworkflows from Conda * Update .github/workflows/test.yml * Update .github/workflows/test.yml * QUILT nf-test and bamlist (#5515) * Migrate quilt to nf-test and swithc bamlist to auto generation inside the module * Fix tests * Fix test * Fix tests * Add snap * Update license * Add quilt tag * Specify build hash for conda environment * Specify build hash for conda environment * Undo commit * Update nf-test snapshot * Fix config name * Update snapshot * Update meta.yml * Add r-base to environment * Update snapshot generation * Update meta.yml * Update snap * Update snap * Force sorting * Update snapshot * New module: gnu/split (#5428) * dev * dev * dev * add tests * fix lint * fix(gnu/split): pin coreutils in conda to match singularity and docker * fix: minor formatting fixes, use modules_testdata_base_path in nf-test --------- Co-authored-by: Kyle <[email protected]> * Add Demuxem (#5504) * Fix lint test * added input * inputs and outputs demuxem * updates demuxem, missing snap test * fixes * out new parameters testing * tests passed * lint test check * editorconfig fixes * more fixes editorconfig * fix editorconfig * line 24 whitespace * blank spaces * fix line 23 * test to fix trailing whitespace * fix line23 * fix main * Fix AMRFinderPlus (#5521) Fix folder renaming * fix stubs salmon (#5517) * fix stubs * fix stub¨ * Update modules/nf-core/salmon/quant/main.nf --------- Co-authored-by: Lucpen <[email protected]> Co-authored-by: Annick Renevey <[email protected]> * Update mcquant: Added nf-test and meta.yml information (#5507) * Transition to nf-test and meta.yml info fix. * Added MIT license. * Removed conda environment.yml for mcquant. * Added conda exclusion for nf-test. * Changed to quay.io container. * Removed quay.io from container * Added repeatmodeler/builddatabase (#5416) * Added repeatmodeler/builddatabase * Fixed version extraction * Now doing md5 check on stable db files * bump wisecondorx to v1.2.7 (#5523) * Add Freemuxlet to modules (#5520) * add freemuxlet * add snapshot * pass container test * remove trailing whitespace * add optional output files creation * remove ldist * fix test * add snapshot --------- Co-authored-by: Xichen Wu <[email protected]> Co-authored-by: wxicu <[email protected]> * chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.4.2 (#5527) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Updating sentieon to 202308.02 (#5525) * Updating sentieon to 202308.02 * Fixing typo * Fix stale action (#5530) * ci: Try not setting the repo-token * ci: Run clean-up on dispatch * Changed tag from single quotes to double quotes (#5531) Co-authored-by: Simon Pearce <[email protected]> * [TYPO] Align commas (#5380) Align commas Co-authored-by: Simon Pearce <[email protected]> * GFFREAD: updated to 0.12.7, added meta and fasta input/output (#5448) * GFFREAD: updated to 0.12.7, added meta and fasta input/output * Added a comment explaining args_sorted * re delete gatk4/bedtointervallist from pytest_modules.yml after it was added again (see #5251) (#5328) delete gatk4/bedtointervallist from pytest_modules.yml Co-authored-by: LE BARS Victor <[email protected]> * Update mosdepth to 0.3.8 (#5538) * Update mosdepth to 0.3.8 * Updating main.nf.test.snap * migrating flash to nf-test (#5470) * migrating flash to nf-test * removing args2 from main.nf * Update nextflow.config * Changes discussed in the outputs --------- Co-authored-by: Simon Pearce <[email protected]> * add riboseq transcriptome bam to test config (#5537) * add ribo-seq transcriptome bam * remove extra line * Update nanoplot/main.nf (#5460) Update main.nf Updated the "def input_file" section so that it not only takes fastq file with ".fastq.gz" suffix but also ".fq.gz". * Added repeatmodeler/repeatmodeler (#5536) * repeatmodeler/repeatmodeler * Demoted to process_medium * Update modules/nf-core/repeatmodeler/repeatmodeler/main.nf Co-authored-by: Simon Pearce <[email protected]> --------- Co-authored-by: Simon Pearce <[email protected]> * Blastdbcmd new module (#5482) * starting blastdbcmd * carry on * Making it work with simple entry version * Upgrade to make entry_batch work * Upgrade to make it work with tests * adding missing tag * Removed versions to make it pass the tests in Github * Make it work with versions and so * Update modules/nf-core/blast/blastdbcmd/meta.yml Co-authored-by: James A. Fellows Yates <[email protected]> * Update modules/nf-core/blast/blastdbcmd/meta.yml Co-authored-by: James A. Fellows Yates <[email protected]> * Move module into two and upgrade according to comments * upgrade with outfmt forced * Turn back into one module * Update modules/nf-core/blast/blastdbcmd/main.nf Co-authored-by: James A. Fellows Yates <[email protected]> * update tags and stub test * fix stub * making it work more widely * editorcheck error * addressing comments * Update modules/nf-core/blast/blastdbcmd/meta.yml Co-authored-by: James A. Fellows Yates <[email protected]> --------- Co-authored-by: James A. Fellows Yates <[email protected]> * Remove fake changes Co-authored-by: Carson J Miller <[email protected]> * Use merge group base ref instead of PR base_ref when merging * fixup * Use SHA instead of head ref * fixup * work * origin/ * cmon * one more time with feeling * fixup again * Worth a try * Increase fetch depth to 2 * Use SHA instead of head ref --------- Co-authored-by: Louis LE NEZET <[email protected]> Co-authored-by: Kyle Hazen <[email protected]> Co-authored-by: Kyle <[email protected]> Co-authored-by: Mylène Mariana Gonzales André <[email protected]> Co-authored-by: Jasmin Frangenberg <[email protected]> Co-authored-by: Lucía Peña-Pérez <[email protected]> Co-authored-by: Lucpen <[email protected]> Co-authored-by: Annick Renevey <[email protected]> Co-authored-by: Florian Wuennemann <[email protected]> Co-authored-by: Usman Rashid <[email protected]> Co-authored-by: Nicolas Vannieuwkerke <[email protected]> Co-authored-by: Xichen Wu <[email protected]> Co-authored-by: Xichen Wu <[email protected]> Co-authored-by: wxicu <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anders Sune Pedersen <[email protected]> Co-authored-by: Edmund Miller <[email protected]> Co-authored-by: Leon Hafner <[email protected]> Co-authored-by: Simon Pearce <[email protected]> Co-authored-by: Leon Rauschning <[email protected]> Co-authored-by: vlebars <[email protected]> Co-authored-by: LE BARS Victor <[email protected]> Co-authored-by: DavideBag <[email protected]> Co-authored-by: iraiosub <[email protected]> Co-authored-by: Ashot Margaryan <[email protected]> Co-authored-by: Toni Hermoso Pulido <[email protected]> Co-authored-by: James A. Fellows Yates <[email protected]> Co-authored-by: Carson J Miller <[email protected]>
PR checklist
versions.yml
file.nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda