biom_merge: Combine several rbiom objects into one.

biom_mergeR 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(...)

Arguments

...

Any number of rbiom objects (e.g. from read_biom()), lists of rbiom objects, or valid arguments to the src parameter of read_biom() (for instance file names).

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)

cmmr/rbiom documentation built on April 28, 2024, 6:38 a.m.