+
Skip to content

write_biom does not write valid BIOM 1.0 format file #4

@gputzel

Description

@gputzel

When I try to generate a test BIOM 1.0 (JSON) file using make_biom, the result isn't a valid BIOM file.

First get some data to generate an example:

min_dense_file <- system.file("extdata", "min_dense_otu_table.biom", package = "biomformat")
minimal.biom <- read_biom(min_dense_file)
ps <- phyloseq::import_biom(minimal.biom)
new.biom <- make_biom(data=otu_table(ps),matrix_element_type='int',id = 'None')
write_biom(new.biom,biom_file='new.biom')

In the resulting file new.biom:

  • The id field has as value the list ["None"] rather than the string "None"
  • Similarly the values of the format, format_url, type, etc. fields are lists rather than strings
  • For each "row" entry, the id is similarly a list (e.g. ["GG_OTU_1"]) rather than a string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载