Learn R Programming

RamiGO (version 1.18.0)

readAmigoDot: Parser for the GraphViz DOT format.

Description

Reads DOT file or takes the output of getAmigoTree (with picType="dot") and returns an AmigoDot S4 object with a graph, adjacency matrix, edges and leaves and also the annotation for the nodes.

Usage

readAmigoDot(object, filename)

Arguments

object
A newline separated string in DOT format (as returned by getAmigoTree).
filename
A .dot file in DOT format.

Value

An AmigoDot S4 object.

Examples

Run this code
## set GO ID's and color
goIDs <- c("GO:0051130","GO:0019912","GO:0005783")
color <- c("lightblue","red","yellow")

## get dot file / object
dd <- getAmigoTree(goIDs=goIDs,color=color,
  filename="example",picType="dot",saveResult=TRUE)

## parse file or object
#tt1 <- readAmigoDot(filename="example.dot")
tt2 <- readAmigoDot(object=dd)

## look at results
#show(tt1)
show(tt2)

Run the code above in your browser using DataLab