<html><body><div style="font-family: trebuchet ms,sans-serif; font-size: 12pt; color: #000000"><div>Hi Andrew,<br></div><div><br></div><div>if you have an account on GitHub, could you please report this issue there (<a href="https://github.com/thibautjombart/adegenet/issues">https://github.com/thibautjombart/adegenet/issues</a>)? If not, let me know and I'll do it.</div><div><br></div><div>Cheers,</div><div>Roman</div><div><br></div><div><span name="x"></span>----<br>In god we trust, all others bring data.<span name="x"></span><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Andrew Gottscho" <andrew.gottscho@gmail.com><br><b>To: </b>adegenet-forum@lists.r-forge.r-project.org<br><b>Sent: </b>Saturday, January 23, 2016 5:24:43 PM<br><b>Subject: </b>[adegenet-forum] importing from structure file - inconsistent "negative subscripts" error<br><div><br></div><div dir="ltr"><div><div><div>Hi,<br><div><br></div></div>I am trying to run DAPC on my new Sceloporus dataset. I successfully got this to work before with some other datasets. I am using adegenet 2.0.0.<br><div><br></div></div>When I run the following line for my "Uma dataset", I am able to successfully import:<br><b><br>library(adegenet)</b><br><div><br></div><b>data <- read.structure("output_western_uma_121214_n60_h5_p75_editnames_2.str", n.ind=64, n.loc=597, onerowperind=FALSE, col.lab=1, col.pop=0, col.others=NULL, row.marknames=NULL, NA.char="-9", pop=NULL, ask=FALSE, quiet=FALSE) </b><br><div><br></div></div>When I run the same code for the "Sceloporus dataset":<br><div><br></div><b>data <- read.structure("output_sceloporus_032415_n43_h5_p75.str",
n.ind=80, n.loc=1024, onerowperind=FALSE, col.lab=1, col.pop=0,
col.others=NULL, row.marknames=NULL, NA.char="-9", pop=NULL, ask=FALSE,
quiet=FALSE) </b><br><div><br><div><div>I get the following error:<br></div><div><b><br>Error in mat[, (ncol(mat) - p + 1):ncol(mat)] : <br></b><div><b> only 0's may be mixed with negative subscripts</b><br><div><br></div></div><div>I also tried this with adegenet v 1.4.2 and having the exact same issue.<br><div><br></div></div><div>I attached both input (structure) files to this email. They were both formatted the same way, from pyRAD v2.1.2. If anyone can figure out why one file is giving me the error, and the other isn't, I would greatly appreciate it.<br><div><br></div>I should point out that I searched the archives, a similar question has been posted about a year ago, but I didn't see it resolved:<br><div><br></div><a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2014-December/001049.html" target="_blank">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2014-December/001049.html</a><br><div><br></div></div><div>Thanks for your help!<br><div><br></div></div><div>Best, Andy<br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Andrew Gottscho, Ph.D.<br></div><div><a href="mailto:andrew.gottscho@gmail.com" target="_blank">andrew.gottscho@gmail.com</a><br></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div>
<br>_______________________________________________<br>adegenet-forum mailing list<br>adegenet-forum@lists.r-forge.r-project.org<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum</div><div><br></div></div></body></html>