SStructView 1.1 Tutorial Page
This page demonstrates the SStructView 1.1 Java applet, including JavaScript
compatibility.
SStructView is designed to display RNA secondary structures.
It reads coordinate information from a URL passed as an applet parameter,
displays the secondary structure, and allows the user to browse through
and select objects. This demo shows the 16s E. Coli secondary structure, with bases
2, 3 and 4 flagged, and bases 7-12 selected.
Basic Functionality
- Click and drag on white space to scroll the image.
- Click on a base to select it.
- Click and drag on a base to select a range. You can also
select a range by clicking on the first base in the range, then shift-clicking
on the last base in the range.
- Control-click on bases to select multiple, discontiguous bases (or to deselect a base).
- Right-click on a base several times (command-click on a Mac) to browse
through all the sets that this base belongs to. (This is done by cycling
through the selectionTypes -- see below).
ActionURLs: Linking SStructView to CGIs
In addition to displaying Secondary Structure graphics and selecting objects
of interest, SStructView allows you to send those selected objects to a CGI
that knows how to do something useful with that data. For example, you could
select a range of bases and send that range to a sequence alignment program that
compares it with similar sequences exist in a database.
To tell SStructView which CGI to use,
The "action-URL" parameter tells SStructView which CGI to use; the "action-desc"
parameter tells SStructView what to name the action button in the applet.
The action-URL must include one or more SStructView link variables.
The syntax of link variables in an actionURL is <--variablename&-->.
The above example uses the following parameters:
<PARAM NAME="action-URL" VALUE="http://smi-web.stanford.edu/cgi-bin/generic.pl?selection=<--SELECTION-->">
<PARAM NAME="action-desc" VALUE="Generic CGI">
Link variables tell SStructView how to package the user's selection so the
CGI can interpret it. For example, if the user selects the first 6 bases in the
E. Coli example above, the SELECTION link variable would be "1,2,3,4,5,6" and the
SUBSEQ-VAL link variable would be "AAAUUG". When the user clicks on the actionURL
button, SStructView scans the actionURL for any link variables and replaces them with
the current value. In our example, when the user clicked "Generic CGI", SStructView
would process the action-URL to generate and call the following URL:
http://smi-web.stanford.edu/cgi-bin/generic.pl?selection=AAAUUG
The SStructView demo page points to several web pages demonstrating CGI Linking through
ActionURLs.
SStructView JavaScript Support in 6 Easy Steps
v1.1 Beta Release :
v1.1 Home |
Tutorial |
Docs |
SStructView Paper |
SStructView Home
Last modified by RMF at 11:22 on 08/16/1993.