You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a crash when running emptyDropsCellRanger.
The call:
DropletUtils::emptyDropsCellRanger(dge)
Where dge is a matrix of cells by genes. I'll note this data set is compatible with your standard emptyDrops(dge) function.
The stack trace:
The problem with the data is that the number of cell barcodes in the data set is too low, and the program runs into issues during the call of ambient.FUN.
In particular, the default bounds for the start and end of the ambient cell barcodes:
ind.min=45000
ind.max=90000
When this line is run, the function gets into trouble:
And since still.zero contains NAs (inherited from ambient.prob), the result is NA, which produces the reported error at the top of the stack.
I don't expect the program to magically find an answer to this, but it might be nice to check the bounds and throw an exception that the selected indexes are too large for the provided data set.
I'm going to add my own data sanity checks before I run emptyDropsCellRanger as well.
The text was updated successfully, but these errors were encountered:
Hi!
I'm getting a crash when running emptyDropsCellRanger.
The call:
Where dge is a matrix of cells by genes. I'll note this data set is compatible with your standard
emptyDrops(dge)
function.The stack trace:
The problem with the data is that the number of cell barcodes in the data set is too low, and the program runs into issues during the call of ambient.FUN.
In particular, the default bounds for the start and end of the ambient cell barcodes:
ind.min=45000
ind.max=90000
When this line is run, the function gets into trouble:
length(totals)=24101
So ambient only has a single positive entry, as the min and max resolve to the same index.
This later causes the calculated ambient profile to be pretty strange, and it contains NaN values, which are rarely a good thing:
Eventually, the code tries
And since still.zero contains NAs (inherited from ambient.prob), the result is NA, which produces the reported error at the top of the stack.
I don't expect the program to magically find an answer to this, but it might be nice to check the bounds and throw an exception that the selected indexes are too large for the provided data set.
I'm going to add my own data sanity checks before I run emptyDropsCellRanger as well.
The text was updated successfully, but these errors were encountered: