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