Skip to content

Integration with scikit-allel: SFS and joint SFS calculations - #71

Merged
dcdehaas merged 3 commits into
mainfrom
more_popgen
Aug 27, 2026
Merged

dcdehaas merged 3 commits into
mainfrom
more_popgen

Conversation

@dcdehaas

Copy link
Copy Markdown
Member

grapp.popgen now supports extracting allele count output that is directly compatible with many scikit-allel popgen functions. Specifically, we can now extract per-population allele counts, and extract the ref/alt allele counts in a matrix form that can be passed directly to scikit-allel's folded SFS functionality.

grapp.popgen.sfs also contains wrappers around scikit-allel that will compute SFS information for all population pairs, e.g. for extracting the joint SFS information for demographic inference.

This functionality is still a work in progress, and APIs may change. The f-statistics (both classical and admixture ones) from scikit-allel should also be compatible with grapp.popgen, and at some point I will add wrappers for those as well.

`grapp.popgen` now supports extracting allele count output that
is directly compatible with many scikit-allel popgen functions.
Specifically, we can now extract per-population allele counts,
and extract the ref/alt allele counts in a matrix form that can
be passed directly to scikit-allel's folded SFS functionality.

`grapp.popgen.sfs` also contains wrappers around scikit-allel
that will compute SFS information for all population pairs, e.g.
for extracting the joint SFS information for demographic
inference.

This functionality is still a work in progress, and APIs may
change. The f-statistics (both classical and admixture ones)
from scikit-allel should also be compatible with `grapp.popgen`,
and at some point I will add wrappers for those as well.
@dcdehaas
dcdehaas merged commit 1c466a4 into main Aug 27, 2026
5 checks passed
@dcdehaas
dcdehaas deleted the more_popgen branch August 27, 2026 17:40
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