# Count number of supertaxa that contain each taxon
n_supertaxa(ex_taxmap)
# Filter taxa based on the number of supertaxa
# (this command removes all root taxa)
filter_taxa(ex_taxmap, n_supertaxa > 0)
Run the code above in your browser using DataLab