clusterHMMs {AneuFinder} | R Documentation |
Cluster a list of aneuHMM
or aneuBiHMM
objects by similarity in their CNV-state.
clusterHMMs(hmms, cluster = TRUE, classes = NULL, exclude.regions = NULL)
hmms |
A list of |
cluster |
Either |
classes |
A vector with class labels the same length as |
exclude.regions |
A |
An list() with ordered ID indices and the hierarchical clustering.
## Get results from a small-cell-lung-cancer lung.folder <- system.file("extdata", "primary-lung", "hmms", package="AneuFinderData") lung.files <- list.files(lung.folder, full.names=TRUE) models <- loadFromFiles(lung.files) ## Not run: # Plot unclustered heatmap heatmapGenomewide(models, cluster=FALSE) ## End(Not run) ## Cluster and reorder the models clust <- clusterHMMs(models) models <- models[clust$IDorder] ## Not run: # Plot re-ordered heatmap heatmapGenomewide(models, cluster=FALSE) ## End(Not run)