[adegenet-forum] input file problem!

Jombart, Thibaut t.jombart at imperial.ac.uk
Thu Jun 9 19:13:16 CEST 2011


Dear Avik,

unfortunately we do not have enough information to help. Could you send a subset of the data allowing the reproduce the issue?

Best

Thibaut


________________________________
From: adegenet-forum-bounces at r-forge.wu-wien.ac.at [adegenet-forum-bounces at r-forge.wu-wien.ac.at] on behalf of AVIK RAY [avik.ray.kol at gmail.com]
Sent: 09 June 2011 09:54
To: adegenet-forum at r-forge.wu-wien.ac.at
Subject: [adegenet-forum] input file problem!

Hi All

I am trying to do PCA with tetraploid data;  204 individuals, 7 loci, with some missing data, and the command goes like this

..........
> obj<-read.table("infileAll.txt")
> obj
…………….
…………….
> dat<-data.frame(obj)
> dat
…………….
…………….
> x<-df2genind(dat, sep="/", ploidy=4)
Error in data.frame(c("366", "366", "366", "378"), c("366", "366", "366",  :
  arguments imply differing number of rows: 4, 1, 3
In addition: Warning message:
In df2genind(dat, sep = "/", ploidy = 4) :
  entirely non-type individual(s) deleted
......................

so, do not know what is going wrong in it! I guess there is some problem with the input file so it's not accepted in R; earlier with small dataset it worked fine;
please suggest a solution
Thanks
AVIK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20110609/aa369b41/attachment-0001.htm>


More information about the adegenet-forum mailing list