analyze_spatial_statistics
Analyze spatial statistics and autocorrelation patterns.
Instructions
Analyze spatial statistics and autocorrelation patterns.
Args:
data_id: Dataset ID
params: Analysis parameters (analysis_type, cluster_key, genes). See SpatialStatisticsParameters for all types.
gene_selection='all' computes moran/geary for every gene; the full per-gene
table (rank, statistic, p, FDR) is stored at results_key, only top genes are returned.
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>"
},
"name": "analyze_spatial_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| data_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_id | Yes | ||
| warnings | No | Non-fatal conditions that may affect result interpretation. | |
| results_key | No | ||
| top_features | No | ||
| analysis_type | Yes | ||
| n_significant | No | ||
| spatial_graph | No | ||
| summary_metrics | No | ||
| n_features_analyzed | No |