kkeenan02 / diveRsity

diveRsity: A comprehensive, general purpose population genetics analysis package.
22 stars 2 forks source link

problems to read a genepop.txt #14

Open ElizaR27 opened 3 years ago

ElizaR27 commented 3 years ago

Hi, I have the same problem I need to use diveRsity for calculate Fst . I worked with a file that I converted to " genepop" in PDGspider I use Test_dato for run but when I used my file It doesn`t run

data <- readGenepop(infile = "Tags_genepop.txt", gp = 3, bootstrap = FALSE) test_results <- basicStats(infile = data3, outfile = "test_run1", fis_ci = TRUE, ar_ci = TRUE, fis_boots = 999, ar_boots = 999, mc_reps = 9999, rarefaction = FALSE, ar_alpha = 0.05, fis_alpha = 0.05) If somebody can solve please save how my file should be testgenepop.txt

Katrinhoh commented 2 years ago

Hi,

I have the same problem. I've tried everything now and still get either

Error in if (popLoc[1] == 3) { : missing value where TRUE/FALSE needed

or

Error in allele_names[[i]] : subscript out of bounds

or

Error in dimnames(x) <- dn : length of 'dimnames' [2] not equal to array extent

interestingly, I also get these problems when I try the exact same with the diveRsity test data, so somethings not right. Could it be packages interacting/masking each others functions? Or does anyone have any other ideas why this could happen?