adegenet
adegenet copied to clipboard
Error in fstat(b, fstonly = T) : could not find function "fstat"
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?
Have you restarted your R session after installing the package? What versions of packages are you using (sessionInfo()
)?
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
Thanks I did it and now works perfectly, thank you very much!