adds new function to support #1678

I have a script written that uses this, but it currently relies on biom 2.1.0-dev, so not pushing yet.