sa-lee / starmie

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

loadStructure introducing NAs #45

Open dionnecargy opened 4 years ago

dionnecargy commented 4 years ago

Hi, when I go to add the data generated (from runStructure) via loadStructure, it keeps introducing NA's into the last column of the file! Therefore when I generate clumpp files, the final cluster is NA and I can't generate plots etc. !

k3_1 <- loadStructure("/R_STRUCTURE/run01_K_03.out_f") k3_2 <- loadStructure("/R_STRUCTURE/run02_K_03.out_f") k3_3 <- loadStructure("/R_STRUCTURE/run03_K_03.out_f")

NAs introduced by coercion

k3_struct <- structList(k3_1, k3_2, k3_3) #works Q_k3 <- lapply(k3_struct, getQ) #works but then introduces NA's in last column e.g.: Screen Shot 2019-09-29 at 11 18 30 am

Can I please have some help!