tacco icon indicating copy to clipboard operation
tacco copied to clipboard

What information is stored in adata.varm['tacco_key']

Open RunyuXia opened this issue 4 months ago • 1 comments

Hi! I was wondering if you could help me understand how to interpret the information stored in adata.varm['tacco_key'] after running TACCO. What exactly does it represent?

Thanks so much!

RunyuXia avatar Aug 05 '25 18:08 RunyuXia

Hi, sorry for the late reply. TACCO writes the reference profiles into adata_reference.varm, in case they are not found there already. https://github.com/simonwm/tacco/blob/87252c6ffcf5f616ffbf167a8d4d34bb8d86d276/tacco/tools/_annotate.py#L734

Meaning, you can write reference profiles into this slot manually and TACCO will use them instead. The reference profiles are "idealized" representations of the cell types in the reference datasets. A particular reference profile is the average expression of all cells of that type in the reference data.

For a conceptual overview of how the reference profiles are used refer to the TACCO overview notebook https://simonwm.github.io/tacco/notebooks/overview.html or Figure 1. from the paper https://www.nature.com/articles/s41587-023-01657-3#Fig1.

Hope this helps!

JWatter avatar Aug 27 '25 11:08 JWatter