How to visualize GSEA results in a graph using R
2
0
Entering edit mode
5.0 years ago
francesca3 ▴ 150

Hi everyone, I'm new with bioinformatics. I just ran the GSEA analysis for different conditions and now I want to visualize the results plotting them in a graph together that shows the NES like a circle. The size of the circle should be proportional to the FDR and the color should be red if NES is negative or green if the NES is positive. How can I do?

Thanks Francesca

RNA-Seq R gsea • 8.7k views
ADD COMMENT
0
Entering edit mode

Please provide representative output, with just words it is difficult to imagine what you aim to plot.

ADD REPLY
0
Entering edit mode

Hi, sorry if I reply just now but I had some problems. I found wery useful the answer of zhao03. I wanted something like this https://i.stack.imgur.com/qfEYh.png

Thank you the same :)

ADD REPLY
1
Entering edit mode
5.0 years ago
zhao03 ▴ 70

ggplot2 R packages can plot the figure, like this :ggplot(pathway, aes(x=NES, y=Pathway, size=FDR,color=-1*log10(FDR))) + geom_point()+scale_size_area(max_size = 5)+scale_colour_gradient(low="green",high="red")

ADD COMMENT
0
Entering edit mode

Sorry if I reply just now, but I had some problems. I want to thank you because your solution worked well. I just had to adjust something. The script that was good for me was this one : ggplot(pathway, aes(x="Name of sample", y=Pathway, size=FDR,color=NES)) + geom_point()+scale_size_area(max_size = 5)+scale_colour_gradient(low="green",high="red") Thanks to you and to all the others who replied!

ADD REPLY
0
Entering edit mode
5.0 years ago

Have a look at the igraph package and this tutorial on network visualization with R which uses igraph.

ADD COMMENT

Login before adding your answer.

Traffic: 2698 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