KasperSkytte / ampvis2

Tools for visualising microbial community amplicon data
https://kasperskytte.github.io/ampvis2/
GNU General Public License v3.0
66 stars 23 forks source link

Does ampvis2 exports an object in biom format? #74

Closed FilipeMatteoli closed 4 years ago

FilipeMatteoli commented 4 years ago

I am trying to export a biom file, tailored in phyloseq, but I would like to keep it in this format.

I was able to convert my phyloseq following this, then i exported it as a csv otu_table. Unfortunately, this leaves all metadata out of the exported file. Maybe I am missing something or this has not been implemented yet?

Best,

KasperSkytte commented 4 years ago

Hi there

Currently you can only import and convert to ampvis2 format, not the other way around. You cannot export in biom format unless you convert back to phyloseq and export through there. But if this is needed by many I can maybe implement it. But if you load the data using phyloseq, you can just export through it too without going through ampvis2? If you just do regular filtering, it's easily done in phyloseq as well. But if you want to try, you can just load as phyloseq object by passing the elements in the ampvis2 object, eg data$abund for counts, data$tax for taxonomy, data$metadata for sample data etc.