list_taxa
gets ordered list of all taxa and optionally count AmP members
Contents
Syntax
[ol, n_c] = list_taxa (taxon, level, count)
Description
gets an alphabetically ordered list of all taxa that belong to taxon in the add_my_pet collection. if count is specified, the order is by number of AmP members of the taxa
Input:
- taxon: optional characterstring with name of taxon (default 'Animalia')
- level: optional integer for the level (default: 0)
0 all taxa, including leaves 1 all taxa, excluding leaves 2 leaves (names with "_") 3 genera only (names before first "_") 4 families only (names ending on "idae") 5 orders only (match with allStat.mat) 6 classes only (match with allStat.mat, but does not work for Reptilia) 7 phyla only (match with allStat.mat)
- count: optional scalar with lower bound for counting members
Output:
- ol: cell string with alphabetically ordered list
- n_c: vector with number of members; is empty if count is not specified
Remarks
The classification follows that of Wikipedia
Example of use
- ol = list_taxa
- ol = list_taxa('Deuterostomata',4)
- ol = list_taxa({},7)
- ol = list_taxa('Arthropoda')
- [ol, n] = list_taxa('Chondrichthyes',3,10); prt_tab({ol n},{'genus', 'n'},'genera',1)