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

Error in fstat(b, fstonly = T) : could not find function "fstat" #358

Open
nicolashazzi23 opened this issue Dec 27, 2023 · 3 comments
Open

Comments

@nicolashazzi23
Copy link

Hi

I am trying to run an fst analysis and I got the following error: Error in fstat(b, fstonly = T) : could not find function "fstat".

I installed the package hierfstat and loaded it, but it still did not work. Do you have some idea of what could be happening?

@romunov
Copy link
Collaborator

romunov commented Jan 1, 2024

Have you restarted your R session after installing the package? What versions of packages are you using (sessionInfo())?

@jgx65
Copy link
Collaborator

jgx65 commented Jan 2, 2024

If you installed hierfstat, the simplest way to get Fst is via the command hierfstat::wc(dat) where dat is a genind object. This will give you the Weir and Cockerham (1984) estimate of FST. An alternative is using hierfstat::basic.stats(dat) which will provide more detailed information as well as Nei's estimator of FST

@nicolashazzi23
Copy link
Author

Thanks I did it and now works perfectly, thank you very much!

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