collapse_group
Collapse clades by taxonomic group name with a monophyly pre-check. Skip unresolved groups or fail in strict mode; supports LUCA, LACA, LBCA, and root.
Instructions
Collapse clades by taxonomic group name with a monophyly pre-check (supports LUCA / LACA / LBCA / root).
A group whose lookup fails (unknown name / unresolvable taxonomy) is
recorded as a per-group skipped entry and never aborts the whole
request; strict=True converts that failure into monophyly_error.
Args:
groups: [{"group": "Cyanobacteriota", "label": "...",
"collapse_type": "collapse"}].
strict: Fail with monophyly_error on a non-monophyletic group.
taxonomy_levels: Custom rank prefixes (prefix:rank,...).
taxonomy_mapping_file: Optional taxonomy mapping table (whitelisted),
for trees whose taxonomy is not embedded in tip labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | No | ||
| strict | No | ||
| run_name | No | ||
| tree_file | No | ||
| tree_content | No | ||
| taxonomy_levels | No | ||
| taxonomy_mapping_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |