X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=help%2Fhtml%2FwebServices%2Furllinks.html;h=a6c8dce00a3020230da098f229befb3c2133223b;hb=93642d621a7f86318a7777b0a70f6113dcd299dc;hp=e18e273bc6e63d17a8266460e4a4915b193850f3;hpb=6ab4ef1cc71ff9d28a21a139db69e4a8351a3fb5;p=jalview.git diff --git a/help/html/webServices/urllinks.html b/help/html/webServices/urllinks.html index e18e273..a6c8dce 100644 --- a/help/html/webServices/urllinks.html +++ b/help/html/webServices/urllinks.html @@ -1,3 +1,20 @@ +#------------------------------------------------------------------------------- +# Jalview - A Sequence Alignment Editor and Viewer (Version 2.5.1) +# Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle +# +# This file is part of Jalview. +# +# Jalview is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +# +# Jalview is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty +# of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along with Jalview. If not, see . +#------------------------------------------------------------------------------- + +Opening URLs from Jalview + + +

+

Opening URLs from Jalview
+Both the applet and the desktop application are able to open URLs as +'popups' in your web browser.
+Double-clicking on the ID of a sequence will open the first URL that can +be generated from its sequence ID. This is often the SRS site, but you +can easily configure your own Configuring URL Links +
URL links are defined in the "Connections" tab of the Jalview desktop preferences, or +specified as applet +parameters.
+By default the item "SRS" is added to this link menu. This +link will show a web page in your default browser with the selected +sequence id as part of the URL.
+In the preferences dialog box, click new to add a new +link, and edit to modify an existing link, or delete +to remove it.
+You can name the link, this will be displayed on a new menu item under +the "Link" menu when you right click on a sequence id.
+The URL string must contain a token that can be replaced with a sequence +ID. The simplest token is "$SEQUENCE_ID$", which will be +replaced by the chosen sequence id when you click on it.

+

eg.
+UniRef100 = +http://www.ebi.uniprot.org/uniprot-srv/uniRefView.do?proteinAc=$SEQUENCE_ID$&library=uniref100
+Swissprot = http://www.expasy.org/uniprot/$SEQUENCE_ID$
+
+Links will also be made for any database cross references associated +with the sequence where the database name exactly matches a URL link +name. In this case, the $SEQUENCE_ID$ string will be replaced with the +accession string for the database cross-reference, rather than the +sequence ID for the sequence (since Jalview 2.4).

+

Regular Expression Substitution
+A url may contain a string of the form $SEQUENCE_ID=/regular +expression/=$. In this case, the regular expression will be applied to +the full sequence ID string and the resulting match will be inserted +into the URL. Groups of parentheses can be used to specify which regions +of the regular expression will be used to generate the URL: +

+

+

+ +