-
Notifications
You must be signed in to change notification settings - Fork 940
New module - TD2 (added modules for td2.longorfs & td2.predict) #9475
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
SPPearce
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.
Please look at swapping to using a topic channel to emit the version:
https://nf-co.re/blog/2025/version_topics
| """ | ||
| TD2.LongOrfs \\ | ||
| -t ${fasta} \\ | ||
| -O ${prefix} \\ |
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.
Can we just make the files directly in this folder, rather than a subfolder?
| tuple val(meta), path(fasta) | ||
|
|
||
| output: | ||
| tuple val(meta), path("${prefix}/longest_orfs.{cds,gff3,pep}"), emit: orfs |
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.
We generally make one output channel per file, rather than multiple in one, unless there is a good reason otherwise.
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| td2: \$(td2 v1.0.6) |
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.
This should be getting the version from the tool.
If the tool doesn't give a version, it should be set as a separate string with warnings to ensure people remember to change if they change the version.
https://github.com/search?q=repo%3Anf-core%2Fmodules+%22not+provided+by+tool+on+CLI%22
| }, | ||
| { | ||
| "TD2_PREDICT": { | ||
| "td2": null |
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.
This shouldn't be null.
| "community.wave.seqera.io/library/td2:1.0.6--ea3e5ac09443b677"}" | ||
|
|
||
| input: | ||
| tuple val(meta), path(fasta), path(orfs_dir, stageAs: 'orfs') |
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.
Hmm, so this tool requires all three files in one directory? Then I can see a reason to emit them as one channel above.
Added new modules for TD2 -
longorfsandpredictCloses #9470
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 conda