[R-sig-genetics] Microsatellite data query: Data frame to genind conversion using adegent in R

Bhuller, Ravneet ravneet.bhuller13 at imperial.ac.uk
Fri Dec 9 12:33:21 CET 2016


Hello R-sig-genetics community members,

I am using microsatellite data for the first time. It is in csv format. Individual ids (1314 in total) are in the first column of the file (a snapshot attached below) and the allelic information of each loci (17 loci)  is in duplicate columns.
[cid:F92F6AA3-0C16-4642-843F-476A5B1D6839 at nhm.ac.uk]

When I convert this data.frame into genind object using adegent, it is considering first column as a locus and calculates number of loci as 35 (see below):
[cid:423CE768-65F3-4B01-9E38-63CA0FD5ABF1 at nhm.ac.uk]

Please if anyone can guide me what is going wrong here. The actual number of loci is 17 and first column is not a locus.


Many thanks for your time.

Kind regards,

Rav
PhD student

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-genetics/attachments/20161209/ed37dfe5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: microsatellite data.png
Type: image/png
Size: 219990 bytes
Desc: microsatellite data.png
URL: <https://stat.ethz.ch/pipermail/r-sig-genetics/attachments/20161209/ed37dfe5/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genind object.png
Type: image/png
Size: 72971 bytes
Desc: genind object.png
URL: <https://stat.ethz.ch/pipermail/r-sig-genetics/attachments/20161209/ed37dfe5/attachment-0003.png>


More information about the R-sig-genetics mailing list