tacco.tools.annotate_wot

annotate_wot(adata, reference, annotation_key=None, counts_location=None, **kwargs)[source]

Annotates an AnnData using reference data by Waddington-OT [Schiebinger19].

This is the direct interface to this annotation method. In practice using the general wrapper annotate() is recommended due to its higher flexibility.

Parameters:
  • adata – An AnnData including expression data in .X.

  • reference – Reference data to get the annotation definition from.

  • annotation_key – The .obs key where the annotation is stored in the reference. If None, it is inferred from reference, if possible.

  • counts_location – A string or tuple specifying where the count matrix is stored, e.g. ‘X’, (‘raw’,’X’), (‘raw’,’obsm’,’my_counts_key’), (‘layer’,’my_counts_key’), … For details see counts().

  • kwargs – Extra key word arguments are forwarded to wot.ot.OTModel().

Returns:

Returns the annotation in a DataFrame.