Skip to main content

A Python package for the identification, characterization and comparison of spatial clusters from spatial -omics data.


Documentation • Examples • Paper

Tests Documentation

Background

Spatial clustering determines cellular niches characterized by specific admixing of these populations. It assigns cells to clusters based on both their intrinsic features (e.g., protein or mRNA expression), and the features of neighboring cells in the tissue.

CellCharter is able to automatically identify spatial clusters, and offers a suite of approaches for cluster characterization and comparison.

Getting started

Please refer to the documentation. In particular, the

Installation

CellCharter uses Python < 3.11 and PyTorch <= 1.12.1. If you are planning to use a GPU, make sure to download and install the correct version of PyTorch first.

In CellCharter, only the dimensionality reduction and batch correction step is dependent on the data type. In particular, it uses:

  • scVI for spatial transcriptomics data such as 10x Visium and Xenium, Nanostring CosMx, Vizgen MERSCOPE, Stereo-seq, DBiT-seq, MERFISH and seqFISH data.
  • A modified version of scArches's TRVAE model for spatial proteomics data such as Akoya CODEX, Lunaphore COMET, CyCIF, IMC and MIBI-TOF data.

By installing CellCharter without specifying the type of data, as in the following code, it will install without any of the two models.

pip install cellcharter

However, you can include in the installation the type of data (transcriptomics and/or proteomics) you are planning to analyze, and it will install the required dependencies.

pip install cellcharter[transcriptomics]

Contribution

If you found a bug or you want to propose a new feature, please use the issue tracker.

Release files for cellcharter 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cellcharter 0.2.0
File Size Uploaded
cellcharter-0.2.0.tar.gz 38.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cellcharter 0.2.0
File Interpreter ABI Platform
cellcharter-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 80.0 kB

Release files / cellcharter-0.2.0.tar.gz

Download URL cellcharter-0.2.0.tar.gz
Size 38.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1c5fb32f5461ec8371dbf375462492029fa05c51d33a4a54e51402e804d42092
BLAKE2b-256 checksum
How to use checksums
9f541de39b443f24fd8a6e99245e1aada5387614b112a3ed72f426c196f81682
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.0

Release files / cellcharter-0.2.0-py3-none-any.whl

Download URL cellcharter-0.2.0-py3-none-any.whl
Size 41.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cd9abd064aef3209a8d3d4c6a377cc7eb89ce3fc06e4ae69e5f7f7ee58d11e9
BLAKE2b-256 checksum
How to use checksums
8cbccbc0183a505307df023d10badefdbf89a159c036fca9ed840172769895d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.0

Release history Release notifications | RSS feed

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page