readAmigoDot: Parser for the GraphViz DOT format.

Description Usage Arguments Value Author(s) Examples

View source: R/readAmigoDot.R

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

1
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.

Author(s)

Markus Schroeder <mschroed@jimmy.harvard.edu>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 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)

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