Open igordot opened 5 years ago
Hi! For anyone who finds this, I don't really know why, but when I made my cds, I used expressionFamily= negbinomial() instead of negbinomial.size and I was able to estimate dispersion. I have a very small dataset (<3,000 cells). All my cells are of good quality without any empty wells. On the monocle2 webpage they also have their own way to switch FPKM/TPM data to UMI in order to create a cds using negbinomial.size (but this alone did not solve my problem: I believe it is the use of negbinomial instead of negbinomial.size which made it work). I hope this helps!
I am getting the following error when running
estimateDispersions(cds)
:According to a previous issue (https://github.com/cole-trapnell-lab/monocle-release/issues/5):
The message is still in the code:
https://github.com/cole-trapnell-lab/monocle-release/blob/7df105006756801a305ff43321b26d289cd6e890/R/expr_models.R#L395
Later in the same issue:
I tried
exprs(cds) = floor(exprs(cds))
to make my expression values integers. That solved the error. However, I am not sure this is appropriate. My initial values were Salmon estimated counts. They are not integers, but they are still counts, so they should still be considerednegbinomial
andnegbinomial.size
. What is the proper approach here?