export_newick
Export a reconstructed phylogenetic tree to a Newick string, with options to include branch lengths and node names.
Instructions
Export a reconstructed tree to a Newick string.
Args: dataset_id: Dataset handle. tree_key: Which tree in tdata.obst to export. record_branch_lengths: Include branch lengths in the Newick. record_node_names: Include internal node names in the Newick.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_key | Yes | ||
| dataset_id | Yes | ||
| record_node_names | No | ||
| record_branch_lengths | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newick | Yes | ||
| tree_key | Yes | ||
| dataset_id | Yes |