<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-crea="font-wrapper" style="font-family: Tahoma; font-size: 16px; direction: ltr"><div>  Dear All,<p></p><br>I am trying to apply the Discriminant Analysis of Principal Components (DAPC ) for my SNP dataset.<p></p><br>Here I used the following command line to import data to adegenet R package, but I have a problem and I got the error.<p></p><br>I attached my data files include the PLINK.raw and map file.<p></p><br> <p></p><br>>  extract.PLINKmap(“phase.map”, x = NULL)<p></p><br>Error in factor(txt[ord, 1]) : object 'ord' not found<p></p><br>> x<-read.PLINK(file="phase.raw",map.file="phase.map",package="adegenet", chunk=2, parallel=F)<p></p><br>The x$other$chromosome is a vector of NA's, as is x$other$position!!!! <p></p><br><p> </p><br>Can anyone suggest some idea. how to proceed. Would you please help me how can I fixed it?<p></p><br><p> </p><br>Best wishes, Mohammad<br></div></div></body></html>