2020-03-05 09:29:23 +00:00
|
|
|
process shovill {
|
|
|
|
|
2020-07-27 10:11:42 +00:00
|
|
|
tag "$shovill"
|
2020-03-05 09:29:23 +00:00
|
|
|
|
|
|
|
publishDir "${params.outdir}", pattern: '*.fasta', mode: 'copy'
|
2020-07-11 11:42:13 +00:00
|
|
|
|
2020-03-05 09:29:23 +00:00
|
|
|
container "quay.io/biocontainers/shovill:1.0.9--0"
|
|
|
|
|
|
|
|
input:
|
2020-07-27 10:11:42 +00:00
|
|
|
tuple val(sample_id), path(forward), path(reverse)
|
2020-03-05 09:29:23 +00:00
|
|
|
|
|
|
|
output:
|
2020-07-27 10:11:42 +00:00
|
|
|
path "${sample_id}.fasta"
|
2020-07-11 11:42:13 +00:00
|
|
|
|
2020-03-05 09:29:23 +00:00
|
|
|
script:
|
|
|
|
"""
|
|
|
|
shovill --R1 ${forward} --R2 ${reverse} --outdir shovill_out
|
|
|
|
mv shovill_out/contigs.fa ${sample_id}.fasta
|
|
|
|
"""
|
|
|
|
}
|