Skip to main content

A permutation-free framework for scalable, robust, and reference-based cell-cell communication analysis in single cell transcriptomics studies.

Reason this release was yanked:

broken release

Project description

FastCCC: A permutation-free framework for scalable, robust, and reference-based cell-cell communication analysis in single cell transcriptomics studies.

DOI   Documentation   License

[2026.05.22] Release: FastCCC v1.0.0 is now available. This release fixes several potential bugs, adds coding-agent skills for natural-language FastCCC workflows, and improves automated reports with cell-type-specific evidence explorers, clearer condition-comparison language, figure-generation audit records, and enhanced reference reports. Reference reports can be generated from a selected healthy tissue panel (reference_tissue) or from a user-built custom control panel (reference_path) with fastccc.report.generate_reference_report.

[2026.05.09] New: FastCCC now provides an automated HTML report generation feature (fastccc.report.generate_report). After running FastCCC, a single function call produces a self-contained interactive report covering global CCC overview, ligand-receptor analysis, pathway enrichment, cell-type profiles, network analyses, and, when two conditions are provided, a condition-comparison tab. See the Report Tutorial for details.

[2025.02.01] Update: To minimize the size of transmitted panel data, we leverage FastCCC’s speed to compute essential reference data during first-time usage. This process incurs only an additional 1–2 minutes during initial activation. Meanwhile, the storage requirement for uploading the panel data has been significantly reduced (from 3GB to 5MB per tissue panel).

[2025.01.23] We have provided a comprehensive tutorial on the usage of FastCCC, which includes detailed instructions on installation, usage, and more. We highly recommend referring to this tutorial for a step-by-step guide.

Coding-agent workflows

FastCCC includes project instructions for coding agents. In Codex or Claude Code, use $fastccc-agent, for example:

$fastccc-agent Run a standard FastCCC analysis for ./data/sample.h5ad. The cell type column is cell_type, and outputs should be saved under ./results/sample.
$fastccc-agent Run a two-condition FastCCC comparison for ./data/cohort.h5ad. The condition column is treatment, compare treated vs control, use cell_type as the cell type column, and save outputs under ./results/treated_vs_control.
$fastccc-agent Analyze ./data/query.h5ad with the healthy liver reference panel. The cell type column is cell_type, and outputs should be saved under ./results/query_vs_healthy_liver.
$fastccc-agent Run reference-based analysis for ./data/cohort.h5ad. Use condition=control to build a custom reference, compare condition=disease as the query, and use cell_type as the cell type column.

Overview

scheme

Detecting cell-cell communications (CCCs) in single-cell transcriptomics studies is fundamental for understanding the function of multicellular organisms. Here, we introduce FastCCC, a permutation-free framework that enables scalable, robust, and reference-based analysis for identifying critical CCCs and uncovering biological insights. FastCCC relies on fast Fourier transformation-based convolution to compute $p$-values analytically without permutations, introduces a modular algebraic operation framework to capture a broad spectrum of CCC patterns, and can leverage atlas-scale single cell references to enhance CCC analysis on user-collected datasets. To support routine reference-based CCC analysis, we constructed the first human CCC reference panel, encompassing 19 distinct tissue types, over 450 unique cell types, and approximately 16 million cells. We demonstrate the advantages of FastCCC across multiple datasets, most of which exceed the analytical capabilities of existing CCC methods. In real datasets, FastCCC reliably captures biologically meaningful CCCs, even in highly complex tissue environments, including differential interactions between endothelial and immune cells linked to COVID-19 severity, dynamic communications in thymic tissue during T-cell development, as well as distinct interactions in reference-based CCC analysis.

Installation

Method 1: Installing via conda

You can install the environment using Conda by following the steps:

conda create -n FastCCC python=3.11
conda activate FastCCC

Get FastCCC from github:

git clone https://github.com/Svvord/FastCCC.git

Go to the folder FastCCC and install:

cd ./FastCCC
pip install -e .

Method 2: Installing via pip

pip install fastccc

Method 3: Installing developing version via Poetry

For developing, we are using the Poetry package manager. To install Poetry, follow the instructions here.

git clone https://github.com/Svvord/FastCCC.git
cd ./FastCCC
poetry install

Method 4: Installing developing version via uv

Alternatively, you can use uv for a faster setup. To install uv, follow the instructions here.

git clone https://github.com/Svvord/FastCCC.git
cd ./FastCCC
uv sync

To also install development dependencies:

uv sync --group dev

How to use FastCCC

Check our vignettes.

Citing the work

If you find the FastCCC package or any of the source code in this repository useful for your work, please cite:

Hou, S., Ma, W. & Zhou, X. FastCCC: a permutation-free framework for scalable, robust, and reference-based cell-cell communication analysis in single cell transcriptomics studies. Nat Commun 16, 11428 (2025). https://doi.org/10.1038/s41467-025-66272-z

@article{hou_fastccc_2025,
	title = {{FastCCC}: a permutation-free framework for scalable, robust, and reference-based cell-cell communication analysis in single cell transcriptomics studies},
	author = {Hou, Siyu and Ma, Wenjing and Zhou, Xiang},
	journal = {Nature Communications},
	volume = {16},
	year = {2025},
	eid = {11428},
	doi = {10.1038/s41467-025-66272-z},
	url = {https://www.nature.com/articles/s41467-025-66272-z}
}

Visit our group website for more statistical tools on analyzing genetics, genomics and transcriptomics data.

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

fastccc-1.0.0.tar.gz (326.1 kB view details)

Uploaded Source

Built Distribution

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

fastccc-1.0.0-py3-none-any.whl (341.8 kB view details)

Uploaded Python 3

File details

Details for the file fastccc-1.0.0.tar.gz.

File metadata

  • Download URL: fastccc-1.0.0.tar.gz
  • Upload date:
  • Size: 326.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/4.18.0-553.87.1.el8_10.x86_64

File hashes

Hashes for fastccc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 55d51fe4718e948928e03acf966a5ffc2f9338fc95673da0ab4516defc3bf976
MD5 a9625633380e25ad49c014ce349715cc
BLAKE2b-256 520e7651e7ae29db6a7ddd1428b1d9ab6c27d98746bf418b369603f9c14ce881

See more details on using hashes here.

File details

Details for the file fastccc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fastccc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 341.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/4.18.0-553.87.1.el8_10.x86_64

File hashes

Hashes for fastccc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 518101d8f0dff19dbd9f5dfaea670adb9e2dc0577e3ba5a66190092a7a4c9189
MD5 a50737ec4cc55d5e67506d09cbad091d
BLAKE2b-256 44ac86d3c6fbc1cecda9ebfc9ae2a60c889e1617b6013c7301ddc775aceeff32

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