R/cluster.R

Defines functions clusterSpectrum

Documented in clusterSpectrum

clusterSpectrum <- function(m, by = c("sample", "motif"), distance = "Cosine", ...) {

    by = match.arg(by)
    
    if(by == "motif")
        m = t(m)

    d = dist(m, method = distance)
    h = hclust(d)

    return(h)
}

Try the SomaticSignatures package in your browser

Any scripts or data that you put into this service are public.

SomaticSignatures documentation built on Nov. 8, 2020, 5:52 p.m.