From 582e1d6c851e8acd26f188bdc9949f3ac557f32b Mon Sep 17 00:00:00 2001 From: kiramt Date: Wed, 2 Nov 2016 14:18:52 +0000 Subject: [PATCH] JAL-2282 Updated help documentation --- help/html/webServices/urllinks.html | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/help/html/webServices/urllinks.html b/help/html/webServices/urllinks.html index 0a4c650..1a1f0d0 100644 --- a/help/html/webServices/urllinks.html +++ b/help/html/webServices/urllinks.html @@ -28,7 +28,7 @@ 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 sequence URL links.

@@ -40,10 +40,10 @@

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 + href="../features/preferences.html">Jalview desktop + preferences, or specified as applet + parameters.
By default the item "EMBL-EBI Search" 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 @@ -51,9 +51,9 @@ 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 + token that can be replaced with a sequence ID or DB accession ID. The simplest token is "$SEQUENCE_ID$", which will be replaced by the chosen - sequence id when you click on it. + sequence id when you click on it.

eg.
UniRef100 = @@ -61,15 +61,16 @@ 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 + name. In this case, the $DB_ACCESSION$ 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). + the sequence ID for the sequence (since Jalview 2.10.1).

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 + expression/=$ or $DB_ACCESSION=/regular expression/=$. + In this case, the regular expression will be + applied to the full sequence ID or DB accession 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: -- 1.7.10.2