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.matrix() #3

Open sunnvor opened 6 years ago

sunnvor commented 6 years ago

Hi I have used assignPOP to assign my samples to populations using genetic data only. The package is very easy to use and the tutorials are great. However, I am having troubles with the assign.matrix function. When I try to use it I get the following error: "Error: could not find function "assign.matrix"". I checked the help page for assignPOP and this function is not listed there. So I tried to search online for a package with this function, but couldn't find any. Is this function missing from the package or do I need to install some other package that I have missed?

alexkychen commented 6 years ago

Hi, Thank you for using our assignPOP package. Could you check which version you're using? The function "assign.matrix" was added in the latest version 1.1.3. If you're using a previous version (1.1.2 or earlier), please consider to update the package to 1.1.3 to access the function. Please let me know if you have further questions. Thank you!

sunnvor commented 6 years ago

I am using assignPOP_1.1.3. I was using an older version of R, but have update it now. I still get the error "could not find function "assign.matrix"".

alexkychen commented 6 years ago

Thank you for your report. Somehow the version 1.1.3 on CRAN was not successfully updated (yes, assign.matrix is not there). I am trying to fix it but it may take a while. At this time, you can try to re-install the package from here - use install_github("alexkychen/assignPOP"), or copy the function assign.matrix from this page and run it in your console. As such, you can call the function locally. If you choose to re-install the package from Github, you might need to make sure other dependent packages were also successfully installed. Sorry for the inconvenience.

sunnvor commented 6 years ago

Thanks. I copied the function and it worked lovely.

alexkychen commented 6 years ago

Hi, a new version (1.1.4) has been uploaded to CRAN. Now you should be able to update your assignPOP and use the function assign.matrix. Please give it a try and let me know if it works. Thanks!!

sunnvor commented 6 years ago

Hi Updated to version 1.1.4 and assign.matrix works now. Cheers!

alexkychen commented 6 years ago

Great! Thanks for letting me know!!