View source: R/inter_functions.R
computeDistMat | R Documentation |
Function to compute the distance matrix using vegdist from the vegan package
computeDistMat(aggdat, dist_method, log = TRUE, nfeatures = nrow(aggmat))
aggdat |
aggregated MRExperiment |
dist_method |
distance method from vegan package (See ?vegan::vegdist for details) |
log |
transform count matrix to log2; default is TRUE |
nfeatures |
number of features to use; default is all |
distance as dist
data("mouseData", package = "metagenomeSeq") aggdat <- aggFeatures(mouseData, level = "genus") computeDistMat(aggdat, dist_method = "bray")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.