larry._utils._fetch_data¶
Module Contents¶
Functions¶
|
Fetch data as torch.Tensor using an index for adata. |
- larry._utils._fetch_data.fetch_data(adata: anndata.AnnData, idx: pandas.Index, n_sim: int = 1, use_key: str = 'X_pca') torch.Tensor¶
Fetch data as torch.Tensor using an index for adata.
- adata
type: anndata.AnnData
- idx
type: pd.Index
- n_sim:
type: int default: 1
- use_key:
type: str default: “X_pca”
- X_data
type: torch.Tensor