dwinter / mmod

Differentiation statistics in R
Other
11 stars 5 forks source link

diff_stats(gi, phi_st = TRUE) error with large data set #12

Open nek001 opened 4 years ago

nek001 commented 4 years ago

Hi there,

I'm just using your diff_stats function to calculate phi_st values. I've tried using a SNP data set of ~18000 loci (a genind object filtered for monomorphs). It keeps producing the error "Error in dimnames(x) <- dn : length of 'dimnames' [1] not equal to array extent". If I drop the number of loci by heavily filtering with a MAF of 0.5 (leaves 18 loci) the function works fine. I was just wondering if this problem has been encountered before and if you might know a solution? Or perhaps it's not optimised to deal with large amounts of data?

Cheers