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: if (any(which.row)) { : missing value where TRUE/FALSE needed #60

Open
pcr08 opened this issue Oct 18, 2023 · 4 comments
Open

Error: if (any(which.row)) { : missing value where TRUE/FALSE needed #60

pcr08 opened this issue Oct 18, 2023 · 4 comments

Comments

@pcr08
Copy link

pcr08 commented Oct 18, 2023

Hej!
I am trying to run BayesPrism following the tutorial. I am using the same reference, cell state and cell type, but with my own mixture. Instead of running all the matrix, I am taking a small subset to need less time for this testing:

ref2 <- sc.dat[1:200, 1:400]
mixture2 <- m2[1:100,20500:30000]
cell_st2 <- cell.state.labels[1:200]
cell_t2 <- cell.type.labels[1:200]
myPrism2 <- new.prism(reference=ref2, mixture = mixture2, input.type = "count.matrix", cell.state.labels = cell_st2,cell.type.labels = cell_t2, key = "tumor", outlier.cut = 0.01, outlier.fraction = 0.1)
by <- run.prism(prism = myPrism2)

When I get to run this, I get this error on the run.prism function:
image

What could it be? How should I fix it? I already checked if any of the objects have NA values, but none has.
Thank you!

Paula

@tinyi
Copy link
Collaborator

tinyi commented Oct 18, 2023 via email

@pcr08
Copy link
Author

pcr08 commented Oct 18, 2023

Hi,
I tried to attach it, let me know if you need something else or how I can solve this.
Thank you,

Paula

input2.zip

@tinyi
Copy link
Collaborator

tinyi commented Oct 19, 2023 via email

@pcr08
Copy link
Author

pcr08 commented Oct 20, 2023

Hi,
it is true, now I realised, sorry!
Thank you so much!

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