list-newick-leaf-labels

Description

list-newick-leaf-labels adaptor gets the leaf labels from a Newick tree.

Creates a list of the leaf labels from a newick tree. The newick-data can either be pasted directly 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.

Outputs

labels Type: list A list of leaf labels.

Examples

Example 1: Default behaviour.

Inputs:

newick:

(Bovine:0.69395,(Gibbon:0.0,(Orangutan:0.0,(Gorilla:0.0,(Chimp:0.0,Human:0.0)123:0.0)test:0.06124):0.0):0.54939,Mouse:1.21460);

Outputs:

labels:

  1. Bovine

  2. Mouse

  3. Gibbon

  4. Orangutan

  5. Gorilla

  6. Chimp

  7. Human

-> Created a list of the leaf labels from the Newick tree.

Use Cases

  • Generating a list of samples to use for querying a sample metadata database or file.

  • Use to creating a dictionary that contains old and new leaf labels to use in conjunction with the replace-newick-leaf-labelsadaptor.

Last updated