-
Notifications
You must be signed in to change notification settings - Fork 14
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
Treatment of populations of 1 #68
Comments
Hi Sophie, could you provide a worked-out example? Also, if you are using a one-level hierarchy as it seems, I suggest you use the Last, we are now advocating using the Weir-Goudet estimator of FST, using the Best wishes |
Hi there, Thank you kindly for your prompt response! Here's my sampling scheme: individuals within populations within urban/rural groups within the entire group of all sampled individuals. I start off creating a genind from my vcf with
The strata (note that some populations contain only one individual)
The
I then perform this process with vcfs containing individuals from just urban and rural groups. For example, this is for the urban group:
Then, I compare them to my results from vcftools' |
Thanks Sophie, How many rural and urban sites do you have? From your output, perhaps you could try out the following?
|
Hi Jerome, Hmm- perhaps I did make an error as you suggested. Regardless, since my last message, my team and I have decided to seek a way to calculate Fst using Bhatia's/Hudson's estimator. Do you have any advice for doing this with hierfstat or another R package? Preferably using a vcf as input? Also, I started troubleshooting Thanks again for your continued help! |
to read a vcf in hierfstat, use the function |
1 similar comment
to read a vcf in hierfstat, use the function |
Hi Jerome- I was able to use the However, to confirm, I cannot calculate genetic differentiation among the two groups at the highest level (urban and rural) while accounting for the substructure, correct? Again, my data contains individuals within sampling sites within urban/rural groups, like this, and I'm searching for a way to calculate hierarchical FST with a method that accounts for differences in sampling size among groups.
|
A hierarchical version of |
Yes, it does look like there is almost no difference between urban/rural groups with the |
No other ways than |
Hello,
I've computed Fst among groups with both hierfstat's varcomp.glob() and vcftools --weir-fst-pop. Each give different answers even though both use the WC formula. I'm wondering if the reason behind the discrepancy is the way each software treats populations with 1 individual (no within-population variance). Does hierfstat remove them from the dataset?
Thank you,
Sophie
The text was updated successfully, but these errors were encountered: