Skip to content

Use low-confidence site filtering for AF trajectory analyses#28

Merged
ahmig merged 10 commits into
mainfrom
feat/consider-depth
Jan 2, 2026
Merged

Use low-confidence site filtering for AF trajectory analyses#28
ahmig merged 10 commits into
mainfrom
feat/consider-depth

Conversation

@ahmig

@ahmig ahmig commented Dec 23, 2025

Copy link
Copy Markdown
Member

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.

Also adds minor changes to documentation.

@ahmig ahmig self-assigned this Dec 23, 2025
@ahmig ahmig added the enhancement New feature or request label Dec 23, 2025
@ahmig
ahmig merged commit 3d8d619 into main Jan 2, 2026
8 checks passed
@ahmig
ahmig deleted the feat/consider-depth branch January 2, 2026 15:34
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.

1 participant