View source: R/clusterProfile.R
getDistanceMatrix | R Documentation |
Calculate the distance matrix
getDistanceMatrix(profiles = NULL, method = "mutualInformation")
profiles |
dataframe contains profile data for distance calculating (see ?getDataClustering) |
method |
distance calculation method ("euclidean", "maximum", "manhattan", "canberra", "binary", "distanceCorrelation", "mutualInformation" or "pearson" for binary data; "distanceCorrelation" or "mutualInformation" for non-binary data). Default = "mutualInformation". |
A calculated distance matrix for input phylogenetic profiles.
Carla Mölbert (carla.moelbert@gmx.de), Vinh Tran (tran@bio.uni-frankfurt.de)
getDataClustering
data("finalProcessedProfile", package="PhyloProfile")
data <- finalProcessedProfile
profileType <- "binary"
profiles <- getDataClustering(
data, profileType, var1AggregateBy, var2AggregateBy)
method <- "mutualInformation"
getDistanceMatrix(profiles, method)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.