readH5ADObsVar | R Documentation |
Primarily designed for fetching the annotation used for visualization.
readH5ADObsVar(filename, obsKey, named = TRUE, categoricalAsFactor = TRUE)
filename |
File path to the H5AD file. |
obsKey |
The variable name to extract, must use only one character string. |
named |
Logical, whether to name the vector with cell IDs that came from
|
categoricalAsFactor |
Logical, whether to convert categorical variables
to factors. Default |
A vector of the extracted variable, or a factor if the variable is
encoded to be categorical and categoricalAsFactor = TRUE
.
Other H5AD-reader:
readH5ADObsNames()
,
readH5ADUnsSpMat()
,
readVelocytoLoom()
## Not run:
h5adFile <- "path/to/analysis.h5ad"
cluster <- readH5ADObsVar(h5adFile, "leiden")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.