- spac.transformations._select_input_features(adata: <module 'anndata' from '/conda/envs/SCSAWorkflow_NIDAP/lib/python3.9/site-packages/anndata/__init__.py'>, layer: str | None = None, associated_table: str | None = None, features: ~typing.List[str] | str | None = None) ndarray [source]
Selects the numpy array to be used as input for transformations
- Parameters:
adata (AnnData) – Annotated data matrix.
layer (str, optional) – Layer of AnnData object for UMAP. Defaults to None.
associated_table (str, optional) – Name of the key in adata.obsm that contains the numpy array. Defaults to None.
features (str or List[str], optional) – Names of the features to select from layer. If None, all features are selected. Defaults to None.
- Returns:
The selected numpy array.
- Return type:
np.ndarray