alexkychen / assignPOP

Population Assignment using Genetic, Non-genetic or Integrated Data in a Machine-learning Framework. Methods in Ecology and Evolution. 2018;9:439–446.
http://alexkychen.github.io/assignPOP/
GNU General Public License v3.0
17 stars 3 forks source link

Data conversion #19

Open jcberny opened 3 years ago

jcberny commented 3 years ago

Hi there, I have genind and tried using genind2genpop, converting the file into a "formal class genepop". However, when trying running assign.MC it gives me the error "this S4 class is not subsettable". Would you have more suggestions about the data conversion? Thanks in advance.

alexkychen commented 3 years ago

Hi, you can use either a Genepop or Structure format text file to import the data for analyses (see functions read.Genepop and read.Structure). The assignPOP package currently does not support the data converted via adegenet package.

jcberny commented 3 years ago

Thanks. However I´m having issues to get my dataset to Genepop or Structure format. I have a matrix of columns of samples and SNP calls. Would you recommend anything to convert this to Genepop? Thanks again