microbiome / mia

Microbiome analysis
https://microbiome.github.io/mia/
Artistic License 2.0
46 stars 27 forks source link

Optimize mapTaxonomy #445

Closed antagomir closed 1 month ago

antagomir commented 11 months ago

Currently mapTaxonomy is slow for longer taxa vectors.

This seems be because it maps every entry along taxa vector separately, instead of mapping unique entries and then mapping back to original input.

This could be considerably optimized in terms of speed by using this trick.

Could also check at the same go if there are other similar issues in other methods..