Skip to content

LongPhase-TO v1.1.2

Choose a tag to compare

@NAre3 NAre3 released this 19 Oct 17:19
6ad10dd

What's New in v1.1.2

Performance and bug-fix release. phase is faster, memory and resource leaks in phase, modcall and haplotag are fixed, and four smaller bugs are fixed. VCF records, LOH BED and BAM tags are the same as in v1.1.1 in our comparisons; the output changes are listed under Bug fixes.

Performance

  • Faster phase (#17). Building the phasing graph and scanning reads for bases that differ from the reference take less time and memory. The algorithm is unchanged; outputs were identical to the previous version on 45 whole-genome ONT and PacBio HiFi runs.

Bug fixes

  • Memory and resource leaks (#16, #18). phase, modcall and haplotag now free what they allocate. The largest leak was in modcall, which kept an extra copy of the reference sequence for the whole run. Outputs are unchanged.
  • phase: ##tumor_purity in _SV.vcf and _mod.vcf (#19). With --sv-file or --mod-file, these headers printed an uninitialized value (for example 0 or 4.94066e-324). They now carry the same purity as the main VCF.
  • haplotag --log: reads with no votes (#19). For reads with no haplotype votes, the Confidnet(%) and phasingQuality(PQ) columns were computed from uninitialized values and could differ between runs. They are now . and 0. These reads stay untagged, as before.
  • haplotag: SNP VCF parsing (#19). Two flags read while parsing the SNP VCF are now initialized.
  • Missing reference contig (#19). When a contig they need was missing from the reference, phase and haplotag aborted with a C++ exception (basic_string::_M_construct null not valid). They now print ERROR: <contig> not found in reference <file> and exit with status 1. phase needs the contigs that carry SNPs; haplotag needs every contig in the phased VCF header, or only the --region contig when --region is given.

Tests

  • New tests: tests/test_missing_contig.sh, tests/test_sv_mod_purity_header.sh and tests/test_haplotag_log_no_votes.sh. They use samtools to build BAM inputs. Without it, the last two are skipped and test_missing_contig.sh runs only its phase check.

Installation

wget https://github.com/CCU-Bioinformatics-Lab/longphase-to/releases/download/v1.1.2/longphase-to_linux-x64.tar.xz
tar -xJf longphase-to_linux-x64.tar.xz
./longphase-to_linux-x64 --version

The attached longphase-to_linux-x64.tar.xz contains a single statically linked x86-64 executable, longphase-to_linux-x64. It has no shared-library dependencies and targets GNU/Linux 3.2.0 or later.

sha256 (longphase-to_linux-x64.tar.xz) = 175c4c123166b0178d2c55a1aa88b81f98e44716743f62ddb52fbaff024922be

You can also build from source or use the provided Dockerfile:

git clone https://github.com/CCU-Bioinformatics-Lab/longphase-to.git
cd longphase-to
autoreconf -i
./configure
make -j 4

Full changelog

v1.1.1...v1.1.2