analyze_cnv
Analyze copy number variations (CNVs) in spatial transcriptomics data.
Instructions
Analyze copy number variations (CNVs) in spatial transcriptomics data.
Args:
data_id: Dataset identifier
params: Required - reference_key, reference_categories, and optional method/thresholds.
Gene positions missing from adata.var are annotated from bundled Ensembl 110
tables (species: human GRCh38 or mouse GRCm39). exclude_gene_classes removes
immunoglobulin, ribosomal, mitochondrial or HLA genes from the CNV input;
query_categories restricts CNV clustering to those reference_key categories.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data_id": "<data_id>",
"params": "<params>"
},
"name": "analyze_cnv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | ||
| data_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | ||
| data_id | Yes | ||
| warnings | No | Non-fatal conditions that may affect result interpretation. | |
| cnv_score_key | No | ||
| n_chromosomes | Yes | ||
| n_query_cells | No | Observations clustered when query_categories restricts clustering. | |
| reference_key | Yes | ||
| gene_positions | No | Source of gene positions: 'adata.var', or the bundled table with the number of genes matched by Ensembl ID and by symbol. | |
| n_genes_analyzed | Yes | ||
| n_genes_excluded | No | Genes matched by each excluded gene class or name pattern. | |
| reference_categories | Yes | ||
| visualization_available | No |