ladder.data.real_data.preprocess_anndata

ladder.data.real_data.preprocess_anndata#

ladder.data.real_data.preprocess_anndata(anndat)#

Function to preprocess the inputted AnnData object.

Does not do any critical modifications, but instead ensures that the numerical columns in obs are of type float and string columns are defined as CategoricalDtype.

Parameters:

anndat (AnnData) – The AnnData object to be preprocessed.

Return type:

AnnData

Returns:

anndat : AnnData Object after typecasting operations.