mikemc / speedyseq

Speedy versions of phyloseq functions
https://mikemc.github.io/speedyseq/
Other
46 stars 6 forks source link

Create a function to simultaneously merge multiple taxa groups #14

Closed mikemc closed 4 years ago

mikemc commented 5 years ago

Create a generic function like merge_taxa() but that allows multiple groups of taxa to be merged simultaneously. Instead of taking a vector with the names of taxa for one group, it will take a vector that defines all the groups. This function can be then be used in speedyseq's tax_glom and tree_glom implementations, removing the need for code redundancy.

mikemc commented 4 years ago

New function merge_taxa_vec() implemented for this purpose in 576f3a69f1fd0889aca740961a106b77ce9b1a8b