exportCytoGML: Writes out an igraph graph to a Cytoscape readable GML file.

Description Usage Arguments Author(s) Examples

View source: R/exportCytoGML.R

Description

Takes the igraph object edited in adjM2gml() and writes it to a GML file that is readable by Cytoscape.

Usage

1
exportCytoGML(graph, filename)

Arguments

graph

igraph graph (for example from adjM2gml()).

filename

output filename.

Author(s)

Markus Schroeder <mschroed@jimmy.harvard.edu>

Benjamin Haibe-Kains <bhaibeka@jimmy.harvard.edu>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## set GO ID's and color
goIDs <- c("GO:0051130","GO:0019912","GO:0005783")
color <- c("lightblue","red","yellow")

dd <- getAmigoTree(goIDs=goIDs,color=color,
  filename="example",picType="dot",saveResult=FALSE)
tt <- readAmigoDot(object=dd)

## exportCytoGML is called inside adjM2gml
#adjM2gml(adjMatrix(tt),relations(tt)$color,
#  annot(tt)$fillcolor,annot(tt)$GO_ID,
#  annot(tt)$description,"example")

RamiGO documentation built on May 2, 2018, 3:30 a.m.