Skip to content

Allow window overlap when calculating Tajima's D#228

Open
ymat2 wants to merge 2 commits intovcftools:masterfrom
ymat2:windowTajD
Open

Allow window overlap when calculating Tajima's D#228
ymat2 wants to merge 2 commits intovcftools:masterfrom
ymat2:windowTajD

Conversation

@ymat2
Copy link
Copy Markdown

@ymat2 ymat2 commented Mar 13, 2026

This PR suggests modifying the option --TajimaD to calculate with sliding windows like Fst and nucleotide diversity. #92
Created output_windowed_Tajima_D function that enables overlapping windows with --TajimaD-size and --TajimaD-step options.
The algorithm to calculate Tajima's D is based on the existing output_Tajima_D function.
For comparison and testing, the original output_Tajima_D function remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant