plotCommunitiesEnrichment | R Documentation |
Similarly to plotGeneralEnrichment
, the results of the community-based enrichment analysis are plotted.. By default, the results for the 10 largest communities are displayed. Additionally, if a general enrichment analysis was previously generated, this function plots an additional heatmap to compare the general enrichment with the community based enrichment. A reduced version of this heatmap is also produced where terms are filtered out to improve visibility and display and highlight the most significant terms.
plotCommunitiesEnrichment( GRN, outputFolder = NULL, basenameOutput = NULL, display = "byRank", communities = NULL, topn_pvalue = 30, p = 0.05, nSignificant = 2, nID = 10, maxWidth_nchar_plot = 100, display_pAdj = FALSE, plotAsPDF = TRUE, pdf_width = 12, pdf_height = 12, pages = NULL, forceRerun = FALSE )
GRN |
Object of class |
outputFolder |
Character or |
basenameOutput |
|
display |
Character. Default |
communities |
|
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. |
maxWidth_nchar_plot |
Integer (>=10). Default 100. Maximum number of characters for a term before it is truncated. |
display_pAdj |
|
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.
# See the Workflow vignette on the GRaNIE website for examples GRN = loadExampleObject() GRN = plotCommunitiesEnrichment(GRN, plotAsPDF = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.