Repository navigation
v0.6.2
Filtering variants now filters the ancestry blocks with them. A block that
no retained variant falls in is dropped, where v0.6.1 kept every block whatever
was filtered out of it. A prefix rebuilt from the same --extract or
--exclude therefore has fewer ancestry blocks, and --export-lai and
--export-local-admixture have correspondingly fewer rows.
This changes per-sample admixture proportions, because they are weighted by
the span the blocks cover and that span is now smaller. The difference is not
cosmetic. Take a sample that is EUR at both ends of a chromosome and AFR
across the middle, and extract only variants from the two ends:
v0.6.1 s1 AFR 0.600000 EUR 0.400000
v0.6.2 s1 AFR 0.000000 EUR 1.000000
v0.6.1 averaged in three blocks whose variants had all been filtered out.
Proportions computed from an extracted prefix under v0.6.1 should be
recomputed.
--export-global-admixture also warns now when the blocks leave a hole inside
a contig, which is what an extract leaves behind.
Extracting from a prefix with many ancestry blocks is much faster: the
per-variant block lookup was a linear scan over every block and is now a binary
search. A 20,000-variant, 15,000-block extract went from 0.82s to 0.14s.
Linux x86_64 static binaries: felixla and vcf_tbi_chunks.
Verify with the .sha256 file beside each one.