scanpy.get.var_df#
- scanpy.get.var_df(adata, keys=(), varm_keys=(), *, layer=None)[source]#
Return values for observations in adata.
- Parameters:
- adata
AnnData
AnnData object to get values from.
- keys
Collection
[str
] (default:()
) Keys from either
.obs_names
, or.var.columns
.- varm_keys
Iterable
[tuple
[str
,int
]] (default:()
) Tuples of
(key from varm, column index of varm[key])
.- layer
str
|None
(default:None
) Layer of
adata
to use as expression values.
- adata
- Return type:
- Returns:
A dataframe with
adata.var_names
as index, and values specified bykeys
andvarm_keys
.