retrieveCellFeature | R Documentation |
Only retrieve data from specific slot to reduce memory used by
a whole liger object of the subset. Useful for plotting.
Internally used by plotDimRed
and plotCellViolin
.
retrieveCellFeature(
object,
feature,
slot = c("rawData", "normData", "scaleData", "H", "H.norm", "cellMeta", "rawPeak",
"normPeak"),
cellIdx = NULL,
...
)
object |
liger object |
feature |
Gene names, factor index or cell metadata variable names.
Should be available in specified |
slot |
Exactly choose from |
cellIdx |
Any valid type of index that subset from all cells. Default
|
... |
Additional arguments passed to |
A matrix object where rows are cells and columns are specified features.
S100A8Exp <- retrieveCellFeature(pbmc, "S100A8")
qcMetrics <- retrieveCellFeature(pbmc, c("nUMI", "nGene", "mito"),
slot = "cellMeta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.