MIND icon indicating copy to clipboard operation
MIND copied to clipboard

bMIND error using prior: "V is not positive definite for some prior$G/prior$R elements"

Open MonalisaHota opened this issue 1 month ago • 4 comments

I am trying to use bMIND with single cell data as prior: Here is the command deconv = bMIND(bulk = bulk, frac =frac, profile =prior$profile, covariance = prior$covariance, y = y, ncore = 20)

The tool works fine without prior and also works when I am using only "profile =prior$profile" without "covariance = prior$covariance". But when I use the prior covariance I get following error:

[1] "13680 errors" List of 1 $ :List of 2 ..$ message: chr "V is not positive definite for some prior$G/prior$R elements" ..$ call : language priorformat(if (NOpriorG) { NULL ... ..- attr(*, "class")= chr [1:3] "simpleError" "error" "condition" NULL Error in mind1[[1]] : subscript out of bounds

Please let me know if I am doing anything wrong and how to fix this error. Also, use of prior$profile without the prior$covariance, how much impact it will have on the results and are they interpretable?

MonalisaHota avatar May 08 '24 06:05 MonalisaHota