diff --git a/cli/dxapplet/resources/usr/local/bin/spvcf b/cli/dxapplet/resources/usr/local/bin/spvcf new file mode 100755 index 00000000..c6500f70 Binary files /dev/null and b/cli/dxapplet/resources/usr/local/bin/spvcf differ diff --git a/cli/dxapplet/src/code.sh b/cli/dxapplet/src/code.sh index 1475443a..802599a9 100755 --- a/cli/dxapplet/src/code.sh +++ b/cli/dxapplet/src/code.sh @@ -7,7 +7,6 @@ main() { set -ex -o pipefail compressor="pigz" - vcf_compressor="bgzip --threads $(nproc)" compress_ext="gz" # log detailed utilization @@ -60,13 +59,15 @@ main() { bucket_size_arg="--bucket_size $bucket_size" fi squeeze_arg="" + squeeze_cmd="cat" if [[ "$squeeze" == "true" ]]; then squeeze_arg="--squeeze" + squeeze_cmd="spvcf squeeze -q -" fi mkdir -p out/vcf time numactl --interleave=all glnexus_cli --config "$config" $squeeze_arg --list --bed $bed_ranges $bucket_size_arg $debug_flags /tmp/gvcf_list \ - | bcftools view - | $vcf_compressor -c > "out/vcf/${output_name}.vcf.${compress_ext}" + | bcftools view - | $squeeze_cmd | bgzip --threads $(nproc) -c > "out/vcf/${output_name}.vcf.${compress_ext}" if [[ "$perf" == "true" ]]; then # Try to kill the perf process nicely; this does not always work