<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear Kristin,
<div><br>
</div>
<div>it is hard to figure out what is happening from the error message. </div>
<div><br>
</div>
<div>Could you post an "Issue" on github with a reproducible example (code + data)? </div>
<div><br>
</div>
<div><font face="Courier New">adegenetIssues()</font></div>
<div><br>
</div>
<div>Cheers</div>
<div>Thibaut <br>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText"><br>
<br>
<br>
</div>
</span></font></div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF55706" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> adegenet-forum-bounces@lists.r-forge.r-project.org [adegenet-forum-bounces@lists.r-forge.r-project.org] on behalf of Kristin Alligood [kristin.alligood@gmail.com]<br>
<b>Sent:</b> 09 October 2015 03:13<br>
<b>To:</b> adegenet-forum@lists.r-forge.r-project.org<br>
<b>Subject:</b> [adegenet-forum] Error with read.PLINK and extract.PLINKmap<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>Hi,</div>
I am having trouble importing my data into adegenet using the read.PLINK command. I have converted my data into a plink.raw file using --recodeA, but am getting an error when I try to load my data:
<div><br>
<div><font size="1">MIplink <- read.PLINK("plink.raw")<br>
Reading PLINK raw format into a genlight object... <br>
Reading loci information... <br>
Reading and converting genotypes... <br>
.Error in (function (classes, fdef, mtable) : <br>
unable to find an inherited method for function ‘nLoc’ for signature ‘"try-error"’<br>
In addition: Warning message:<br>
In mclapply(txt, function(e) new("SNPbin", snp = e, ploidy = 2), :<br>
1 function calls resulted in an error</font>
<p class="">I am also having trouble using the extract.PLINKmap command and get this error:</p>
<font size="1">Pmap <- extract.PLINKmap("batch_1.plink.map")<br>
Error in factor(txt[ord, 1]) : object 'ord' not found<br>
In addition: Warning message:<br>
In matrix(txt, ncol = 4, byrow = TRUE) :<br>
data length [3997] is not a sub-multiple or multiple of the number of rows [1000]</font>
<p class="">In looking through the archives, I have seen that other people have encountered similar problems, but I couldn't find a posted solution. The problem with read.PLINK was posted in the July 2014 archives subject read.PLINK error, and the problem
with extract.PLINKmap was posted in the January 2013 archives subject extract.PLINKmap. </p>
<p class="">My apologies if I'm being redundant or missing the solutions somehow. Any feedback would be great! </p>
I'm using adegenet version 2.0.1<br>
>packageDescription("adegenet", field="Version")<br>
>[1] "2.0.1"
<p class="">Thanks so much.</p>
<p class="">-Kristin</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>