<div dir="ltr">Dear Jessica, <div><br></div><div>as you might have noted from the doc of read.structure, the function only work with diploid data. Tetraploid data are no problem in adegenet, but you'll need to get them in differently. I would suggest the following workflow:</div><div><br></div><div>1) get your data in a txt/csv file in a format where data at each locus are coded as character strings where alleles are separated by a given symbol (e.g. "-", or "/") </div><div>001-010-001-002</div><div><br></div><div>2) read them into R using read.table or read.csv</div><div><br></div><div>3) use df2genind to convert data into a genind object</div><div><br></div><div>The basics tutorial should help with this last step:</div><div><a href="https://github.com/thibautjombart/adegenet/wiki/Tutorials">https://github.com/thibautjombart/adegenet/wiki/Tutorials</a><br></div><div><br></div><div>Best</div><div>Thibaut</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><div><br>--<br>Dr Thibaut Jombart<br>Lecturer, Department of Infectious Disease Epidemiology, <span style="font-size:12.8px">Imperial College London</span></div></div><div><span style="font-size:12.8px">Head of RECON: </span><span style="font-size:12.8px"><a href="http://repidemicsconsortium.org" target="_blank">repidemicsconsortium.org</a></span><br></div></div><div><a href="http://sites.google.com/site/thibautjombart/" style="font-size:12.8px" target="_blank">sites.google.com/site/thibautjombart/</a><br></div><div><a href="http://github.com/thibautjombart" target="_blank">github.com/thibautjombart</a></div>Twitter: <a href="http://twitter.com/TeebzR" target="_blank">@TeebzR</a><br></div><div dir="ltr">+44(0)20 7594 3658</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 30 November 2016 at 13:28, Jessica Perez Alquicira <span dir="ltr"><<a href="mailto:perezalquicira@gmail.com" target="_blank">perezalquicira@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, I would like to do a dapc on tetraploid data. My file format is in structure.</div><div>I have not find this information in the manual. Could you please let me know how could I do that.</div><div><br></div><div>Best</div></div>
<br>______________________________<wbr>_________________<br>
adegenet-forum mailing list<br>
<a href="mailto:adegenet-forum@lists.r-forge.r-project.org">adegenet-forum@lists.r-forge.<wbr>r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum" rel="noreferrer" target="_blank">https://lists.r-forge.r-<wbr>project.org/cgi-bin/mailman/<wbr>listinfo/adegenet-forum</a><br></blockquote></div><br></div>