<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear Dr. Jombart,</p>
<p><br>
</p>
<p>I am currently trying to perform a sPCA, and I have noticed something unexpected while formatting my datasets.</p>
<p>I have used the function df2genind, then tried to add the spatial data using the command:</p>
<p><br>
</p>
<p>my_genind_obj$other$xy<- my_dataframe[,c('X','Y')]  #X and Y are the utm coordinate columns;<br>
</p>
<p><br>
</p>
<p>When checking that the data were imported correctly though, I realized that the coordinates were sorted in the same order than the original dataframe; the isolates themselves though (my_genind_obj$table) were sorted in some other way (it seemed alphanumerical,
 but isolate names starting with "X" were put before the ones starting with "P"). I guess this breaks the correlation between each isolate and its location. My isolate names are aplhanumeric, and the names starting with "X" also contain dots (e.g. "X.14.4.555)".
 Am I missing something? Is there a better way to attach the spatial information so to keep correlation between different pieces of information?<br>
</p>
<p>I am using adegenet v.2.0.1 on Windows 7.<br>
</p>
<p><br>
Thank you for your kind attention,</p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">Massimiliano S. Tagliamonte</div>
<div style="font-family:Tahoma; font-size:13px">Graduate Student</div>
<div style="font-family:Tahoma; font-size:13px">University of Florida<br>
College of Veterinary Medicine</div>
<div style="font-family:Tahoma; font-size:13px">Department of Infectious Diseases and Pathology<br>
</div>
</div>
</div>
</div>
</body>
</html>