Learn R Programming

biom (version 0.3.9)

write_biom: Write a biom-format file, returning a biom-class.

Description

Write a biom-format file, returning a biom-class.

Usage

write_biom(x, biom_file)

Arguments

x
(Required). A biom object that is going to be written to file as a proper biom formatted file, adhering to http://biom-format.org/documentation/biom_format.html{the biom-format definition}.
biom_file
(Required). A character string indicating the file location of the biom formatted file. This is a JSON formatted file specific to biological datasets. The format is formally defined at http://biom-format.org/documentation/biom_format.html

Value

  • Nothing. The first argument, x, is written to a file.

References

http://biom-format.org/

See Also

Accessor functions like header. http://biom-format.org/{the biom-format home page}

Examples

Run this code
biom_file <- system.file("extdata", "rich_sparse_otu_table.biom", package = "biom")
x = read_biom(biom_file)
outfile = tempfile()
write_biom(x, outfile)
y = read_biom(outfile)
identical(x, y)

Run the code above in your browser using DataLab