How to make a plot with gProfileR results?
1
1
Entering edit mode
6.1 years ago
Biologist ▴ 290

I have a list of genes and to get pathways from that I used gProfileR package.

library(gProfileR)
pathways <- gprofiler(genes, organism = "hsapiens", ordered_query = F,
          significant = T, exclude_iea = F, underrep = F, evcodes = F, region_query = F)

The above function gave me list of pathways and saved that results in csv file. Results from gProfileR looks like this gProfileR results

I would like to know how to make a plot out of those results?

RNA-Seq gprofiler geneexpression pathways plot • 7.4k views
ADD COMMENT
0
Entering edit mode

Do not paste links to screenshots of tabular data, it's multiple unnecessary layers over something that is far easier to showcase in your post. See

ADD REPLY
0
Entering edit mode

In this tutorial, they have used web-based g:Profiler for the enrichment analysis and cytoscope for the representation.

It may help you.

ADD REPLY
2
Entering edit mode
5.6 years ago

You might want to check the new gprofiler2 package we have at CRAN. This new R package will allow to make the same manhattan plot visualisations as the gprofiler website does.

ADD COMMENT
0
Entering edit mode

Interesting! Is there a vignette illustrating gProfileR2's functionality somewhere?

ADD REPLY
0
Entering edit mode

There is no vignette yet, but getting a first interactive visualisation is as simple as

gostres <- gost(query = c("Klf4", "Pax5", "Sox2", "Nanog"), organism = "mmusculus")
gostplot(gostres)

You can get a static image using gostplot(gostres, interactive = F) Check ?gostplot for more options to customize the plot.

And if you have chosen the functions you want to highlight, then you can generate a good quality image using the following commands:

p <- gostplot(gostres, interactive = FALSE)
publish_gostplot(p, highlight_terms = c("GO:0001010", "WP:WP1763"))
ADD REPLY
0
Entering edit mode

Welcome to Biostars and thank you for the contribution! Please use the formatting bar (especially the code option) to present your post better. You can use backticks for inline code (`text` becomes text), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.
code_formatting

ADD REPLY
0
Entering edit mode

Here is the link you can learn from. They have created a proper tutorial.

ADD REPLY

Login before adding your answer.

Traffic: 1199 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6