-
Notifications
You must be signed in to change notification settings - Fork 912
New module: Ribodetector #9209
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?
New module: Ribodetector #9209
Conversation
| input: | ||
| tuple val(meta), path(fastq) | ||
| val length | ||
|
|
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.
modules/nf-core/ribodetector/main.nf
Outdated
| tuple val(meta), path("*.nonrna*.fastq.gz"), emit: fastq | ||
| tuple val(meta), path("*.log"), emit: log | ||
| path "versions.yml" , emit: versions |
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.
| tuple val(meta), path("*.nonrna*.fastq.gz"), emit: fastq | |
| tuple val(meta), path("*.log"), emit: log | |
| path "versions.yml" , emit: versions | |
| tuple val(meta), path("*.nonrna*.fastq.gz"), emit: fastq | |
| tuple val(meta), path("*.log") , emit: log | |
| path "versions.yml" , emit: versions |
modules/nf-core/ribodetector/main.nf
Outdated
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.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.
| END_VERSIONS | ||
| """ | ||
|
|
||
|
|
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.
modules/nf-core/ribodetector/main.nf
Outdated
| touch ${prefix}.nonrna.1.fastq.gz | ||
| touch ${prefix}.nonrna.2.fastq.gz |
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.
nf-test doesn't like empty files with .gz as the suffix, it can give weird errors.
| touch ${prefix}.nonrna.1.fastq.gz | |
| touch ${prefix}.nonrna.2.fastq.gz | |
| echo | gzip > ${prefix}.nonrna.1.fastq.gz | |
| echo | gzip > ${prefix}.nonrna.2.fastq.gz |
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.
Good to know, thanks !
| - genomics | ||
| tools: | ||
| - "ribodetector": | ||
| description: "Accurate and rapid RiboRNA sequences Detector based on deep learning" |
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.
| description: "Accurate and rapid RiboRNA sequences Detector based on deep learning" | |
| description: "Accurate and rapid RiboRNA sequences detector based on deep learning" |
| assertAll( | ||
| { assert process.success }, | ||
| { assert process.out.fastq }, | ||
| { assert process.out.log }, | ||
| { assert path(process.out.log[0][1]).getText().contains("Writing output non-rRNA sequences") }, | ||
| ) |
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.
The assertions need at least to check that the versions.yml is produced consistently.
Are the files stable too?
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.
Unfortunately, the output can't consistently checksumed between two runs :(
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.
Why not, what is changing in the 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.
Is there a random seed that needs to be set?
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.
Unfortunately, AFAIK, the devs of Ribodetector haven't implemented a way to set the manual seed in Pytorch, so 2 different runs will give slightly different results.
PR checklist
RiboDetector is a software developed to accurately yet rapidly detect and remove rRNA sequences from metagenomeic, metatranscriptomic, and ncRNA sequencing data.
versions.ymlfile.labelnf-core modules test <MODULE> --profile singularity