# Count number of immediate subtaxa in each taxon
n_subtaxa_1(ex_taxmap)
# Filter taxa based on number of subtaxa
# (this command removed all leaves or "tips" of the tree)
filter_taxa(ex_taxmap, n_subtaxa_1 > 0)
Run the code above in your browser using DataLab