View source: R/plotting_funcs.R
cluster_mr_heatmap | R Documentation |
Generates a heatmap of cluster-specific MR activity. Alternatively, can be provided with a pre-selected set of proteins, typically canonical markers.
cluster_mr_heatmap( dat.mat, dat.type = c("gexp", "pact"), clust.vec, mr.list, num.mrs = 10, reg.class = c("regulator", "marker"), marker.set = NULL, group.means = FALSE, scale.rows = FALSE, plot.title = NULL, clust.rows = FALSE )
dat.mat |
Matrix of either scaled expresison data or PES generated by NaRnEA (featues X samples). |
dat.type |
One of ‘c(’gexp', 'pact')', specifying expression or activity data. ASsumes activity if not specified. |
clust.vec |
Named clustering vector. |
num.mrs |
Number of master regulators to display. Default of 10. |
marker.set |
Optional list of markers to use in lieu of master regulators. |
group.means |
Flag to plot the mean of each group rather than each sample. Default of FALSE. |
scale.rows |
Flag to scale rows for plot color. Default of FALSE. |
plot.title |
Optional plot title argument. Will be generated according to other arguments if not specified. |
clust.rows |
Clusters rows if set to true. Default of FALSE. |
mr.obj |
Master regulator object, such as that generated by 'cluster_signature_mrs'. Should be a list with a 'cluster.narnea' element, containing cluster-specific NaRnEA results (NES and PES matrices). |
A ComplexHeatmap object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.