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 4 forks source link

assign.x error with the smv model #8

Open EmiCarr opened 5 years ago

EmiCarr commented 5 years ago

Hi, I am using your package to assign unknown individuals to their population of origin with genomic markers, however, I’m having trouble using the function assign.X. When I try to run this script : assign.X(genepop_baseline_2016_snps, genepop_assign_2016_snps, model = "smv",dir = "/Volumes/drobo2/emilie_carrier/all_samples_fev_2019/03-bad_samples_high_relatedness_sex_removed/population_assignment_files/assignment_2016/", mplot = TRUE) I get this message : Error in table(outcome_matrix$pred.pop) :    object 'outcome_matrix' not found

I have followed all the steps in your tutorial without any problem and also tried using different models with these files and it seems to work. I have also run this script with different files without any error message.

Thanks in advance!

alexkychen commented 5 years ago

Hi, I probably need to look into the codes and see where causes the issue by running your data sets. Do you mind sending me (alexkychen@gmail.com) the data you used or part of the data so that I can reproduce the same error message on my side? Thanks.