LinkOut PlugIn
The LinkOut plugin provides a mechanism to link nodes to external web resources within the Cytoscape viewer. Right-clicking on a node item in a Cytoscape view opens a popup menu with a list of web links. Selecting a link initiates a search at the specified website using the node label as the query term.
The external links are specified in the linkout.props file (included in the Cytoscape release?), which includes a number of default links such as NCBI PubMed, SGD, iHOP, Google, as well as a number of species-specific links. In addition to the default links, users can customize the LinkOut menu by adding (or removing) links even at runtime without the need to restart Cytoscape.
If you don't have the LinkOut plugin with your version of Cytoscape, you can download is from here: <TODO: attach jar>. LinkOut currently only works with Cytoscape version 2.3.
LinkOut properties format
External links are listed as ‘key’-‘value’ pairs where key specifies the name of the link and value is the search URL. The LinkOut menus are organized in a hierarchical structure that is specified in the key. All key terms start with the keyword url.
For example, the following entry: url.yeast.SGD=http://db.yeastgenome.org/cgi-bin/locus.pl?locus\=%ID%
places the SGD link under the yeast submenu. This link will appear in Cytoscape as:
attachment:Figure1_linkout.png
In a similar fashion one can added new submenus.
The %ID% string in the URL is a place-holder for the node label. When the popup menu is generated this marker is substituted with the node label. In the above example the generated SGD link for YIM protein is: url.yeast.SGD=http://db.yeastgenome.org/cgi-bin/locus.pl?locus\=YIM1
Currently there is no mechanism to check whether the constructed URL query is correct and if the node label is meaningful. Similarly there is no ID mapping between various identifiers. For example, a link to NCBI Entrez from a network that uses ensembl gene identifiers as node label will produce a link to Entrez using ensembl ID, which results in an incorrect link. It is the users responsibility to ensure that the node label that is used as the search term in the URL link will result in a meaningful link.
Adding new links
To add additional links open the linkout.props file in a text editor and add the new key=url links. The external links do not need to be listed in the order they appear in the LinkOut menu. The key string has to follow the format specified above including the URL prefix. To specify the URL launch an example query to a website and then copy the URL address of the result page.