plotTFEnrichment | R Documentation |
This function plots the enrichment results. The result consist of a dot plot per specified TF, as well as two comparative heatmaps. The first heatmap displays the p value for each GO term across the TFs. Terms that The second heatmap is a subset of the first, where select terms are kept or filtered out for better visibility and display.
plotTFEnrichment( GRN, rankType = "degree", n = NULL, TF.names = NULL, topn_pvalue = 30, p = 0.05, nSignificant = 2, nID = 10, display_pAdj = FALSE, maxWidth_nchar_plot = 100, outputFolder = NULL, basenameOutput = NULL, plotAsPDF = TRUE, pdf_width = 12, pdf_height = 12, pages = NULL, forceRerun = FALSE )
GRN |
Object of class |
rankType |
Character. One of: "degree", "EV", "custom". This parameter will determine the criterion to be used to identify the "top" nodes. If set to "degree", the function will select top nodes based on the number of connections they have, i.e. based on their degree-centrality. If set to "EV" it will select the top nodes based on their eigenvector-centrality score in the network. |
n |
NULL or numeric. Default NULL. If set to NULL, all previously calculated TF enrichments will be plotted. If set to a value between (0,1), it is treated as a percentage of top nodes. If the value is passed as an integer it will be treated as the number of top nodes. This parameter is not relevant if rankType = "custom". |
TF.names |
|
topn_pvalue |
Numeric. Default 30. Maximum number of ontology terms that meet the p-value significance threshold to display in the enrichment dot plot |
p |
Numeric. Default 0.05. p-value threshold to determine significance. |
nSignificant |
Numeric. Default 3. Threshold to filter out an ontology term with less than |
nID |
Numeric. Default 10. For the reduced heatmap, number of top terms to select per community. |
display_pAdj |
|
maxWidth_nchar_plot |
Integer (>=10). Default 100. Maximum number of characters for a term before it is truncated. |
outputFolder |
Character or |
basenameOutput |
|
plotAsPDF |
|
pdf_width |
Number. Default 12. Width of the PDF, in cm. |
pdf_height |
Number. Default 12. Height of the PDF, in cm. |
pages |
Integer vector or |
forceRerun |
|
The same GRN
object, without modifications. A single PDF file is produced with the results.
calculateTFEnrichment
# See the Workflow vignette on the GRaNIE website for examples GRN = loadExampleObject() GRN = plotTFEnrichment(GRN, n = 5, plotAsPDF = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.