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

gstat.randtest missing #52

Open
osowiecki opened this issue Nov 24, 2021 · 4 comments
Open

gstat.randtest missing #52

osowiecki opened this issue Nov 24, 2021 · 4 comments

Comments

@osowiecki
Copy link

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
Copy link
Owner

jgx65 commented Nov 24, 2021

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
Copy link
Author

osowiecki commented Nov 24, 2021

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
Copy link

llait commented Mar 24, 2023

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
Copy link
Owner

jgx65 commented Mar 29, 2023

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

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