Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with assign.X #11

Open
6aherring opened this issue Mar 13, 2020 · 4 comments
Open

Error with assign.X #11

6aherring opened this issue Mar 13, 2020 · 4 comments

Comments

@6aherring
Copy link

Hi Alex,

I was hoping you would be able to help me with an error I'm getting when using assign.X please?
I am using non-genetic data only to try and assign my unknown individuals with the following code:
assign.X(Baselines, unknown, dir="Wavelet19/",
pca.method=TRUE, scaled = TRUE, model="randomForest")
But I receive the following error:
"Error in is.factor(x[, 1]) : object 'x' not found"
I have tried to look through the code for assign.X but I don't have enough experience in R to be able to understand it all. I have made sure the colnames for Baselines (x1) and unknown (x2) are the same apart from the pop column in x1, and they are both dataframes.
I ran older scripts, where assign.X has worked for me previously, but they are not working now. I have tried using different versions of R also, in response to the warning I got about the version of that assignPOP was built under, but this made no difference.

Any help would be really appreciated.

Thanks,

Emma

@alexkychen
Copy link
Owner

Hi Emma,

Thanks for your report. I just updated the function assign.X in the current repository. Could you try to update your package from the Github repo and see if the error would disappear?

Thanks,
Alex

@6aherring
Copy link
Author

Hi Alex,

Thanks for looking at the issue so quickly. I was trying over the last few days to install the updated version from github but I'm having difficulties with that.
Using install_github gives an error that Permission is denied. I also tried downloading the zip file from the github page and installing the package from the zip file, I can install the package to the correct directory but then when I go to use library(assignPOP) it says there is no package. I had a look in my directory and the file is called "assignPOP-master" so maybe this is why library() wouldn't work.
I'm really sorry about these issues I'm having, could you advise on these?
I really appreciate your help with assign.X.

Thanks,

Emma

@6aherring
Copy link
Author

Hi Alex,

I managed to get access to the updated package and the issue I was having with assign.X has been resolved.
Thank you very much updating the package and for your help with this issue.

Thanks,

Emma

@alexkychen
Copy link
Owner

Great. I am glad to know that the issue was solved.

Best,
Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants