Fix module

This commit is contained in:
drpatelh 2021-02-02 13:37:24 +00:00
parent 24370f241b
commit 3ccf99d612

View file

@ -22,14 +22,14 @@ process BWA_INDEX {
path fasta path fasta
output: output:
path "${fasta}.*" , emit: index path "bwa" , emit: index
path "*.version.txt", emit: version path "*.version.txt", emit: version
script: script:
def software = getSoftwareName(task.process) def software = getSoftwareName(task.process)
""" """
mkdir bwa mkdir bwa
bwa index $options.args bwa/${fasta.baseName} bwa index $options.args $fasta -p bwa/${fasta.baseName}
echo \$(bwa 2>&1) | sed 's/^.*Version: //; s/Contact:.*\$//' > ${software}.version.txt echo \$(bwa 2>&1) | sed 's/^.*Version: //; s/Contact:.*\$//' > ${software}.version.txt
""" """
} }