Exporting cnetplot and emapplot to cytoscape
0
0
Entering edit mode
4.0 years ago

Hey guys, I'm trying to export the graphical results of cnetplot (clusterProfiler, ReactomePA) to external platforms (such as Cytoscape). Despite I've generated the data, I have no idea how can I straightforward do a similar figure since the results don't present the source and target information to get the network. Thank you for your help!

R clusterProfiler ReactomePA • 2.2k views
ADD COMMENT
0
Entering edit mode

Did you try the recommendation from the package author? While the documentation is often less clear than one would hope for, I think, this is the piece that they were referring to:

library(igraph)
Edata <- as.data.frame(get.edgelist(g))
Edata$edgewidth <- E(g)$width
Vdata <- data.frame(pathway=V(g)$name, color=V(g)$color)
 map_data <- list(edge_data=Edata, vertex_data=Vdata)

That snippet is taken from a legacy github repo for doseplot; I'm not 100% sure how to generate the object named g; my hope would be that enricher() or the other functions (e.g. enrichGO) produce objects that are compatible with this.

ADD REPLY
0
Entering edit mode

Have you managed to find a solution? I am trying to do the same thing but haven't found a reproducible way yet!

ADD REPLY

Login before adding your answer.

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