Closed jdrnevich closed 2 years ago
I'm guessing that this is the cause:
library(Matrix)
mat <- rsparsematrix(10, 10, 0.1)
mat[c(1,2,3),,drop=FALSE] # ok
mat[rbind(1,2,3),,drop=FALSE] # error
For some reason ambient
is an array, so the simple workaround is to just coerce it into a numeric vector until 1.5.3 pops.
@jonathangriffiths I pushed the changes to BioC but I don't have the latest BioC packages installed on my current machine. I assume it'll all be fine but it may be worth setting up some GitHub Actions to do a build + check before push. There should be a pretty nice Action template from Leo that caches the packages after initial install.
Thanks for the tweak Aaron.
I think I've found those docs from Leo so I'll look closer at getting it set up here.
This did work Aaron. Thanks for the workaround.
hash.stats <- hashedDrops(counts(sce.cmos)[,is.cell],
ambient=as.numeric(metadata(hash.calls)$ambient))
I am trying to use
hashedDrops()
on a 10X CellPlex data set following the steps in the OSCA book here: http://bioconductor.org/books/3.14/OSCA.advanced/doublet-detection.html#doublet-detection-in-multiplexed-experiments. I can run the example data set just fine. However, when I use it on my CellPlex CMOs counts I get an error about "Extraneous illegal arguments". Here is a reproducible example using a public 10X dataset:I am not sure what is causing this or what else I should look at to find out. Thanks!