[adegenet-forum] inexperienced user
Rita Castilho
rita.castil at gmail.com
Mon Mar 25 17:15:13 CET 2013
Hi!
I have a simple question. Most of us have our microsatellite data in an
excel file to start with. The ones how use GenAlex even have the
geographic coordinates in the last two rows. We can easily convert the
data in the sheet into several formats. How can I convert an easily
obtained csv file with headers (1sr row = individual id, 2nd =
population id, 3rd row= allele 1, locus 1, 4th row= allele 2, locus 1,
etc, 17th row = latitude, 18th row = longitude) nto a genind object that
can be used in sPCA? I get an error that coordinates are repeated, but
that is normal as there are multiple individuals in the same pop.
If this question was answered previously, I will appreciate if you could
direct me to it.
Many thanks
Rita
first 5 rows of test.csv file
ind,pop,loc1A,loc1B,loc2A,loc2B,loc3A,loc3B,loc4A,loc4B,loc5A,loc5B,loc6A,loc6B,loc7A,loc7B,lat,long
FD_01,FD,151,163,168,170,189,201,248,248,177,187,166,166,230,246,49.85,-29.62
FD_02,FD,137,147,146,146,173,181,240,254,177,179,162,166,230,246,49.85,-29.62
FD_03,FD,137,169,146,168,173,173,222,238,193,203,164,164,230,246,49.85,-29.62
FD_04,FD,137,147,144,144,189,201,236,242,185,193,166,166,238,240,49.85,-29.62
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20130325/afbfe735/attachment.html>
More information about the adegenet-forum
mailing list