Help for this page

Select Code to Download


  1. or download this
    One-to-many:
    taxon ---> node
    ...
    
    One-to-one:
    sequence ---> taxon
    
  2. or download this
    my @nodes = $taxon->get_nodes;
    my @sequences = $taxon->get_sequences;
    my $taxon = $node->get_taxon;
    $taxon = $sequence->get_taxon;
    
  3. or download this
    $node->set_taxon( $taxon );
    
  4. or download this
    sub set_taxon {
        my ( $node, $taxon ) = @_;
    ...
        $taxon->add_node( $node );
        return $node;
    }