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

When should I set --Freq_fixed=TRUE in calculating inbreeding Coefficient? #21

Open
wul88 opened this issue Feb 7, 2023 · 3 comments
Open

Comments

@wul88
Copy link

wul88 commented Feb 7, 2023

Hi, Filipe,

I am using ngsF to estimate the inbreeding coefficient for a population of giraffes. I am not sure about the parameter "--freq_fixed". The readMe stated "assume initial MAF as fixed parameters (only estimates F)". However, the examples shown in the ngsTools tutorials didn't mention this parameter in either initial values estimate (with --approx_EM) or the final run.

I tried running ngsF with and without setting "--freq_fixed=TRUE". The results are quite different. I would like to learn more about this parameter.

@fgvieira
Copy link
Owner

fgvieira commented Feb 7, 2023

This option is only useful in few cases, when you don't want to estimate allele frequencies from your data, usually when you already have the freqs from another set of individuals of the same population.

@wul88
Copy link
Author

wul88 commented Feb 7, 2023

Thank you very much for responding quickly!!

We try to assess the inbreeding situation of this population of giraffes. So it is important we understand the method very well. I went through the original (2013) paper. The allele frequency and inbreeding coefficient per individual per site are both estimated in each iteration. If using "--freq_fixed=TRUE", does that mean the allele frequency per site is fixed and taken out of the iteration updating?

Thank you again!

@fgvieira
Copy link
Owner

fgvieira commented Feb 8, 2023

Yep! With --freq_fixed=TRUE per site freqs are fixed, and only per individual inbreeding coef are estimated.

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