rename-newick-leaf-labels
Description
rename-newick-leaf-labels
adaptor renames the leaf labels from a newick-format file.
The newick data can either be pasted directly in as an input, or a file can be uploaded. To upload a newick file, use the import-text-from-file
adaptor as the newick input.
Inputs
newick
Type: text
Required: Yes
A tree in Newick format.
mapping
Type: dictionary
Required: Yes
A mapping of existing labels (dictionary keys) with new labels (dictionary values).
Outputs
newick
Type: text
A tree with renamed labels in Newick format.
Examples
Example 1: Default behaviour.
Inputs:
newick:
mapping:
Mouse
Mice
Gorilla
Silverback
Outputs:
newick
:
-> Renamed the leaf labels Mouse
and Gorilla
as Mice
and Silverback
respectively.
Use Cases
Provide more descriptive leaf labels prior to visualising the tree in Microreact.
Rename labels to match information in a metadata file.
Last updated