Conversation
de98ca6 to
af0fc61
Compare
|
@nf-core-bot fix linting |
d13ee7f to
cc86b31
Compare
2677360 to
02b122b
Compare
02b122b to
539a2e3
Compare
| tuple val(meta), path("${meta.id}.tsv"), emit: classification_file | ||
| tuple val(meta), path("${meta.id}.classified*"), optional: true, emit: fastq_classified | ||
| tuple val(meta), path("${meta.id}.unclassified*"), optional: true, emit: fastq_unclassified | ||
| tuple val("${task.process}"), val('centrifuger'), eval("centrifuger -v 2>&1 | head -n 1 | cut -d ' ' -f 2 | sed 's/^v//'"),emit: versions_centrifuger, topic: versions |
There was a problem hiding this comment.
| tuple val("${task.process}"), val('centrifuger'), eval("centrifuger -v 2>&1 | head -n 1 | cut -d ' ' -f 2 | sed 's/^v//'"),emit: versions_centrifuger, topic: versions | |
| tuple val("${task.process}"), val('centrifuger'), eval("centrifuger -v 2>&1 | sed 's/Centrifuger v//'"),emit: versions_centrifuger, topic: versions |
no need to be so fancy 🙂
famosab
left a comment
There was a problem hiding this comment.
Thank you for your contribution to nf-core! We really appreciate it. I added a few comments to your PR.
| { assert snapshot( | ||
| file(process.out.classification_file[0][1]).name, | ||
| file(process.out.fastq_classified[0][1]).name, | ||
| file(process.out.fastq_unclassified[0][1]).name, | ||
| process.out.findAll { key, val -> key.startsWith('versions') } | ||
| ).match() } |
There was a problem hiding this comment.
You can use
{ assert snapshot(sanitizeOutput(process.out)).match() }
for the stub assertion. It should not be necessary to do any other assertions in the stub test.
| file(process.out.classification_file[0][1]).name, | ||
| file(process.out.fastq_classified[0][1]).name, | ||
| file(process.out.fastq_unclassified[0][1]).name, | ||
| process.out.findAll { key, val -> key.startsWith('versions') } |
There was a problem hiding this comment.
Are all of these files instable in md5sum?
There was a problem hiding this comment.
classification_file has a stable MD5, but the classified/unclassifeid are empty due to the tiny test database that was made - so linter rejects it.
There was a problem hiding this comment.
then lets get the md5sum of classification_file and leave the names for the other :)
Thanks for the comments and suggestions |
2fb3f96 to
2566f28
Compare
Co-authored-by: Famke Bäuerle <45968370+famosab@users.noreply.github.com>
Co-authored-by: Famke Bäuerle <45968370+famosab@users.noreply.github.com>
Co-authored-by: Famke Bäuerle <45968370+famosab@users.noreply.github.com>
jfy133
left a comment
There was a problem hiding this comment.
Last stretch, once these are addressed you're good to go!
| } | ||
|
|
||
| } | ||
| test("sarscov2 - fastq_single_end_stub") { |
There was a problem hiding this comment.
| test("sarscov2 - fastq_single_end_stub") { | |
| test("sarscov2 - fastq - single_end - stub") { |
| ) | ||
| } | ||
| } | ||
| test("sarscov2 - fastq_paired_end") { |
There was a problem hiding this comment.
| test("sarscov2 - fastq_paired_end") { | |
| test("sarscov2 - fastq - paired_end") { |
| } | ||
| } | ||
|
|
||
| test("sarscov2 - fastq_single_end") { |
There was a problem hiding this comment.
| test("sarscov2 - fastq_single_end") { | |
| test("sarscov2 - fastq - single_end") { |
There was a problem hiding this comment.
To follow our typical convention
| conda "${moduleDir}/environment.yml" | ||
| container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
| 'https://depot.galaxyproject.org/singularity/centrifuger:1.1.0--hf426362_0': | ||
| 'biocontainers/centrifuger:1.1.0--hf426362_0' }" |
There was a problem hiding this comment.
This was changed like 2 days ago
| 'biocontainers/centrifuger:1.1.0--hf426362_0' }" | |
| 'quay.io/biocontainers/centrifuger:1.1.0--hf426362_0' }" |
|
|
||
| input: | ||
| tuple val(meta), path(reads) | ||
| path db |
| ${umi_arg} \\ | ||
| -t ${task.cpus} \\ | ||
| ${args} > ${prefix}.tsv | ||
|
|
| #main output | ||
| touch ${prefix}.tsv | ||
|
|
||
| #Optional outputs |
There was a problem hiding this comment.
| #Optional outputs | |
| ## Optional outputs |
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| echo ${args} | ||
| #main output |
There was a problem hiding this comment.
| #main output | |
| ## main output |
| - edam: http://edamontology.org/format_1930 #FASTQ | ||
| - db: | ||
| type: directory | ||
| description: Path to directory containing Centrifuger database files. |
There was a problem hiding this comment.
| description: Path to directory containing Centrifuger database files. | |
| description: Path to directory containing Centrifuger database files (that end in `.cfr`). |
| - ${meta.id}.tsv: | ||
| type: file | ||
| description: | | ||
| File contαining classification results |
There was a problem hiding this comment.
| File contαining classification results | |
| File containing classification results |
PR checklist
Closes #XXX
topic: versionslabelnf-core modules test centrifuger/centrifuger --profile dockernf-core modules test centrifuger/centrifuger --profile singularitynf-core modules test centrifuger/centrifuger --profile condaDescription
Classificion model for Centrifguer modules
Module details
.cfrfiles).cfrfiles) may need to be rebuilt on a native x86 machine .