Make a distance matrix of samples vs samples.

beta.div(biom, method, weighted = TRUE, tree = NULL)

## Arguments

biom A matrix, simple_triplet_matrix, or BIOM object, as returned from read.biom. For matrices, the rows and columns are assumed to be the taxa and samples, respectively. The distance algorithm to use. Options are: “manhattan”, “euclidean”, “bray-curtis”, “jaccard”, and “unifrac”. Non-ambiguous abbrevations of the method names are also accepted. A phylogentic tree must be present in biom or explicitly provided via tree= to use the UniFrac methods. Take relative abundances into account. When weighted=FALSE, only presence/absence is considered. A phylo object representing the phylogenetic relationships of the taxa in biom. Will be taken from the tree embedded in the biom object if not explicitly specified. Only required for computing UniFrac distance matrices.

## Value

A distance matrix.

## Examples

    library(rbiom)

infile <- system.file("extdata", "hmp50.bz2", package = "rbiom")