DrewWham / Genetic-Structure-Tools

R Functions for plotting and working with STRUCTURE files
Apache License 2.0
0 stars 2 forks source link

The code doesn't work on the provided files #2

Open drdna opened 3 months ago

drdna commented 3 months ago

Two errors are returned:

read.STR("Downloads/All Glynnii.txt", "Downloads/No Add Inf Lamb Final_run_10_f.txt")
```Error in `[<-.data.frame`(`*tmp*`, , 1, value = c("PAL09_444", "Pal09_63",  : 
  replacement has 212 rows, data has 213
In addition: Warning message:
In readLines(STR.out) :
  incomplete final line found on 'Downloads/No Add Inf Lamb Final_run_10_f.txt'

After correcting final line:

read.STR("Downloads/All Glynnii.txt", "Downloads/No Add Inf Lamb Final_run_10_f.txt")


Error in `[<-.data.frame`(`*tmp*`, , 1, value = c("PAL09_444", "Pal09_63",  : 
  replacement has 212 rows, data has 213
drdna commented 3 months ago

The code doesn't parse the relevant fields properly - it extracts the wrong k values and includes invalid columns in the final data matrix