Primarily designed for fetching the annotation used for visualization.
Arguments
- 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
adata.obs_names
. DefaultTRUE
.- categoricalAsFactor
Logical, whether to convert categorical variables to factors. Default
TRUE
.
Value
A vector of the extracted variable, or a factor if the variable is
encoded to be categorical and categoricalAsFactor = TRUE
.
See also
Other H5AD-reader:
readH5ADObsNames()
,
readH5ADUnsSpMat()
,
readVelocytoLoom()