Skip to main content

TACCO: Transfer of Annotations to Cells and their COmbinations

Project description

TACCO: Transfer of Annotations to Cells and their COmbinations

TACCO is a python framework for working with categorical and compositional annotations for high-dimensional observations, in particular for transferring annotations from single cell to spatial transcriptomics data. TACCO comes with an extensive ever expanding documentation and a set of example notebooks. If TACCO is useful for your research, you can cite Nat Biotechnol (2023).

How to install TACCO

Conda

The simplest way to install TACCO is to create a clean environment with conda create using the environment.yml file from the TACCO repository:

conda create -n TACCO_env -c conda-forge tacco

To install TACCO in an already existing environment, use conda install:

conda install -c conda-forge tacco

Pip

It is also possible to install from pypi via pip:

pip install tacco

This is however not recommended. Unlike conda, pip cannot treat python itself as a package, so if you start with the wrong python version, you will run into errors with dependencies.

Github

To access the most recent pre-release versions it is also possible to pip-install directly from github:

pip install tacco@git+https://github.com/simonwm/tacco.git

Obviously, this is not recomended for production environments.

How to use TACCO

TACCO features a fast and straightforward API for the compositional annotation of one dataset, given as an anndata object adata, with a categorically annotated second dataset, given as an anndata object reference. The annotation is wrapped in a single function call

import tacco as tc
tc.tl.annotate(adata, reference, annotation_key='my_categorical_annotation', result_key='my_compositional_annotation')

where 'my_categorical_annotation' is the name of the categorical .obs annotation in reference and 'my_compositional_annotation' is the name of the new compositional .obsm annotation to be created in adata. There are many options for customizing this function to call e.g. external annotation tools, which are described in the documentation of the annotate function.

As the TACCO framework contains much more than a compositional annotation method (single-molecule annotation, object-splitting, spatial co-occurrence analysis, enrichments, visualization, ...), its documentation does not fit into a README.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tacco-0.5.0.tar.gz (577.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tacco-0.5.0-py3-none-any.whl (193.8 kB view details)

Uploaded Python 3

File details

Details for the file tacco-0.5.0.tar.gz.

File metadata

  • Download URL: tacco-0.5.0.tar.gz
  • Upload date:
  • Size: 577.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for tacco-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e192509c9182b36e1ca9d0e7baa00df90abdff3b6eba896ea3135f8cb8154eee
MD5 c74535a25b53bde126629cce6034413d
BLAKE2b-256 bd4ea0b79fffc6405d29ba90c45e9318ea34686a8af2cb996b48273e11065742

See more details on using hashes here.

File details

Details for the file tacco-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: tacco-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 193.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for tacco-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a545ed43732440bbb6ea3c2bf1c17543b59e412d064714ac72e5174dbbf9b64
MD5 756949cef0041aaf21e0d54e3eb36927
BLAKE2b-256 d9236e31002d78b7c848c4eb3ef07ac2411e68719cb1eeed3f498df517555112

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page