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

aboot with hierfstat::fstat #21

Open
ghost opened this issue Aug 11, 2016 · 0 comments
Open

aboot with hierfstat::fstat #21

ghost opened this issue Aug 11, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 11, 2016

I've been trying to use aboot with hierfstat's fstat with little success.
Following are the commands I used from a clean environment:

install.packages("poppr")
install.packages("hierfstat")
library("poppr")
library("hierfstat")
data("nancycats")
my.fst.dist <- function(s) fstat(x = s,pop = NULL,fstonly = TRUE)
nancy_tree <- aboot(nancycats, distance = "my.fst.dist")

This gives the output:

Error in fstat(s) : x is not a valid genind object

However I also get the following:

nancycats

/// GENIND OBJECT /////////

// 237 individuals; 9 loci; 108 alleles; size: 145.3 Kb

// Basic content
@tab: 237 x 108 matrix of allele counts
......

and

fstat(nancycats)

gives

         pop       Ind

Total 0.08494959 0.1952946
pop 0.00000000 0.1205890

Any help would be appreciated.
Thanks,
Will

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

0 participants