tacco.preprocessing.filter_profiles

filter_profiles(adata, annotation_key=None, **kw_args)[source]

Filter AnnData to include only genes where at least one profile is neither negative nor na. Identical to filter_reference() with mode=’profiles’.

Parameters:
  • adata – An AnnData containing the annotation to filter on.

  • annotation_key – The .varm key where the annotation is stored.

  • **kw_args – Additional keyword arguments forwarded to , mode='profiles')().

Returns:

Depending on return_mask and return_view returns a filter mask, a filtered view, or a filtered copy of adata.