I'm currently trying to import a microsatellite dataset into the R package adegenet. I 'should' be able import structure, genepop or FSTAT files, but I'm having a heck of a time! (I am attempting to import a STRUCTURE file).
This is my recurring error:
Error in if (!toupper(.readExt(file)) %in% c("STR", "STRU")) stop("File extension .stru expected") :
argument is of length zero
Maybe I'm using the wrong input file? (The project data file generated by structure? the tab delimited file I originally import into STRUCTURE?) I've tried manually forcing the file into the .stu or .stru extension but still get the same error. What would be really great was if there was some sort of sample data file available lol.
I have been able to read in the data using the df2genind function, but have issues if I include ANY extra data (such as population, which is the reason I wanted to use adegenet to begin with).
Any help of troubleshooting tips would be greatly appreciated. Thanks!