Originally Posted by ZephyrousMandaru
in R file is reading your target.txt file. Its sensitive to whitespace as well. You need to space each entry with a tab.
tVec <- read.table(file = target, head = TRUE, sep = "\t", row.names = 1)
The error is perhaps because of multiple header(ANE/WHG....) entries.
I created my own target.txt file and even followed the 'syntax' but had trouble as well. I just copy pasted each population to the provided sample target.txt file.
Oceanian_purple Central_Asian_teal European_blue Amerindian_pink South_Asian_light_green EEF_orange East_Asian_yellow Siberian_crimson Sub.Saharan_light_blue
Polish 0.005857 0.43027 0.012981 0.020237 0.143712 0.328508 1E-005 1E-005 0.058415
Unless your issue is with .csv file.