My apologies if this question has already been addressed somewhere; I couldn't find an answer to it in the developer docs or a forum search.
I am working on adding some new functionality to a plugin; this new functionality calls an existing method in the plugin and then works with the results. The existing method generates a biom.Table object and uses qiime2.Artifact.import_data() to turn it into a FeatureTable[Frequency] artifact, which it then returns. However, for my added functionality, I need to get access to the underlying biom.Table object again.
Is there a straightforward way for me to get that back out of the FeatureTable[Frequency] artifact ... essentially, a reverse of qiime2.Artifact.import_data()? Or would I be better off doing something like re-architecting the existing method into two--an internal one that returns the biom.Table and an external one that turns that into an artifact--and having my new functionality call only the internal one?