Description Usage Arguments Value Examples
View source: R/inter_functions.R
Function to compute the distance matrix using vegdist from the vegan package
1 | 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
1 2 3 | 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.