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
output:
path "${fasta}.*" , emit: index
path "bwa" , emit: index
path "*.version.txt", emit: version
script:
def software = getSoftwareName(task.process)
"""
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
"""
}