Learn R Programming

library(clusterProfiler)
library(wikiprofiler)

data(geneList, package="DOSE")

de <- names(geneList)[1:100]
x <- enrichWP(de, organism='Homo sapiens')


de2 <- bitr(de, "ENTREZID", "SYMBOL", OrgDb='org.Hs.eg.db')
#### if needed
# de2 <- de2[!duplicated(de2[,1]), ]
value <- setNames(geneList[de2[,1]], de2[,2])

ID <- x$ID[1]

p1 <- wpplot(ID)
p1

p2 <- p1 |> wp_bgfill(value, low='darkgreen', high='firebrick', legend_x = .9, legend_y = .95)
p2

p3 <- p2 |> wp_shadowtext()
p3

Copy Link

Version

Install

install.packages('wikiprofiler')

Monthly Downloads

508

Version

0.1.5

License

Artistic-2.0

Maintainer

Guangchuang Yu

Last Published

August 26th, 2024

Functions in wikiprofiler (0.1.5)

wikiprofiler-package

wikiprofiler: 'WikiPathway' Based Data Integration and Visualization
wp_shadowtext

Add halo above gene name to get a clear view.
wp_bgfill

Fill the background of gene with color according to amount of gene expression.
wpplot

Input specific wikipathways ID to get an output in class of wpplot.
read.wp

read.wp
wpsave

Save the 'wpplot' object to a file.
reexports

Objects exported from other packages