百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

CASSIA

> 数据库
开源

CASSIA: 基于多代理 LLM 的单细胞细胞类型标注框架

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

CASSIA: 基于多代理 LLM 的单细胞细胞类型标注框架

CASSIA (Collaborative Agent System for Single-cell Interpretable Annotation) is a tool that enhances cell type annotation using multi-agent Large Language Models (LLMs).

CASSIA Web UI (cassia.bio) - Try CASSIA's core features online. For a comprehensive experience with all advanced features, use our R or Python package.

Complete Documentation/Vignette (docs.cassia.bio)

LLMs Annotation Benchmark (sc-llm-benchmark.pages.dev)

News

2026-04-08 Bug fix released — please update to the latest version (v1.3.7). A recent change to CASSIA's networking layer introduced an issue that could cause some users to see errors when running annotations. This is now fixed.

  • R / Python users: update to v1.3.7 — remotes::install_github("ElliotXie/CASSIA/CASSIA_R", force = TRUE, upgrade = "never") or pip install --upgrade cassia
  • Web users: open cassia.bio in an incognito window (or clear your browser cache) to pick up the new build.
  • If you still see an error after updating, please open an issue.

Previous Updates (click to expand)

2025-11-29 Major update with new features and improvements!

  • Python Documentation: Complete Python docs and vignettes now available
  • Annotation Boost Improvements: Sidebar navigation, better reports, bug fixes
  • Better Scanpy Support: Fixed marker processing, improved R/Python sync
  • Symphony Compare Update: Improved comparison module
  • Batch Output & Ranking: Updated HTML output for runCASSIA_batch with new ranking method option
  • Fuzzy Model Aliases: Easier model selection without remembering exact names

2025-05-05 CASSIA annotation benchmark is now online! The latest update introduces a new benchmarking platform that evaluates how different LLMs perform on single-cell annotation tasks, including accuracy and cost. LLaMA4 Maverick, Gemini Flash, and DeepSeek V4 Flash are highly cost-effective options. A new auto-merge function unifies CASSIA output across different levels, making subclustering much easier. Fixed a bug in the annotation boost agent to improve downstream refinement.

2025-04-19 CASSIA adds a retry mechanism and optimized report storage! The latest update introduces an automatic retry mechanism for failed tasks and optimizes how reports are stored for easier access and management. The CASSIA logo has been drawn and added to the project!

2025-04-17 CASSIA now supports automatic single-cell annotation benchmarking! The latest update introduces a new function that enables fully automated benchmarking of single-cell annotation. Results are evaluated automatically using LLMs, achieving performance on par with human experts. A dedicated benchmark website is coming soon—stay tuned!

️ Installation

Python and CLI

bash
pip install --upgrade cassia
cassia doctor
cassia examples --out cassia_example

The installed CLI supports API backends and local Codex, Claude Code, Cursor, OpenCode, or custom-shell agents. Run cassia help to see one-shot, validated, Fused Boost, subcluster, consensus, stable Judge, and optional Seurat agent workflows. See the Python CLI guide and the release benchmark snapshot.

Integrated Seurat clustering and annotation is available through cassia agent auto. It runs short-lived, versioned R transactions by default—no daemon is required—and supports fixed, conservative, and adaptive topology policies. For example: cassia agent auto object.rds --out runs/conservative --strategy conservative --backend codex-cli --model gpt-6-astra --reasoning-effort high. Use cassia agent compare RUN... to compare audited edit, fragmentation, QA, and labeled-cell coverage metrics without another LLM call.

R

r
# Install dependencies
install.packages("devtools")
install.packages("reticulate")

# Install CASSIA
devtools::install_github("ElliotXie/CASSIA/CASSIA_R")

If you have network issues installing from GitHub, you can install from source:

r
# Install from downloaded source package
install.packages("path/to/CASSIA_1.3.2.tar.gz", repos = NULL, type = "source")

Download source package: CASSIA_1.3.2.tar.gz

Note: If the environment is not set up correctly the first time, please restart R and run the code below

r
library(CASSIA)
setup_cassia_env()

Set Up API Key

It should take about 3 minutes to get your API key.

You only need one API key to use CASSIA. We recommend OpenRouter since it provides access to most models (OpenAI, Anthropic, Google, etc.) through a single API key — no need to sign up for multiple providers.

r
# For OpenRouter
setLLMApiKey("your_openrouter_api_key", provider = "openrouter", persist = TRUE)

# For OpenAI
setLLMApiKey("your_openai_api_key", provider = "openai", persist = TRUE)

# For Anthropic
setLLMApiKey("your_anthropic_api_key", provider = "anthropic", persist = TRUE)

# For custom OpenAI-compatible APIs (e.g., DeepSeek)
setLLMApiKey("your_deepseek_api_key", provider = "https://api.deepseek.com", persist = TRUE)

# For local LLMs - no API key needed (e.g., Ollama)
setLLMApiKey(provider = "http://localhost:11434/v1", persist = TRUE)

Custom APIs: CASSIA supports any OpenAI-compatible API endpoint. Simply use the base URL as the provider parameter.

Local LLMs: For data privacy and zero API costs, use local LLMs like Ollama or LM Studio. No API key required for localhost URLs.

  • API Provider Guides:
    • How to get an OpenAI api key
    • How to get an Anthropic api key
    • How to get an OpenRouter api key
    • OpenAI API Documentation
    • Anthropic API Documentation
    • OpenRouter API Documentation
    • DeepSeek API Documentation
    • Ollama API Documentation

Example Data

CASSIA includes example marker data in two formats:

r
# Load example data
markers_unprocessed  **Want even better results?** Use `runCASSIA_pipeline()` which adds automatic quality scoring and the AnnotationBoost agent for difficult clusters. See [complete documentation](https://docs.cassia.bio/en) for details.

##  Supported Models

You can choose any model for annotation and scoring. CASSIA also supports custom providers (e.g., DeepSeek) and local open-source models (e.g., `gpt-oss:20b` via Ollama).

The current defaults are listed below. They are compatibility recommendations, not new CASSIA benchmark results; the dated benchmark entries above remain historical records.

### OpenAI

- `gpt-6-astra`: Current flagship for the hardest workloads (availability may vary)
- `gpt-5.6-terra`: Balanced default (Recommended)
- `gpt-5.6-luna`: Fast, cost-sensitive option
- `gpt-4o`: Used in the benchmark

### OpenRouter

- `anthropic/claude-sonnet-5`: Balanced default (Recommended)
- `openai/gpt-6-astra`: Current OpenAI flagship
- `openai/gpt-5.6-terra`: Balanced OpenAI option
- `google/gemini-3.8-flash`: Fast, low-cost option
- `deepseek/deepseek-v4-flash-0731`: Very low-cost option
- `x-ai/grok-4.6`, `moonshotai/kimi-k3`, and `meta-llama/llama-4-maverick` are also supported

### Anthropic

- `claude-sonnet-5`: Balanced default (Recommended)
- `claude-opus-5`: Current flagship
- `claude-haiku-4-5`: Fast option

### Other Providers

These models can be used via their own APIs. See [Custom API Providers](https://docs.cassia.bio/en/docs/r/setting-up-cassia/#custom-api-providers) for setup.

- `deepseek-v4-flash` or `deepseek-v4-pro` (DeepSeek V4). Provider: `https://api.deepseek.com`
- `glm-5.1` (GLM 5.1). Provider: `https://api.z.ai/api/paas/v4/`

### Local LLMs

- `gpt-oss:20b`: Can run locally via Ollama. Good for large bulk analysis with acceptable accuracy. See [Local LLMs](https://docs.cassia.bio/en/docs/r/setting-up-cassia/#local-llms-ollama-lm-studio) for setup.

##  Citation

 [Read our paper in Nature Communications](https://doi.org/10.1038/s41467-025-67084-x)

Xie, E., Cheng, L., Shireman, J. et al. CASSIA: a multi-agent large language model for automated and interpretable cell annotation. Nat Commun (2025). https://doi.org/10.1038/s41467-025-67084-x

##  Contact

If you have any questions or need help, feel free to email us. We are always happy to help:
**xie227@wisc.edu**
If you find this project helpful, please share it with your friends, and give this repo a star ⭐
Many thanks!

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonai4scienceannotationbioinformaticscell-annotation

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库