<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal>I have been having some problems loading my structure data to a geneid object using the &#8220;read.structure&#8221; command. I&#8217;ve read through the forum archive and tried everything but am still getting the same error.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Here is the example of my test dataset:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Afum001 3 4 1 2 1 1 3 1 3 1<o:p></o:p></p><p class=MsoNormal>Afum002 1 3 2 1 1 2 1 1 2 2<o:p></o:p></p><p class=MsoNormal>Afum003 2 3 1 2 1 1 2 2 2 2<o:p></o:p></p><p class=MsoNormal>Afum004 1 3 1 2 1 2 1 2 2 2<o:p></o:p></p><p class=MsoNormal>Afum005 1 1 1 1 1 1 1 2 1 2<o:p></o:p></p><p class=MsoNormal>Afum006 1 3 2 1 1 1 2 2 1 2<o:p></o:p></p><p class=MsoNormal>Afum007 1 1 1 2 2 1 1 2 2 2<o:p></o:p></p><p class=MsoNormal>Afum008 2 1 1 2 2 1 1 1 2 2<o:p></o:p></p><p class=MsoNormal>Afum009 1 1 1 2 1 1 4 2 2 2<o:p></o:p></p><p class=MsoNormal>Afum011 1 3 1 1 1 2 4 2 2 1<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I then issue the following command:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='text-indent:.5in'>a &lt;- read.structure(&quot;test_data.stru&quot;, row.marknames=0, onerowperind=TRUE, n.ind=10, n.loc=10, col.lab=1, col.pop=0, ask=TRUE)<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I then get the following promt<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='text-indent:.5in'>Which other optional columns should be read (press 'return' when done)? 1:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>When I press return here (as I do not have any other optional columns to be read) I get the following error:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='text-indent:.5in'>Converting data from a STRUCTURE .stru file to a genind object... <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='text-indent:.5in'>Error in read.structure(&quot;test_data.stru &quot;,&nbsp; : <o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; only 0's may be mixed with negative subscripts<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I have been struggling with this for a few days now and cannot figure out what the problem is. Any thoughts or advice would be greatly appreciated.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>John<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>----<o:p></o:p></p><p class=MsoNormal>John G Gibbons<o:p></o:p></p><p class=MsoNormal>Department of Biological Sciences<o:p></o:p></p><p class=MsoNormal>VU Station B, Box 35-1634<o:p></o:p></p><p class=MsoNormal>Vanderbilt University<o:p></o:p></p><p class=MsoNormal>Nashville TN, 37212<o:p></o:p></p><p class=MsoNormal>The Rokas Lab<o:p></o:p></p><p class=MsoNormal>Email: <a href="mailto:John.G.Gibbons@Vanderbilt.Edu"><span style='color:blue'>John.G.Gibbons@Vanderbilt.Edu</span></a><o:p></o:p></p><p class=MsoNormal>Tel: (615) 936-3893<o:p></o:p></p><p class=MsoNormal><a href="http://sitemason.vanderbilt.edu/people/jggibbons"><span style='color:blue'>http://sitemason.vanderbilt.edu/people/jggibbons</span></a><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>