anndata.typing#
- type anndata.typing.Index1D = int | str | int64 | slice | NDArray[bool] | NDArray[integer] | SupportsArrayApiBase | _M | Sequence[int] | Sequence[str] | Sequence[bool] | Series | Index | ExtensionArray | NDArray[str_] | matrix | csr_matrix | csc_matrix | csr_array | csc_array[source]#
Index each
AnnDataobject’s axis can be sliced with.
- type anndata.typing.Index = Index1D | EllipsisType | tuple[Index1D | EllipsisType, Index1D | EllipsisType] | tuple[Index1D, Index1D, EllipsisType] | tuple[EllipsisType, Index1D, Index1D] | tuple[Index1D, EllipsisType, Index1D] | csr_matrix | csc_matrix | csr_array | csc_array | _M[source]#
Index an
AnnDataobject can be sliced with.
- type anndata.typing.InMemoryArray = ndarray | MaskedArray | csr_matrix | csc_matrix | csr_array | csc_array | Array | ndarray | spmatrix | SupportsArrayApiBase[source]#
An Array that is possibly stored in Memory (Dask Arrays are possibly stored on disk).
- type anndata.typing.AlignedArray = InMemoryArray | Dataset | Array | ZappyArray | CSRDataset | CSCDataset | Array | DataArray | Dataset2D[source]#
Every array-like data structure anndata accepts, i.e. the full set of array types that can be stored in
X,layers, and{obs,var}{m,p}.
- type anndata.typing.Storable = AlignedArray | DataFrame | number | str | dict[str, Storable] | list[Storable][source]#
A serializable object, excluding
anndata.AnnDataobjects i.e., something that can be stored inunsorobsm.
- type anndata.typing.RWAble = Storable | AnnData | ExtensionArray[source]#
A superset of
anndata.typing.Storable(i.e., includinganndata.AnnData) which is everything can be read/written byanndata.io.read_elem()andanndata.io.write_elem().