mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 05:43:08 +00:00
70daf8be30
This commit provides a minor refactoring with som Nextflow code style improvments: - Replaces `.toGiga()` with `.giga` - Replaces `tag { foo }` with `tag "$foo"` - Move publishDir before input declarations. Directives should be before the first input. Tho this is not enforced, it may be in future versions. - Replaces input `file` with `path` - Remove unnecessary parentheses
20 lines
418 B
Text
20 lines
418 B
Text
process shovill {
|
|
|
|
tag "$shovill"
|
|
|
|
publishDir "${params.outdir}", pattern: '*.fasta', mode: 'copy'
|
|
|
|
container "quay.io/biocontainers/shovill:1.0.9--0"
|
|
|
|
input:
|
|
tuple val(sample_id), path(forward), path(reverse)
|
|
|
|
output:
|
|
path "${sample_id}.fasta"
|
|
|
|
script:
|
|
"""
|
|
shovill --R1 ${forward} --R2 ${reverse} --outdir shovill_out
|
|
mv shovill_out/contigs.fa ${sample_id}.fasta
|
|
"""
|
|
}
|