tacco.preprocessing.filter_annotation¶
- filter_annotation(adata, annotation_key=None, **kw_args)[source]¶
Filter
AnnDatato include only cells where at least one annotation is neither negative nor na. Identical tofilter_reference()with mode=’annotation’.- Parameters:
adata – An
AnnDatacontaining the annotation to filter on.annotation_key – The .obsm key where the annotation is stored.
**kw_args – Additional keyword arguments forwarded to
, mode='annotation')().
- Returns:
Depending on return_mask and return_view returns a filter mask, a filtered view, or a filtered copy of adata.