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

Specifying separate priors for each SNP in multidog #27

Open
gtbil opened this issue Sep 21, 2023 · 2 comments
Open

Specifying separate priors for each SNP in multidog #27

gtbil opened this issue Sep 21, 2023 · 2 comments

Comments

@gtbil
Copy link

gtbil commented Sep 21, 2023

Thanks for making an awesome package!

Is there currently a way to specify a different prior for each SNP in multidog? I didn't see it in the documentation, but wanted to ask before I attempted to hack a way around it.

The use case I'm thinking of is genotyping in allotetraploids. I expect all SNPs to only have three genotype classes, and to segregate as in a diploid, but some of them will look sort of like ploidy = 4 (with three genotype classes like AAAA, AAAB, and AABB present and two genotype classes ABBB and BBBB not present) and some will look like ploidy = 2 (with all three genotype classes observed).

The work-around idea I had was to split my SNPs into separate pieces based on which prior and/or ploidy they need (using some heuristics) and run multidog separately for each, then merge them.

Thanks!

  • Grant
@dcgerard
Copy link
Owner

Hey @gtbil,

Thanks for trying out {updog}!

Right now, this isn't available. But it would not be hard to implement, so I could do that when I get a chance in the next couple months. But are you saying that you would like the ploidy argument the vary as well from SNP to SNP?

Best,
David

@gtbil
Copy link
Author

gtbil commented Sep 24, 2023

Yes! Exactly, it would be great to have the ability to vary the ploidy argument and the prior_vec argument by SNP. I can provide test data for some example SNPs (with my manual genotype calls) I have in hand if it would be helpful for testing, or I can test myself.

Thanks a lot,
Grant

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

No branches or pull requests

2 participants