Description Usage Arguments Value Author(s) See Also Examples
View source: R/clusterProfile.R
Calculate the distance matrix
1 | 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)
1 2 3 4 5 6 7 | data("finalProcessedProfile", package="PhyloProfile")
data <- finalProcessedProfile
profileType <- "binary"
profiles <- getDataClustering(
data, profileType, var1AggregateBy, var2AggregateBy)
method <- "mutualInformation"
getDistanceMatrix(profiles, method)
|
100136at6656 100265at6656 101621at6656
100265at6656 0.1282320
101621at6656 0.1911148 0.1274281
103479at6656 0.1710216 0.1042150 0.0000000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.