jgx65 / hierfstat

the hierfstat package
24 stars 14 forks source link

gstat.randtest missing #52

Open osowiecki opened 2 years ago

osowiecki commented 2 years ago

I discovered today that the function gstat.randtest() is missing in the latest two releases of the package. Was there a name change or have you removed the function for some reason?

jgx65 commented 2 years ago

As far as I know, there never has been a function gstat.randtest in hierfstat . There is a function test.g, perhaps this is what you are looking for? Otherwise, there is gstat.randtest in adegenet. Best regards

osowiecki commented 2 years ago

As far as I know, there never has been a function gstat.randtest in hierfstat . There is a function test.g, perhaps this is what you are looking for? Otherwise, there is gstat.randtest in adegenet. Best regards

https://www.rdocumentation.org/packages/hierfstat/versions/0.04-22/topics/gstat.randtest

It was removed from adegenet and they claim that it was moved to hierfstat. It is present in 0.04-22 and works.

https://rdrr.io/cran/adegenet/src/R/gstat.randtest.R

message("Sorry, this function depends on hierfstat, and has been moved to the package hierfstat.")

llait commented 1 year ago

Has there been a replacement for gstat.randtest and fstat()? I used them in previous versions and found them great! Have they maybe been renamed? I can't find them or the equivalent anywhere.

jgx65 commented 1 year ago

Thanks for your note. There will not be a replacement for fstat() , as several functions in hierfstat already exist to estimates one of the several Fsts (e.g. basic.stats, wc, fs.dosage. All but the last can also take as argument genindobjects, e.g.:

>data(nancycats)
> wc(nancycats)
$FST
[1] 0.08494959

$FIS
[1] 0.120589 

I'll reintroduce gstat.randtest in the next release