export_tree
Convert a tree between the four formats this workbench reads and writes — Newick, NEXUS, PhyloXML and NeXML — sniffing the input format rather than making the caller declare it. Newick loses annotations the richer formats carry, which is why the conversion is a step you choose rather than something done silently on export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | the tree's name inside the written file (NEXUS and NeXML carry one). Advanced. | tree1 |
| tree | Yes | the tree, in any of the four formats. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| format | No | the format to write. Values: newick (Newick), nexus (NEXUS), phyloxml (PhyloXML), nexml (NeXML). | newick |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the tree written in the requested format | |
| sourceFormat | Yes | the format the input was sniffed as — check this when a conversion surprises you |