[adegenet-forum] data import problems

Vikram Chhatre crypticlineage at gmail.com
Fri May 6 20:12:51 CEST 2011


Hello,

I am a new user of the adegenet package.  Following the instructions
in the manual for importing data in genepop and structure format, I
have been experiencing difficulties.  Here is the error I get:

> obj1 <- import2genind(system.file("mydata.gen", package="adegenet"))
Error in if (ext == "GTX") return(read.genetix(file, missing = missing,  :
  argument is of length zero

This example is for data in genepop format.  I have verified that the
data file can be read correctly in genepop, so there are no formatting
errors.  I have been getting exact same error when I try to import
structure files.

Thank you for your help.
Vikram


More information about the adegenet-forum mailing list