<div dir="ltr"><div>Hello,</div><div><br></div><div>You can import your data with read.csv() and then use `as.genlight()` to convert the allele counts into a genlight object.<br></div><div>Hope that helps.</div><div><br></div><div>Best, Zhian<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 1, 2020 at 11:00 AM <<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org">adegenet-forum-request@lists.r-forge.r-project.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send adegenet-forum mailing list submissions to<br>
<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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-project.org/cgi-bin/mailman/listinfo/adegenet-forum</a><br>
<br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:adegenet-forum-owner@lists.r-forge.r-project.org" target="_blank">adegenet-forum-owner@lists.r-forge.r-project.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of adegenet-forum digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. potato dosage SNP (weiya xue)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 31 Jan 2020 12:04:18 -0500<br>
From: weiya xue <<a href="mailto:xueweiya@gmail.com" target="_blank">xueweiya@gmail.com</a>><br>
To: <a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><br>
Subject: [adegenet-forum] potato dosage SNP<br>
Message-ID:<br>
<<a href="mailto:CAK59EjBEo0sko7MY2AQvH%2BL%2BUOrTRAxxpMuDU_twsGbLvOz1Zg@mail.gmail.com" target="_blank">CAK59EjBEo0sko7MY2AQvH+L+UOrTRAxxpMuDU_twsGbLvOz1Zg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear Dr. Zhian N. Kamvar,<br>
<br>
I am potato postdoc researcher at Pennsylvania state university. I<br>
have a question when I use adegenet R package for DAPC analysis .<br>
<br>
My SNP data were coded as dosage 0,1,2,3,4 in csv file(sample data<br>
attached). When I used read.csv to read this data into R, which<br>
function should I use to convert it into adegent format for next<br>
steps?<br>
<br>
<br>
<br>
And when I use read.structure, I always get the below information.<br>
<br>
<br>
<br>
Error in mat[, (ncol(mat) - p + 1):ncol(mat)] :<br>
<br>
only 0's may be mixed with negative subscripts<br>
<br>
<br>
<br>
Thanks a lot,<br>
<br>
Weiya Xue<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: sample.csv<br>
Type: application/vnd.ms-excel<br>
Size: 427 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20200131/eb05570f/attachment-0001.xlb" rel="noreferrer" target="_blank">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20200131/eb05570f/attachment-0001.xlb</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
adegenet-forum mailing list<br>
<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.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-project.org/cgi-bin/mailman/listinfo/adegenet-forum</a><br>
<br>
------------------------------<br>
<br>
End of adegenet-forum Digest, Vol 135, Issue 1<br>
**********************************************<br>
</blockquote></div>