Visualize results through HTML reports or figures

HTML reports (gt table)

Because of the messy result table is hardly to read, EnrichGT help you convert it into pretty gt HTML tables. This only supports the re-enriched results.

You can simple input the object name of re-enriched object or fused object, to show the table.

This just shows the second slot inside the EnrichGT_obj object. The second slot - gt_object is a pure object of gt package, you can use any function on it, like:

re_enrichment_results@gt_object |> gt_save("test.html") # Save it use basic gt functions. 

For further usage of gt package, please refer to https://gt.rstudio.com/articles/gt.html.

See re-enrichment example for further demo.

Ploting functions

HTML gt table satisfied most of things, but for others. Though we don’t want this package become complex (i.e., you can simple draw your figure using ggplot2 for enriched tables by yourself.) But we still provide limited figure ploting functions.

Basic result plot

The Dot Plot provide basic viewing of results. So it supports both simple enrichment result data.frame and re-enriched egt_object.

You can adjust this figure by these params:

  • ntop: Show top N in each cluster. In default, for origin enriched result, showing top 15; for re-clustered object, showing top 5 in each cluster.
  • showIDs: bool, show pathway IDs or not. Default is FALSE
  • max_len_descript: the label format length, default as 40.
  • P.adj: If pass an origin data.frame from original enriched result, you can specify the P-adjust value cut off. If is null, default is 0.05. When passing EnrichGT_obj, this filter is previously done by egt_recluster_analysis.
  • low.col: the color for the lowest
  • hi.col: the color for the highest

Ploting ORA result

egt_plot_results(ora_result)
ℹ Use Default P-adjust cut-off 0.05. You can pass `P.adj=xxx` arugument to filter. 
! You are drawing origin results, for better result you can re-cluster it by egt_recluster_analysis()

Ploting GSEA result

egt_plot_results(resGSEA)
ℹ Use Default P-adjust cut-off 0.05. You can pass `P.adj=xxx` arugument to filter. 
! You are drawing origin results, for better result you can re-cluster it by egt_recluster_analysis()

Ploting re-enrichment result

egt_plot_results(re_enrich)

Re-enrichment dimensionality reduction plot

UMAP plot only supports re-enriched egt_object, to show the dimensionality reduction view of enriched results.

A word frequency matrix represents the frequency of words or tokens across different documents or text samples. Each row corresponds to a document, and each column represents a word or token, with the cell values indicating the frequency of the respective word in that document.However, high-dimensional data like word frequency matrices can be challenging to interpret directly. To make such data easier to analyze, we can reduce its dimensionality and visualize the patterns or clusters in a 2D or 3D space. UMAP (Uniform Manifold Approximation and Projection) is a powerful, non-linear dimensionality reduction technique widely used for this purpose.

egt_plot_umap(re_enrich)
Warning: ggrepel: 1 unlabeled data points (too many overlaps). Consider
increasing max.overlaps

Back to top