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 in bcRegressOut #148

Open
mpaya opened this issue Jan 4, 2024 · 1 comment
Open

Error in bcRegressOut #148

mpaya opened this issue Jan 4, 2024 · 1 comment

Comments

@mpaya
Copy link

mpaya commented Jan 4, 2024

While running bcRegressOut(), it stops with the following error:

k.neighbors must be lower than the number of complete cases in @normalized slot: 0. 

The data I'm working with have a high proportion of NA and all samples have at least one missing value. I was indicated to replace these missing values by 0, meaning no enrichment for that drug signature, and recompute values, step after which regression worked well.

# Replace NAs by 0s
bc@normalized[is.na(bc@normalized)] <- 0
bc <- bcRecompute(bc, slot = "normalized")`

Thanks for the support!

@SGMartin
Copy link
Contributor

SGMartin commented Jan 5, 2024

Thanks for the report @mpaya. Our main developer @mj-jimenez has just returned from holidays and will take a look at the issue ASAP.

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