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

Minor allele freq for >2 pops #8

Open
isaacovercast opened this issue Mar 31, 2018 · 5 comments
Open

Minor allele freq for >2 pops #8

isaacovercast opened this issue Mar 31, 2018 · 5 comments

Comments

@isaacovercast
Copy link
Owner

isaacovercast commented Mar 31, 2018

The minor allele should be determined based on all populations combined for SFS constructed from more than 2 populations:

https://groups.google.com/forum/#!searchin/fastsimcoal/sfs$20multiple$20populations%7Csort:date/fastsimcoal/zWO_ERhHjOg/cnPXsDCXjRAJ

EDIT: This is only a problem for unfolded SFS, folded SFS doesn't care about minor allele.

@cbrock2
Copy link

cbrock2 commented Jun 23, 2020

Hi Isaac,

Just to be clear, is this how you are currently calculating the joint MAF file for >2 populations? I running fastsimcoal2 with 4 populations and would prefer to use the joint MAFs given the estimation issues with zero-laden MSFS files. Thanks so much for the great program.

Best,

Chad

@isaacovercast
Copy link
Owner Author

The minor allele for SFS with > 2 populations is determined by the frequency of alleles only within the sampled populations, not the global allele frequencies. In practice this shouldn't be a huge issue.

@cbrock2
Copy link

cbrock2 commented Jun 24, 2020

Thanks, Isaac.

I have been having some large deviations in results using the multiple joint SFS vs MSFS for greater than two populations (for two pops the results are very similar), so I thought maybe this was the culprit.

Thanks for the clarification and advice.

Best,

Chad

@qinshengyuan
Copy link

Hi Isaac,

when i run the easySFS, all of the observation is zero, such as
1 observation
d0_0 d0_1 d0_2 d0_3 d0_4 d0_5 d0_6
0 0 0 0 0 0 0
1 observation
d0_0 d0_1 d0_2 d0_3
d1_0 0 0 0 0
d1_1 0 0 0 0
d1_2 0 0 0 0
d1_3 0 0 0 0
d1_4 0 0 0 0
d1_5 0 0 0 0
d1_6 0 0 0 0
what's wrong with my data?

Best,

Qin

@isaacovercast
Copy link
Owner Author

@qinshengyuan Good question! Since you don't show me your data, I have no idea what is wrong with it. What are the results when you run the --proj function?

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

3 participants