jgx65 / hierfstat

the hierfstat package
24 stars 14 forks source link

boot.ppfst throwing an error with "diploid=F" #61

Closed lchall08 closed 1 year ago

lchall08 commented 1 year ago

Hello, When trying to use boot.ppfst with diploid=F, I get the following error: Error in ppsl[i, j, , ] <- as.matrix(pp.sigma.loc(i, j, dat, diploid, : number of items to replace is not a multiple of replacement length There is no issue when trying to use the same dataset to calculate pairwiseFst with diploid=F Thanks,

jgx65 commented 1 year ago

It should be fixed now, see 39ac493

Let me know if this works and if so, please close the issue.

lchall08 commented 1 year ago

}else { ppsl<-array(numeric(npopnpopnloc*3),dim=c(npop,npop,nloc,3)) Line 27: should that be not changed to 2

Thanks

jgx65 commented 1 year ago

indeed, thanks! Fixed now

lchall08 commented 1 year ago

The fix works. Thanks!