Commit 6524520c authored by lrodrig1's avatar lrodrig1
Browse files

minor changes in

parent 8d50ef42
tag "samtools view sam2bam" tag { "samtools view sam2bam" }
container '' container ''
input: input:
path input path input
output: output:
path "*.bam", emit: output path "*.bam"
script: script:
def threadsArgument = params.threads_samtools ? "--threads $params.threads_samtools" : "" def threadsArgument = params.threads_samtools ? "--threads $params.threads_samtools" : ""
""" """
name=\$(basename $input) name=\$(basename $input)
outputName=\$(echo \${name%.*}) outputName=\$(echo \${name%.*})
samtools view $threadsArgument -bS $input -o \$outputName.bam samtools view $threadsArgument -bS $input -o \$outputName.bam
""" """
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment