Description Usage Arguments Value Author(s) Examples
View source: R/calculateSimilarity.R
This function takes a distance table under the form of a
tibble
object and transforms it into a distance matrix
ready for clustering.
1 | makeDistanceMatrix(outMet)
|
outMet |
a |
a matrix
containing the distance for sample pairs.
Santiago Medina, Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 | ## Tibble object containing a distance table
pairedData <- data.frame(SampleName1=c("ERR053", "ERR053", "ERR465"),
SampleName2=c("ERR465", "ERR040", "ERR040"),
HammingDistance = c(17, 18, 19))
tibbleData <- dplyr::as_tibble(pairedData)
## Calculate distance matrix
HLAClustRView:::makeDistanceMatrix(tibbleData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.