Proportional sample exposures will be used as input to perform clustering.
cluster_exposure(
result,
nclust,
proportional = TRUE,
method = "kmeans",
dis.method = "euclidean",
hc.method = "ward.D",
clara.samples = 5,
iter.max = 10,
tol = 1e-15
)A musica_result object generated by
a mutational discovery or prediction tool.
Pre-defined number of clusters.
Logical, indicating if proportional exposure (default) will be used for clustering.
Clustering algorithms. Options are "kmeans" (K-means), "hkmeans" (hybrid of hierarchical K-means), "hclust" (hierarchical clustering), "pam" (PAM), and "clara" (Clara).
Methods to calculate dissimilarity matrix. Options are "euclidean" (default), "manhattan", "jaccard", "cosine", and "canberra".
Methods to perform hierarchical clustering. Options are "ward.D" (default), "ward.D2", "single", "complete", "average", "mcquitty", "median", and "centroid".
Number of samples to be drawn from dataset. Only used when "clara" is selected. Default is 5.
Maximum number of iterations for k-means clustering.
Tolerance level for kmeans clustering level iterations
A one-column data frame with sample IDs as row names and cluster number for each sample.