hierfstat icon indicating copy to clipboard operation
hierfstat copied to clipboard

gstat.randtest missing

Open osowiecki opened this issue 3 years ago • 4 comments

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?

osowiecki avatar Nov 24 '21 19:11 osowiecki

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

jgx65 avatar Nov 24 '21 21:11 jgx65

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.")

osowiecki avatar Nov 24 '21 22:11 osowiecki

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.

llait avatar Mar 24 '23 22:03 llait

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

jgx65 avatar Mar 29 '23 05:03 jgx65