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

Clean

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

conda env create -f "https://raw.githubusercontent.com/simonwm/tacco/master/environment.yml"

(For older versions of conda one needs to download the environment.yml and use the local file for installation.)

Conda

To install TACCO in an already existing environment, use conda to install from the conda-forge channel:

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 (e.g. at the time of writing, mkl-service is not available for python 3.10 and numba not for 3.11).

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.4.0.post1.tar.gz (573.9 kB view details)

Uploaded Source

Built Distribution

tacco-0.4.0.post1-py3-none-any.whl (191.4 kB view details)

Uploaded Python 3

File details

Details for the file tacco-0.4.0.post1.tar.gz.

File metadata

  • Download URL: tacco-0.4.0.post1.tar.gz
  • Upload date:
  • Size: 573.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for tacco-0.4.0.post1.tar.gz
Algorithm Hash digest
SHA256 b64a3a056bc36102c189de5108ccb55f33f35e292250da106dcb2d5817e4495d
MD5 7f6cf710c7833c418e0ab6ad0cc13a78
BLAKE2b-256 b8e49ac7fc4a601c5719a9127f5fb54587e1eb3541e1654f4ee0aa45c5216d55

See more details on using hashes here.

File details

Details for the file tacco-0.4.0.post1-py3-none-any.whl.

File metadata

  • Download URL: tacco-0.4.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 191.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for tacco-0.4.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 260864b25c76104fbf799c6ee3a19cf084962376d2f868f9de99655466defa37
MD5 d06c7493588dd724de870f1c8f588353
BLAKE2b-256 75f184add13569d5fe941d6e09b660877def99f4a46c7b617c364f68d191db37

See more details on using hashes here.

Supported by

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