Closed bernt-matthias closed 2 years ago
Little update:
For the test data in https://github.com/biocore/biom-format/tree/master/examples taxonomy is loaded for all but min_sparse_otu_table_hdf5.biom.
Metadata is loaded from none on the test files.
The idea was to supply a separate metadata sheet. But that needs to be either documented or made so it can handle both. I'd go for the latter at some point. ampvis2 is on hold for a while for me, need to finish up a PhD :P Keep posting, I'll get back to it at some point
If metadata is present in the biom file, it will now be loaded. But overridden by the metadata
argument if provided. The min_sparse_otu_table_hdf5.biom
file simply doesn't contain any taxonomy.
Really cool. One more question, Is metadata from biom files loaded as character data, i.e. do I need to fix numeric / date metadata?
Bonus question: do you plan to make a release of the recent changes?
It's naive. All columns will be character only as the BIOM file is just a text file. No interpretation or guess work is done, that would lead to problems. You have to adjust the ampvis2object$metadata
data frame afterwards in the ampvis2 object, which is essentially just a list of data frames with a "quality stamp" in the form of being an ampvis2
class object created by amp_load
, so the format is consistent.
And I will make a release now. I always do that manually, so just waited for github actions to do its thing first.
I was starting to explore the ampvis2 package using the test data from this repo (https://github.com/MadsAlbertsen/ampvis2/blob/main/tests/testdata/rich_sparse_otu_table.biom). If I try to load the data with
d <- amp_load("rich_sparse_otu_table.biom")
I get
So the metadata from the biom file is not used?
d
looks like this: