Skip to content

Conversation

@ahmig
Copy link
Member

@ahmig ahmig commented Dec 23, 2025

Ensures missing variants are distinguished from zero frequency values by applying depth and quality filters, preventing low-confidence sites from biasing allele frequency analyses. This PR does not alter AF-weighted distance calculations.

Using bcftools mpileup, all sites are initially filtered by base quality. Then, sites are filtered based on total AD. For allele frequency trajectory analyses, sites passing these filters are assigned an imputed AF=0 if the variant is absent in a given sample (representing AF=1 of the reference allele). Conversely, low-confidence sites that fail to meet these thresholds are assigned AF=NA.

@ahmig ahmig self-assigned this Dec 23, 2025
@ahmig ahmig added the enhancement New feature or request label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants