Description Usage Arguments Value Author(s) Examples
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.
1 | readAmigoDot(object, filename)
|
object |
A newline separated string in DOT format (as returned by getAmigoTree). |
filename |
A .dot file in DOT format. |
|
An AmigoDot S4 object. |
Markus Schroeder <mschroed@jimmy.harvard.edu>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.