Single Cluster Analysis

Overview

The runCASSIA function analyzes a single cluster of marker genes to identify the cell type. This function is specifically designed for users who only have one cluster to analyze.

Note: CASSIA is designed to handle multiple clusters at once via Batch Processing. Use this function when you need to annotate just a single cluster.


Quick Start

result <- runCASSIA(
    marker_list = c("CD3D", "CD3E", "CD2", "TRAC"),
    model = "anthropic/claude-sonnet-4.5",
    tissue = "blood",
    species = "human",
    provider = "openrouter"
)

# View the annotation result
print(result$structured_output)
R

For model recommendations, see How to Select Models and Providers.


Input

Marker List Format

Provide a character vector of marker gene names for your cluster:

marker_list <- c("CD3D", "CD3E", "CD2", "TRAC", "IL7R")
R

These should be the top differentially expressed genes that characterize your cluster of interest.


Parameters

Required

ParameterDescription
marker_listCharacter vector of marker gene names for the cluster
modelLLM model ID (e.g., "anthropic/claude-sonnet-4.5")
tissueTissue type (e.g., "blood", "brain")
speciesSpecies (e.g., "human", "mouse")
providerAPI provider ("openrouter", "openai", "anthropic")

Optional

ParameterDefaultDescription
temperature0Output randomness (0=deterministic, 1=creative). Keep at 0 for reproducible results.
additional_infoNULLExtra experimental context about the sample
validator_involvement"v1"Validation intensity: "v1" (moderate) or "v0" (high, slower)
reasoningNULLReasoning depth for compatible models ("low", "medium", "high"). See below.

Parameter Details

Model Selection

  • Default: anthropic/claude-sonnet-4.5 for best performance
  • Alternative: google/gemini-2.5-flash for faster analysis
  • When using OpenRouter, specify the complete model ID
  • See How to Select Models and Providers for detailed recommendations

Reasoning Parameter

  • Controls reasoning depth for compatible models (GPT-5 series via OpenRouter)
  • Options: "low", "medium", "high"
  • Omit this parameter for standard mode
  • See Reasoning Effort Parameter for details

Additional Context

  • Use additional_info to provide experimental context
  • Example: "Sample from tumor microenvironment, focus on immune infiltration"

Output

The function returns a list with two components:

ComponentDescription
structured_outputThe annotation result containing predicted cell type and reasoning
conversation_historyComplete conversation log for debugging and transparency