Fix tabix/bgzip version command (#407)

This commit is contained in:
Harshil Patel 2021-04-07 08:39:53 +01:00 committed by GitHub
parent 242fdb2f73
commit 7c2f10f591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,7 @@ process TABIX_BGZIP {
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}" def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
""" """
bgzip -c $options.args $input > ${prefix}.${input.getExtension()}.gz bgzip -c $options.args $input > ${prefix}.${input.getExtension()}.gz
echo \$(bcftools --version 2>&1) | sed 's/^.*bcftools //; s/ .*\$//' > ${software}.version.txt
echo \$(tabix -h 2>&1) | sed 's/^.*Version: //; s/(.*\$//' > ${software}.version.txt
""" """
} }