The Graphviz Viewer uses the open source Graphviz package to draw parts of an OBO-Edit ontology as a graph (as opposed to the standard tree view).
Graphviz is an independent, external application that does not come with OBO-Edit. It must be installed separately for the Graphviz Viewer to work.
Graphviz is available from http://www.graphviz.org/ for MacOSX, Linux and Windows. Note that if you have MacOSX 1.6 (Snow Leopard) or earlier, the version at http://www.pixelglow.com/graphviz/ will probably work better.
This Viewer requires a fair amount of configuration to get it to work. See the Viewer Configuration section below to learn how to get started.
Start the Graphviz Viewer by selecting it from the "Viewers" menu. When correctly configured, the Graphviz Viewer looks like this:
The picture in the center is generated by Graphviz, based on the current selection in the ontology tree editor panel. Terms are represented by term names enclosed in a filled shape (the particular shape is user-configurable). The arrows represent relationships between terms. Clicking a term name on the graph image will cause that term to become the main OBO-Edit selection.
The "Save Graph" button allows the current graph image to be saved as a JPEG or GIF file.
Graphviz is available for Windows and Linux from http://www.graphviz.org. Graphviz is also packaged with some Linux distributions, such as Suse Linux. Linux users should try to use the version of Graphviz that comes with their distribution if possible to avoid compatibility problems.
Mac users should download Graphviz 1.13 (version 16) from http://www.pixelglow.com/graphviz/. Download the dmg version. You will see a folder that includes the Graphviz icon; drag this into your Applications folder.
The heart of Graphviz is a tiny program called "dot". This is the program that OBO-Edit uses to create Graphviz displays.
To set the path, click the little wrench/spanner icon on the Graphviz Viewer. When the configuration window appears, click the "Behavior" tab.
Type the path to the "dot" utility into the box labeled "Application path", or use the "Browse..." button to locate the "dot" file on disk. The default locations for the dot utility on various platforms are:
The Graphviz Viewer should now be working!
To configure the Graphviz Viewer, click the wrench/spanner icon in the Graphviz titlebar:
Once the configuration options have been set, click the tick icon to accept the changes.
Each tab at the top of the screen provides access to a different screen of configuration information:
The first tab shows font configuration options. A font configuration control consists of three dropdown boxes. The first lists the available font family names. The second specifies the font size in points. The font size can be chosen from the dropdown list, or a value can be typed directly into the text box. The third dropdown allows the font style (normal, bold, italic or bold-italic) to be selected.
There may be fonts installed on your system that do not appear on this screen. OBO-Edit only displays scalable fonts that are accessible by Java, because these are the fonts most likely to be usable by Graphviz.
The first font selection control specifies the font that will be used to display the relationship type name labels on links.
The second font selection control specifies the font that will be used to display term names.
The colors tab controls the colors in the graph image:

The list on the left contains the names of all the configurable colors. The first 10 color options are the same in every ontology; these are called named colors. The rest of the options specify special coloring for links with different relationship types. These are called link colors, and the available link colors vary depending on which relationship types exist in an ontology.
To specify a named color, left-click the color name in the list, and choose a color using the color chooser to the right. The available named colors are:
There is a link color item for every relationship type in the ontology. When a relationship type is selected, a two-part color selector appears on the right:

The first tab selects the link label color. The second tab selects the link arrow color.
The shapes tab controls the shapes in which terms, relationship types and obsolete items are enclosed:

There are three dropdowns that control the outline shape for terms, obsoletes, and relationship types. The available shapes are:







The Behavior tab lets you set the Graphviz application path and other options:

The application path specifies the location of the Graphviz "dot" utility (see "getting started" for more information).
When the Graphviz Viewer displays a graph, a temporary image file is generated on the disk. The "Default display format" dropdown specifies the image format for this temporary file. The options are "jpg" and "gif". If "jpg" is selected, the images will be generated slightly faster and take up slightly less room on the disk. If "gif" is selected, the images will be clearer looking.
Normally, Graphviz draws graphs with the roots on the bottom of the image. Click the "Draw graph with root on top" checkbox to make OBO-Edit trick Graphviz into putting the root nodes on top.