ModuleTopologyHeatmap.Rd
Plots a heatmap of the co-expression network topology of a given module.
ModuleTopologyHeatmap(
seurat_obj,
mod,
matrix = "TOM",
matrix_name = NULL,
order_by = "kME",
high_color = NULL,
low_color = "white",
raster = TRUE,
raster_dpi = 200,
plot_max = "q99",
plot_min = 0,
return_genes = FALSE,
genes_order = NULL,
TOM_use = NULL,
wgcna_name = NULL,
...
)
A Seurat object
the name of the co-expression module to plot
specify which matrix to plot, use 'TOM' (topological overlap matrix) or 'Cor' (correlation matrix), or pass a custom square matrix where the rownames and colnames match the genes in this module
name of the matrix plotted that will be used as the label in the plot legend
order genes in this module by 'kME' (default) or by 'degree' (sum of all connections to this gene in the co-expression network)
color used for high values in the heatmap, default is the module's unique color
color used for low values in the heatmap, default is 'white'
logical indicating whether or not to rasterise the plot
dpi used for a rasterised plot
maximum value to plot on the heatmap, can pass a numeric value or a string indicating the quantile ('q99' would be the 99th percentile)
minimum value to plot on the heatmap, can pass a numeric value or a string indicating the quantile ('q1' would be the 1st percentile)
logical indicating whether or not to return
a character vector of genes to plot in this specific order, this option will override the order_by parameter
The name of the hdWGCNA experiment containing the TOM that will be used for plotting
The name of the hdWGCNA experiment in the seurat_obj@misc slot
ggplot object containing the ModuleTopologyHeatmap
ModuleTopologyHeatmap generates a triangular heatmap plot showing the network "topology" of a specific co-expression module. Each cell in the heatmap represents a gene-gene pair, and the the heatmap is colored by the strength of the connection between these two genes. By default the genes in this heatmap are ordered in both the rows and the columns based on their importance in the module, ranked either by eigengene-based connectivity (kME) or by network degree.