bioalpha.h5ad_map.H5ADMap.var_vector
- H5ADMap.var_vector(k, *, layer: str | None = None) ndarray
Convenience function for returning a 1 dimensional ndarray of values from
X
,layers
[k], orobs
.Made for convenience, not performance. Intentionally permissive about arguments, for easy iterative use.
Params
- k
- layer
What layer values should be returned from. If None,
X
is used.
- returns:
A one dimensional nd array, with values for each var in the same order
as
var_names
.