silhouetteMLB: Silhouette Analysis.

silhouetteMLBR Documentation

Silhouette Analysis.

Description

Analyze the clustering quality and generate a Silhouette Plot.

Usage

silhouetteMLB(data, fac, method = "cosine", plot = TRUE)

Arguments

data

numeric matrix

fac

clustering factor

method

method to be used as distance function. Defaults to c("cosine")

plot

logical, shall a barplot showing the cluster silhouettes be printed

Value

numeric vector including the silhouette values of the data poointts in the input matrix

Author(s)

Damiano Fantini, damiano.fantini@gmail.com

References

More information and examples about mutational signature analysis can be found here:

  1. Official website: http://www.mutsignatures.org

  2. More info and examples about the mutSignatures R library: https://www.data-pulse.com/dev_site/mutsignatures/

  3. Oncogene paper, Mutational Signatures Operative in Bladder Cancer: https://www.nature.com/articles/s41388-017-0099-6

  4. Silhouette analysis in R: http://www.biotechworld.it/bioinf/2017/01/20/translating-matlabs-silhouette-function-to-r/

Examples

library(mutSignatures)
x <- mutSignatures:::getTestRunArgs("silhouetteMLB")
y <- silhouetteMLB(data = x$data, fac = x$fac)
y


dami82/mutSignatures documentation built on Jan. 24, 2023, 12:21 a.m.