Skip to main content

A tool to annotate cell types

Project description

CellAnnotator

Tests Coverage Documentation Pre-commit.ci

A tool to annotate cell types based on marker genes using OpenAI models.

Key features

  • Automatically annotate cells including type, state and confidence fields.
  • Generate consistent annotations across samples of your study.
  • Optionally infuse prior knowledge by providing information about your biological system.
  • Retrieve reliable results thanks to OpenAI structured outputs
  • Use pre-integration cell type labels to either score your integration quality (e.g. scIB metrics) or to guide your integration effort (e.g. scPoli, scANVI)

Installation

You need to have Python 3.10 or newer installed on your system. If you don't have Python installed, we recommend installing Mambaforge.

  1. Install the latest development version:
pip install git+https://github.com/quadbio/cell-annotator.git@main

Getting started

After installation, head over to OpenAI to generate your API key

Keep this key private and don't share it with anyone. CellAnnotator will try to read the key as an environmental variable - either expose it to the environment yourself, or store it as an .env file anywhere within the repository where you conduct your analysis and plan to run CellAnnotator. The package will then use dotenv to export the key from the env file as an environmental variable.

Credits

This tool was inspired by Hou et al., Nature Methods 2024 and https://github.com/VPetukhov/GPTCellAnnotator.

Contact

If you found a bug, please use the issue tracker.

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

cell_annotator-0.1.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

cell_annotator-0.1.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file cell_annotator-0.1.1.tar.gz.

File metadata

  • Download URL: cell_annotator-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cell_annotator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 21cd2f9730d06fc9ab6b73aeba39890d5deee5bc364aa5a1bc5b6d0999b0f2ad
MD5 8bdd7dcc85d0af0e427408e89e7c149c
BLAKE2b-256 3eaa3c64acd64b386d50d435ef398c2bcc87525a69527d027b984a5ed52d2bfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for cell_annotator-0.1.1.tar.gz:

Publisher: release.yaml on quadbio/cell-annotator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cell_annotator-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cell_annotator-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cell_annotator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6cf8dd550642ab56034e896b1eec9b1940ddbac0d69cca4ce51862ecc4d5b62
MD5 f2048e50beb58e3c12b4052a3f75be6d
BLAKE2b-256 745057feddc84d2adaf387f2581a0dcfde00d65f0cf5dfae454a770ee24d512f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cell_annotator-0.1.1-py3-none-any.whl:

Publisher: release.yaml on quadbio/cell-annotator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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