<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" bgcolor="#ffffff">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear Avik,
<br>
<br>
The problem is not a but in df2genind as I first feared, but an issue in your data. Line 59, loci 2 reads:<br>
353/353/345345<br>
<br>
The missing separator creates the problem. I thought about issuing a warning for that kind of typo, but I don't think it would be a good deal in terms of computational time.<br>
<br>
All the best<br>
<br>
Thibaut<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF168628"><font color="#000000" face="Tahoma" size="2"><b>From:</b> adegenet-forum-bounces@r-forge.wu-wien.ac.at [adegenet-forum-bounces@r-forge.wu-wien.ac.at] on behalf of AVIK RAY [avik.ray.kol@gmail.com]<br>
<b>Sent:</b> 09 June 2011 09:54<br>
<b>To:</b> adegenet-forum@r-forge.wu-wien.ac.at<br>
<b>Subject:</b> [adegenet-forum] input file problem!<br>
</font><br>
</div>
<div></div>
<div>Hi All<br>
<br>
I am trying to do PCA with tetraploid data; 204 individuals, 7 loci, with some missing data, and the command goes like this<br>
<br>
..........<small><small><br>
</small></small>
<p class="MsoNormal"><small><small>> obj<-read.table("infileAll.txt")</small></small></p>
<p class="MsoNormal"><small><small>> obj</small></small></p>
<p class="MsoNormal"><small><small>…………….</small></small></p>
<p class="MsoNormal"><small><small>…………….</small></small></p>
<p class="MsoNormal"><small><small>> dat<-data.frame(obj)</small></small></p>
<p class="MsoNormal"><small><small>> dat</small></small></p>
<p class="MsoNormal"><small><small>…………….</small></small></p>
<p class="MsoNormal"><small><small>…………….</small></small></p>
<p class="MsoNormal"><small><small>> x<-df2genind(dat, sep="/", ploidy=4) </small>
</small></p>
<p class="MsoNormal"><small><small>Error in data.frame(c("366", "366", "366", "378"), c("366", "366", "366",<span style="">
</span>: </small></small></p>
<p class="MsoNormal"><small><small><span style=""> </span>arguments imply differing number of rows: 4, 1, 3</small></small></p>
<p class="MsoNormal"><small><small>In addition: Warning message:</small></small></p>
<p class="MsoNormal"><small><small>In df2genind(dat, sep = "/", ploidy = 4) :</small></small></p>
<p class="MsoNormal"><small><small><span style=""> </span>entirely non-type individual(s) deleted</small></small><br>
</p>
<p class="MsoNormal">......................<br>
</p>
<p class="MsoNormal"><br>
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;
<br>
please suggest a solution<br>
Thanks</p>
AVIK<br>
</div>
</div>
</div>
</body>
</html>