biom_merge {rbiom} | R Documentation |
Combine several rbiom objects into one.
Description
WARNING: It is generally ill-advised to merge BIOM datasets, as OTUs mappings are dependent on upstream clustering and are not equivalent between BIOM files.
Usage
biom_merge(
...,
metadata = NA,
taxonomy = NA,
tree = NULL,
sequences = NA,
id = NA,
comment = NA
)
Arguments
... |
Any number of rbiom objects (e.g. from |
metadata , taxonomy , tree , sequences , id , comment |
Replace the corresponding
data in the merged rbiom object with these values. Set to |
Value
An rbiom object.
See Also
Other biom:
bdply()
Examples
library(rbiom)
b1 <- as_rbiom(hmp50$counts[,1:4])
b2 <- as_rbiom(hmp50$counts[,5:8])
biom <- biom_merge(b1, b2)
print(biom)
biom$tree <- hmp50$tree
biom$metadata <- hmp50$metadata
print(biom)
[Package rbiom version 2.2.1 Index]