Repository navigation
LongPhase-TO v1.1.2
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,modcallandhaplotagnow free what they allocate. The largest leak was inmodcall, which kept an extra copy of the reference sequence for the whole run. Outputs are unchanged. phase:##tumor_purityin_SV.vcfand_mod.vcf(#19). With--sv-fileor--mod-file, these headers printed an uninitialized value (for example0or4.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, theConfidnet(%)andphasingQuality(PQ)columns were computed from uninitialized values and could differ between runs. They are now.and0. 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,
phaseandhaplotagaborted with a C++ exception (basic_string::_M_construct null not valid). They now printERROR: <contig> not found in reference <file>and exit with status 1.phaseneeds the contigs that carry SNPs;haplotagneeds every contig in the phased VCF header, or only the--regioncontig when--regionis given.
Tests
- New tests:
tests/test_missing_contig.sh,tests/test_sv_mod_purity_header.shandtests/test_haplotag_log_no_votes.sh. They usesamtoolsto build BAM inputs. Without it, the last two are skipped andtest_missing_contig.shruns only itsphasecheck.
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 --versionThe 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