assignPOP icon indicating copy to clipboard operation
assignPOP copied to clipboard

assign.matrix()

Open sunnvor opened this issue 6 years ago • 7 comments

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?

sunnvor avatar Mar 08 '18 09:03 sunnvor

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!

alexkychen avatar Mar 08 '18 14:03 alexkychen

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"".

sunnvor avatar Mar 08 '18 17:03 sunnvor

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.

alexkychen avatar Mar 08 '18 21:03 alexkychen

Thanks. I copied the function and it worked lovely.

sunnvor avatar Mar 09 '18 16:03 sunnvor

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!!

alexkychen avatar Mar 13 '18 16:03 alexkychen

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

sunnvor avatar Mar 14 '18 14:03 sunnvor

Great! Thanks for letting me know!!

alexkychen avatar Mar 14 '18 14:03 alexkychen