Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ancestry composition #89

Open
RoniHaas opened this issue Dec 3, 2022 · 1 comment
Open

Ancestry composition #89

RoniHaas opened this issue Dec 3, 2022 · 1 comment

Comments

@RoniHaas
Copy link

RoniHaas commented Dec 3, 2022

Hello,

I would appreciate your help with a question about ancestry composition.

Peddy assigns a single ancestry to each individual and gives the corresponding probability (which is the highest) for that prediction.
I was wondering if there is a way to know what are the probabilities for ancestries with lower probabilities for the same individual.

For example, if Peddy predicts for an individual an AMR ancestry with a probability of 0.7, can I know what is the prediction for the left 0.3?

My goal is to create a plot, based on that idea for example:
image

Thank you!

@brentp
Copy link
Owner

brentp commented Dec 5, 2022

Hi, this could be done by not simply taking the max here: https://github.com/brentp/peddy/blob/master/peddy/pca.py#L82
I would accept a PR that reports the other probabilities.
The interpretation would not be the same as admixture, but might be informative as a proxy.

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

No branches or pull requests

2 participants