CASSIA (Cell type Annotation using Specialized System with Integrated AI) is a Python package for automated cell type annotation in single-cell RNA sequencing data using large language models.
Project description
CASSIA
CASSIA is a Python and R package designed for automated, accurate, and interpretable single-cell RNA-seq cell type annotation using a modular multi-agent LLM framework. CASSIA provides comprehensive annotation workflows that incorporate reasoning, validation, quality scoring, and reporting—alongside optional agents for refinement, uncertainty quantification, and retrieval-augmented generation (RAG).
Highlights
- 🔬 Reference-free and interpretable LLM-based cell type annotation
- 🧠 Multi-agent architecture with dedicated agents for annotation, validation, formatting, quality scoring, and reporting
- 📈 Quality scores (0–100) and optional consensus scoring to quantify annotation reliability
- 📊 Detailed HTML reports with reasoning and marker validation
- 💬 Supports OpenAI, Anthropic, OpenRouter APIs and open-source models (e.g., LLaMA 3.2 90B)
- 🧬 Compatible with markers from Seurat (
FindAllMarkers) and Scanpy (tl.rank_genes_groups) - 🚀 Optional agents: Annotation Boost, Subclustering, RAG (retrieval-augmented generation), Uncertainty Quantification
- 🌎 Cross-species annotation capabilities, validated across human, mouse, and non-model organisms
- 🧪 Web UI also available: https://www.cassia.bio
Installation
Install the core CASSIA framework:
pip install CASSIA
To enable optional RAG functionality:
pip install CASSIA_rag
Note: For R users, see the R package on GitHub.
Quick Start
# Run the CASSIA pipeline in fast mode
CASSIA.runCASSIA_pipeline(
output_file_name = "FastAnalysisResults",
tissue = "large intestine",
species = "human",
marker = unprocessed_markers,
max_workers = 6, # Matches the number of clusters in dataset
annotation_model = "openai/gpt-4o-2024-11-20", #openai/gpt-4o-2024-11-20
annotation_provider = "openrouter",
score_model = "anthropic/claude-3.5-sonnet",
score_provider = "openrouter",
score_threshold = 75,
annotationboost_model="anthropic/claude-3.5-sonnet",
annotationboost_provider="openrouter"
)
For detailed workflows and agent customization, see the Documentation.
Contributing
We welcome contributions! Please submit pull requests or open issues via GitHub.
License
MIT License © 2024 Elliot Xie and contributors.
Support
Open an issue on GitHub or visit cassia.bio for help.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cassia-0.3.12.tar.gz.
File metadata
- Download URL: cassia-0.3.12.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3a775d3e10a4cf36be99b8b8014ebdaa9d89a54d6d282d7a28350c5e42dda3
|
|
| MD5 |
d19f1e291aeda9dbb1f5d5813ab386aa
|
|
| BLAKE2b-256 |
1f35a8fe4c15bc84be0abd3b709cddd31b33430b75494cb8da94674065fbd061
|
File details
Details for the file cassia-0.3.12-py3-none-any.whl.
File metadata
- Download URL: cassia-0.3.12-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a86a5e4ac528bcc9484309d8782dec6f7ffaed23a5bc69260d60ae1909f64a9a
|
|
| MD5 |
f3658fb7ad14f4753e4f6e0ec32698fc
|
|
| BLAKE2b-256 |
9fd5984aa8fd98e3af5fa0252f1e7980b91c2ce9d654ab8d0df65bbb29bcd579
|