function newWindow(url) { window.open(url, "sideWin", 'toolbar=no,location=no,scrollbars=yes,resizable=yes') } function newWindow2(url) { window.open(url, "sideWin2", 'toolbar=yes,location=yes,scrollbars=yes,statusbar=yes,menubar=yes,resizable=yes,personalbar=yes') } function subgif(form, addEl) { form.elements[form.elements.length-1].name = addEl form.submit() } function printText(str){ var ie4 = (document.all) ? true : false; var nn4 = (document.layers) ? true : false; mydiv = (ie4) ? div1 : eval(document.who); if (ie4){ mydiv.innerHTML = str } else if (nn4) { layer = document.layers['layer1'] doc = layer.document; anchor = document.layerAnchor layer.x = anchor.x layer.y = anchor.y layer.visibility = "show" doc.open('text/html') doc.write(str) doc.close(); } }
       
SRS Users Manual
Introduction to SRS
SRS Sessions
Querying With SRS
Linking
  4.1  What is Linking?
  4.2  Picking a Linking Option
  4.3  Initiate A Linking Operation
    4.3.1  Link Whole Queries
    4.3.2  Multiple Entry Linking
    4.3.3  Linking a Single Entry
    4.3.4  Expression Linking
    4.3.5  Linking Operators
    4.3.6  Linking Examples
Views
Applications
Command Line SRS
The SRS Query Language 
4.3 Initiate A Linking Operation
  It is possible to initiate a linking operation from many pages, for example:
 
 
  • the "Results" page
  •  the "Entry List" page
  •  the "Entry" page
are just a few.
Link Whole Queries
  You can link an entire set from the "Entry List" page or from the "Results" page. To link from the "Entry List" page: do your query as normal, when the "Entry List" page appears click the "Link" button to bring up the "Linking" page. Finish the linking operation as you did in the previous example.

 There are two ways to link your queries from the "Results" Page. The most common is to select the checkbox that corresponds to a query set and click the "Link" button. This takes you to the "Linking" page where you specify the type of link to perform. The second option is to use the "Expression" box near the top of the "Results" page. This option is discussed later in the "Expression Linking" section.
 
 

Using the "Linking" Page:

 
  1. Select the query to link.
  • In the "Results" page you will see a listing of all the queries performed during the current session. See figure 3.
FIGURE 3. Select the Query to Link.
  1. Click the "Link" button.
  • This will bring up the "Linking" page.
  1. Pick the type of linking operation to perform.
  • See "Picking a Linking Option" earlier in this chapter.
  1. Choose the databanks to run the linking operation against.
  • Select the checkbox to the left of the databank name.
  1. Click the "Submit Link" button.
Multiple Entry Linking
  Link several entries from a query by selecting only the entries that you want to perform the linking operation on (or selecting the entries to exclude from the linking operation).
 
 

Linking "selected" entries from the "Entry List":

 
  1. Select all the checkboxes for the entries that you want to link.
  • The "Perform Operation" option is set to "On Selected" automatically when you begin selecting entries to link.
  1. Click the "Link" button.
  • This will bring up the "Linking" page.
  1. Choose a linking operation (or use the default option).
  • See the "Picking a Linking Option" section earlier in this chapter.
  1. Select the databanks.
  2. Click the "Submit Links" button.

Linking "all but selected" entries from the "Entry List":

You can also link most of the entries in a set, just select the ones that you do not want included in the linking operation and change the "Perform Operation" selection to "on all but selected".
 
 
  1. Select all the checkboxes for the entries that you do not want included in the linking operation.
  2. Set the "Perform Operation" option to "on all but Selected".
  3. Click the "Link" Button.
  4. Pick the type of linking operation.
  5. Select the databanks.
  6. Click the "Submit Links" button.
Linking a Single Entry
  Before you can link a single entry you need to bring up the "Entry" page for that entry.
 
 
  1. Click the "Results" tab.
  2. Choose the set that contains the entry you want to link.
  3. Select the checkbox to the left of the query set.
  4. Click the "View" button.
  • This will bring up the "Entry List" page for the query set.
  1. Click the hyperlink for the entry that you want to link.
  • This will bring up the "Entry" page. See figure 4.
FIGURE 4. Link the entry.
To link a single entry from the Entry Page (once the "Entry" page is displayed):
 
 
  1. Click the "Link" button.
  • This brings up the "Single Entry Linking" page. See figure 5.
FIGURE 5. Linking a single entry.
  1. Select the databanks to perform the linking operation on.
  2. Click the "Submit Link" button.
You do not have the options with a link from the "Entry" page that you have when you link a single entry from a list of entries or when you link a complete set of entries. You are limited to linking the entry to other databanks.
Expression Linking
  If you want to link between two sets of results, a set of DNA sequences in "Q1" and a set of protein sequences in "Q2", for example, you would use the "Expression" box. 

The question you are asking might be, are there any links between' 

 
"Q1 and Q2"
If there are links between entries in the queries you have the choice of having the entries in "Q1" that are linked to "Q2" returned as the results or of having the entries in "Q2" that are linked to "Q1" returned as the results.

 The "Expression" box is shown in figure 6. Enter your expression in the textarea as is indicated in step 4 below.

FIGURE 6. Expression Linking.
To link complete query sets using the "Expression" box:
 
 
  1. Key in the name of the query set to link.
 
"Q1"
  1. Specify the type of query (See example below).
  2. Specify the databank or second query that the set should link to.
 
"Q2"
  1. Click the "Query Expression" button.
 
"Q1 < Q2" 
  • will list all the entries in "Q1" that are linked to "Q2".
 
"Q1 > Q2"
  • will list all the entries in "Q2" that are linked to "Q1".
Linking Operators
  The linking operators are explained here:
 
 
<
Entries to the left of the operator are returned in the "Results List" if they have a link to any entries in the set or databank to the right of the operator.
>
Entries to the right of the operator are returned in the "Results List" if they have a link to any entries in the set or databank to the left of the operator.
You can also use the query operators, as is shown in the following table, with a linking operation. For example, "Q1 < Q2 & Q3" will return a set of entries from "Q1" that have links to "Q2" and "Q3".
TABLE 4.1 Linking operations.
Operators
Example
Returns Entries in:
< "Q1 < Q2" "Q1" that have link to "Q2".
& "Q1 < Q2 & Q3" "Q1" that link to "Q2" and "Q3".
| "Q1 < Q2 | Q3" "Q1" that link to "Q2" or "Q3".
! "Q1 < Q2 ! Q3" "Q1" that link to "Q2" but not "Q3".
> "Q1 > Q2" "Q2" that have link to "Q1".
Linking Examples
  Linking through the "Expression" box is a powerful alternative to the standard linking methods discussed earlier. In addition to linking between queries you can use the "Expression" box to check for databank links without going through the "Linking" page.

 If you have a set of EMBL entries in "Q1" that you want to link with SWISS-PROT, type:
 
 

 
"Q1 < SWISS-PROT" 
To see the EMBL entries from the original query that have links to SWISS-PROT.
If you would rather see the SWISS-PROT entries that the above operation returned turn the link around, like this:
 
 
 
"Q1 > SWISS-PROT" 
which returns the SWISS-PROT entries that have links with the entries in the "Q1" set.
SRS 6.0.7.3