-
Notifications
You must be signed in to change notification settings - Fork 956
Add Autocycler postassembly subworkflow #9786
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
base: master
Are you sure you want to change the base?
Conversation
d4straub
left a comment
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.
Thanks for that great addition! Looking forward to that subworkflow!
I have a few comments though.
subworkflows/nf-core/fasta_consensus_autocycler/tests/main.nf.test
Outdated
Show resolved
Hide resolved
| process RENAME { | ||
| tag "$meta.id" | ||
|
|
||
| input: | ||
| tuple val(meta), path(file) | ||
| val key | ||
|
|
||
| output: | ||
| tuple val(meta), path("${key}_${file}"), emit: renamed | ||
|
|
||
| script: | ||
| """ | ||
| ln -s ${file} "${key}_${file}" | ||
| """ | ||
| } |
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.
It looks unusual to me to have a process in here. I havent seen a precedence among nf-core subworkflows. Maybe that can be solved differently?
| RENAME( | ||
| AUTOCYCLER_RESOLVE.out.resolved, | ||
| AUTOCYCLER_RESOLVE.out.resolved.map{meta, file -> "${meta.id}_${meta.cluster}"} | ||
| ) |
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.
Potentially that could be fixed in the AUTOCYCLER_RESOLVE module? Instead of having
https://github.com/nf-core/modules/blob/e6f6c211fed71038331afa8ed963e006f9acdbc9/modules/nf-core/autocycler/resolve/main.nf#L16C5-L16C67
it could be tuple val(meta), path("${prefix}_5_final.gfa"), emit: resolved (and name the files in the module script appropriately)?
I understand that this doesnt follow the tutorial of the tool, but wont most users of that module need to fix the output naming similar to here?
delete commented out lines and add indents
Adds subworkflow for post assembly autocycler to make it easier to run autocycler in an nf-core pipeline. Takes a list of assemblies from different assemblers or different read subsamples of a single sample. Runs autocycler compress, cluster, trim, resolve and combine. Channel manipulation to label clusters and rename files to avoid collisions.
Closes #9785
PR checklist
topic: versions- See version_topicsnf-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 conda