Skip to content
Snippets Groups Projects
Commit 5bf3ddc1 authored by lgely's avatar lgely
Browse files

Update changed output src/fasta_sampler_tp.nf

parent f8d4eb80
No related branches found
No related tags found
No related merge requests found
......@@ -9,11 +9,9 @@ publishDir "results/sampling/", mode: 'copy'
file fasta from fasta_file
output:
file "*_sample.fasta" into fasta_sample
file "*_sample.fasta", emit: fasta_sample
script:
"""
head ${fasta} > ${fasta.baseName}_sample.fasta
head ${fasta} > ${fasta.simpleName}_sample.fasta
"""
}
......@@ -9,14 +9,13 @@ process sample_fasta {
input:
file fasta
output:
file "sample.fasta", emit: fasta_sample
output:
file "*_sample.fasta", emit: fasta_sample
script:
"""
head ${fasta} > sample.fasta
head ${fasta} > ${fasta.simpleName}_sample.fasta
"""
}
workflow {
sample_fasta(fasta_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment