Compare two tree topologies
compare_treesCompute Robinson-Foulds distance between two Newick trees and identify their differing clades by comparing splits, not string representations.
Instructions
Robinson-Foulds distance between two trees, and which clades differ.
Compares SPLITS, not strings: the same topology has many valid Newick representations, so string equality answers a different question.
Args: newick_a: First tree in Newick format. newick_b: Second tree in Newick format. trees_path: Instead of the two strings, the path of a file holding exactly two Newick trees, A then B.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newick_a | No | ||
| newick_b | No | ||
| trees_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warnings | Yes | ||
| only_in_a | Yes | ||
| only_in_b | Yes | ||
| shared_taxa | Yes | ||
| n_shared_clades | Yes | ||
| robinson_foulds | Yes | ||
| identical_topology | Yes | ||
| normalised_robinson_foulds | Yes |