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
Branches
No related tags found
No related merge requests found
...@@ -9,11 +9,9 @@ publishDir "results/sampling/", mode: 'copy' ...@@ -9,11 +9,9 @@ publishDir "results/sampling/", mode: 'copy'
file fasta from fasta_file file fasta from fasta_file
output: output:
file "*_sample.fasta" into fasta_sample file "*_sample.fasta", emit: fasta_sample
script: script:
""" """
head ${fasta} > ${fasta.baseName}_sample.fasta head ${fasta} > ${fasta.simpleName}_sample.fasta
""" """
}
...@@ -9,14 +9,13 @@ process sample_fasta { ...@@ -9,14 +9,13 @@ process sample_fasta {
input: input:
file fasta file fasta
output: output:
file "sample.fasta", emit: fasta_sample file "*_sample.fasta", emit: fasta_sample
script: script:
""" """
head ${fasta} > sample.fasta head ${fasta} > ${fasta.simpleName}_sample.fasta
""" """
}
workflow { workflow {
sample_fasta(fasta_file) 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