Skip to content

Commit

Permalink
dxapplet: use spvcf squeeze to trim trailing empty pVCF fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Aug 23, 2018
1 parent e42b979 commit a71c598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file added cli/dxapplet/resources/usr/local/bin/spvcf
Binary file not shown.
5 changes: 3 additions & 2 deletions cli/dxapplet/src/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ main() {
set -ex -o pipefail

compressor="pigz"
vcf_compressor="bgzip --threads $(nproc)"
compress_ext="gz"

# log detailed utilization
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a71c598

Please sign in to comment.