Description Usage Arguments Value References Examples
View source: R/getConsensusMOIC.R
Since this R package integrates 10 mainstream multi-omics clustering algorithms, we borrow the idea of consensus clustering for later integration of the clustering results derived from different algorithms, so as to improve the clustering robustness. The simplest way to run 'getConsensusMOIC()' is to pass a list of object returned by 'get%algorithm_name%()' or by 'getMOIC()' with specific argument of 'methodslist'.
1 2 3 4 5 6 7 8 9 10 11 12 13 | getConsensusMOIC(
moic.res.list = NULL,
distance = "euclidean",
linkage = "ward.D",
mapcolor = c("#000004FF", "#56106EFF", "#BB3754FF", "#F98C0AFF", "#FCFFA4FF"),
clust.col = c("#2EC4B6", "#E71D36", "#FF9F1C", "#BDD5EA", "#FFA5AB", "#011627",
"#023E8A", "#9D4EDD"),
showID = FALSE,
fig.path = getwd(),
fig.name = "consensusheatmap",
width = 5.5,
height = 5
)
|
moic.res.list |
A list of object returned by 'getMOIC()'. |
distance |
A string value of distance measurement for hierarchical clustering; 'euclidean' by default. |
linkage |
A string value of clustering method for hierarchical clustering; 'ward.D' by default. |
mapcolor |
A string vector for heatmap mapping color. |
clust.col |
A string vector storing colors for annotating each cluster at the top of heatmap. |
showID |
A logic value to indicate if showing the sample ID; FALSE by default. |
fig.path |
A string value to indicate the output path for storing the consensus heatmap. |
fig.name |
A string value to indicate the name of the consensus heatmap. |
width |
A numeric value to indicate the width of output figure. |
height |
A numeric value to indicate the height of output figure. |
A consensus heatmap and a list contains the following components:
consensus.hm
an object returned by pheatmap
similarity
a similary matrix for pair-wise samples with entries ranging from 0 to 1
sil
a silhouette object that can be further passed to getSilhouette
clust.res
a data.frame storing sample ID and corresponding clusters
clust.dend
a dendrogram of sample clustering
mo.method
a string value indicating the method used for multi-omics integrative clustering
Gu Z, Eils R, Schlesner M (2016). Complex heatmaps reveal patterns and correlations in multidimensional genomic data. Bioinformatics, 32(18):2847-2849.
1 | # There is no example and please refer to vignette.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.