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

Undefined Columns Selected Error if Strange Variable Names Present #51

Closed
DarioS opened this issue Oct 19, 2023 · 2 comments
Closed

Undefined Columns Selected Error if Strange Variable Names Present #51

DarioS opened this issue Oct 19, 2023 · 2 comments
Assignees
Labels

Comments

@DarioS
Copy link

DarioS commented Oct 19, 2023

If some strange omics identifiers are some of the column names, the imputation fails.

> colnames(iris)[2] <- "IGHV3-43D;IGHV3-9"
> missRanger(iris)
Missing value imputation by random forests
Error in `[.data.frame`(data, , relevantVars[[1L]], drop = FALSE) : 
  undefined columns selected

Can you make it more bioinformatics-friendly?

@mayer79
Copy link
Owner

mayer79 commented Oct 19, 2023

Thanks for reporting. This is a known but unfortunate issue.

I once attempted to fix it (#19), but could not find a good solution.

A fix would additionally require to replace ranger's formula interface by the "x/y" interface, which might solve another problem (#50).

I will keep the issue open. As it is complex, you can't expect a solution soon.

@mayer79
Copy link
Owner

mayer79 commented Oct 20, 2023

Fixed in #52

@mayer79 mayer79 closed this as completed Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants