clusterHMMs | R Documentation |
Cluster a list of aneuHMM
or aneuBiHMM
objects by similarity in their CNV-state.
clusterHMMs(hmms, cluster = TRUE, exclude.regions = NULL)
hmms |
A list of |
cluster |
Either |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.