reconstruct_ancestral_states
Infer ancestral states at internal nodes of a lineage tree using continuous or parsimony methods. Results are added as node attributes for downstream analysis.
Instructions
Infer internal-node states for the given keys (obs cols / var / obsm) on a tree.
Methods include "mean" (continuous) and parsimony-based (Fitch-Hartigan / Sankoff) depending on the data. Results are written as node attributes on the tree.
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": {
"dataset_id": "<dataset_id>",
"tree_key": "<tree_key>",
"keys": "<keys>"
},
"name": "reconstruct_ancestral_states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| method | No | mean | |
| tree_key | Yes | ||
| dataset_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |