Using Views

   
 

See "Views" - Chapter 5 for more information.

SRS allows you to customize the way in which you display data. This is usually done using the View Manager pages, although simple view creation is also possible from both of the Query Forms (see section "Creating Views from the Query Forms").

Creating a View

   
  This example explains how to create a table view that can be used for SWISS-PROT, and for which links to EMBL should be shown.

  1. Click the Custom Views tab to display the View Manager page 1. On this page you can select databanks and choose a name for your customized view. See Figure 1.11
  2. Give your view a name by typing it in the View name box. This example uses the name myTestView.
  3. Use the Display results as options to indicate whether you want to create a table or list view.
  4. In the Show fields from: options, indicate whether you want to be able to select fields from all of those available for your chosen databanks, or only common fields.
  5. In the list under Databanks to define a view for, click SWISSPROT to select it.
  6. In the list under Databanks to be linked to click EMBL.

 
Figure 1.11 Create your own views (Steps - ).

  1. Click the button to display the View Manager page 2 from which you can select the fields for your views (see Figure 1.12 ).
  2. Choose the fields you want to view by ticking the check boxes beside them. For the purpose of this example, select the Description field for both databanks.
Note: The field names are also hyperlinks to the Field Information page (see also section "Information Pages - Field Information" in the Online Help ), which contains information about each field.

 
Figure 1.12 View Manager page 2.

  1. Click the in the Create View Options box to save your view. Your view will be saved and you will be returned to the View Manager page 1, where you can create more views.
Your saved views will be added to the drop-down list in the Results Display Options: box, and can be applied to your results in the same way that any other view is applied (see section "Applying a View").

Applying a View

   
  This section demonstrates how to apply a view to your results. The example uses the view created in section "Creating a View", but can equally refer to any other view in the drop-down list.

  1. Click the Results tab to get to the Manage your Query Results page.
  2. Choose a set of results that you wish to view, e.g. by ticking the check box beside them (on the Manage your Query Results page). See Figure 1.13 Tick the check box beside the query labelled Q1. This was the first query you made (hence Q1).
  3. Select myTestView from the drop-down list in the Results Display Options box.

 
Figure 1.13 View a set of results using your own view.

  1. Click the button to display the query result set, Q1, using myTestView. The entries in Q1 will be displayed using the view you selected.

 
Figure 1.14 Query Result page showing typical SWISS-PROT entries and any linked EMBL entries, shown using myTestView.

If you cannot see any entries with links, try looking for the entry for which you found the original link. If you had to try linking to a databank other than EMBL, you may want to create a view that will show SWISS-PROT and your chosen databank, rather than SWISS-PROT and EMBL. (Do not worry, at this stage, if you cannot find your result.)

Deleting a View

   
  If you no longer need a view, you can delete it.

  1. From the View Manager page 1 (use the Custom Views tab to get there) select the view you want to delete, e.g. myTestView.

 
Figure 1.15 Selecting a view to delete.

  1. Click the button.