sa-lee / starmie

starmie: plotting and inference for population structure models :star2:
Other
12 stars 6 forks source link

Cannot load structure output #46

Open jdmontenegro opened 4 years ago

jdmontenegro commented 4 years ago

Hi We have just generate a few structure outputs using command line structure:

structure -K 5 -D 9 -i o pop_K5_D9 The output is found as pop_K5_D9.out_f

However, when I try to load it to starmie:

library(starmie)
K5<-loadStructure("pop_K5_D9.out_f")

I get the following error

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

Is there anything wrong with the parsing? I have not changed anything inside the output of structure. I am using structure v2.3.4 with standard parameters from SNP data (VCF converted to structure).

I look forward to hearing from you.

Kind regards