Skip to content

Instantly share code, notes, and snippets.

@bendmorris
Last active December 14, 2015 10:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bendmorris/5076354 to your computer and use it in GitHub Desktop.
Save bendmorris/5076354 to your computer and use it in GitHub Desktop.
Part of the Bininda-Emonds mammal tree, with inner nodes labelled for higher taxa
This is a taxonomy, which contains information on higher taxa for each species (genus, family, order, etc.)
____________________ Pan paniscus
________________Pan_|
| |____________________ Pan troglodytes
_____________________|
Hominidae |________________Gorilla__________________ Gorilla gorilla
|
|________________Homo_____________________ Homo sapiens
(('Pan paniscus','Pan troglodytes')Pan,('Gorilla gorilla')Gorilla,('Homo sapiens')Homo)Hominidae;
The Bininda-Emonds mammal tree, below, contains only labels for species and shows how closely two species are related:
____________ Pan troglodytes
_________________|
________| |____________ Pan paniscus
| |
_______________________| |______________________________ Homo sapiens
|
|_______________________________________ Gorilla gorilla
((('Pan troglodytes':3.90000,'Pan paniscus':3.90000):5.80000,'Homo sapiens':9.70000):3.00000,'Gorilla gorilla':12.70000):7.00000;
Using the taxonomy and the mammal tree together, we can build a tree with the same branches as the mammal tree, but includes the higher taxonomic labels from the taxonomy in the correct places:
____________ Pan troglodytes
_________________|
________| Pan|____________ Pan paniscus
| |
_______________________| |______________________________ Homo sapiens
Hominidae| Homo
|_______________________________________ Gorilla gorilla
Gorilla
((('Pan troglodytes':3.90000,'Pan paniscus':3.90000)Pan:5.80000,('Homo sapiens':9.70000)Homo:0):3.00000,('Gorilla gorilla':12.70000)Gorilla:0)Hominidae:7.00000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment