dynamo.cleanup

dynamo.cleanup(adata, del_prediction=False, del_2nd_moments=False)[source]

Clean up adata before saving it to a file.

Parameters:
  • adata (AnnData) – The anndata object to be cleaned up.

  • del_prediction (bool) – Whether to delete the prediction from the adata object.

  • del_2nd_moments (bool) – Whether to delete the 2nd moments from the adata object.

Return type:

AnnData

Returns:

The cleaned up anndata object.