Updated .project and .gitignore after import to eclipse
[jalview-manual.git] / TheJalviewTutorial.tex
index 6e3c0db..f581b76 100644 (file)
@@ -27,7 +27,7 @@
 \newtheorem{definition}{Definition}
 
 
-\title{Jalview 2.5: A manual and introductory tutorial }
+\title{Jalview 2.10.3: A manual and introductory tutorial }
 \author{David Martin, James Procter, Andrew Waterhouse, Saif Shehata, Nancy Giang,Suzanne Duce and Geoff Barton}
 \date{Manual version 1.2.3 6th May 2011}
 
@@ -74,7 +74,7 @@ Exercise \theecount  :  #1  }
 
 {\Huge
  
-Jalview 2.10.1}
+Jalview 2.10.3}
 \vspace{0.5in}
 {\huge 
 
@@ -106,7 +106,7 @@ Manual Version 1.9.1
 % draft. Remaining items are AACon, RNA visualization/editing and Protein disorder analysis exercises.
 
 
-10th November 2017
+21st November 2017
 
 
 \end{center}
@@ -248,7 +248,7 @@ Keystroke combinations are denoted with a `-' symbol ({\em
 e.g.} [CTRL]-C means press [CTRL] and the `C' key simultaneously).
 
 Menu options are given as a path from the menu
-that contains them - for example {\sl File $\Rightarrow$ Input Alignment
+that contains them. For example {\sl File $\Rightarrow$ Input Alignment
 $\Rightarrow$ From URL} means to select the `From URL' option from the `Input
 Alignment' submenu of a window's `File' dropdown menu.
 
@@ -358,7 +358,7 @@ Jalview windows automatically load.}
 \exstep {If
 you are having trouble, it may help changing the browser you are using, as the browsers and
 its version may affect this process.}
-\exstep{To deactivate the opening of the 4 demo sequences during the launch, go
+\exstep{To disable opening of the demonstration project during the launch, go
 to the {\sl Tools $\Rightarrow$
 Preferences...} menu on the desktop. A `Preference'
 dialog box opens, untick the box adjacent to the `Open file' entry in the
@@ -370,17 +370,20 @@ The example alignment should not be loaded as Jalview starts up.}
 \exstep{To reload the original demo file select the
 {\em File$\Rightarrow$ From URL} entry in the Desktop menu. Click on
 the URL history button (a downward arrow on the right hand side of the dialog
-box) to view the files, select exampleFile\_2\_7.jar, then click {\sl OK}.}
-{\bf Note:} Should you want to load your own
-sequence during the launch process, then go
+box) to view the files, select exampleFile\_2\_7.jar
+(\url{http://www.jalview.org/examples/exampleFile_2_7.jar}) 
+then click {\sl OK}.}
+\begin{list}{$\circ$}{\newline
+  \newline {\bf
+  Notes}}
+  
+\item {To make Jalview display a different alignment when it is launched, then go
 to the {\sl Tools $\Rightarrow$
-Preferences...} menu on the desktop. The tick the `Open file' entry of `Visual'
-preferences tab, type in the URL of the sequence you want to load.
-
-
-As the jalview.jnlp file launches Jalview on your desktop, you
-may want to move this from the downloads folder to another folder.
-Opening from the jnlp file will allow Jalview to be launched offline.
+Preferences...} menu on the desktop. Then tick the `Open file' entry of `Visual'
+preferences tab, type in the URL of the sequence you want to load.}
+\item {You may want to move the jalview.jnlp file from your {\bf downloads} to another folder.}
+\item {Opening Jalview via the jnlp file will also allow Jalview to be launched offline.}
+\end{list}
 
 {\bf See the video at:
 \url{http://www.jalview.org/Help/Getting-Started}.}
@@ -407,7 +410,7 @@ the `search' tab and enter keywords in the box which appears.
 
 \subsubsection{Email Lists}
 
-The Jalview Discussion list {\tt jalview-discuss@jalview.org} provides a forum
+The Jalview Discussion list ({\tt jalview-discuss@jalview.org}) provides a forum
 for Jalview users and developers to raise problems and exchange ideas - any
 problems, bugs, and requests for help should be raised here. The {\tt
 jalview-announce@jalview.org} list can also be subscribed to if you wish to be
@@ -452,9 +455,9 @@ scroll bars will not be visible.
  Each alignment view shown in the alignment window presents a window onto the
  visible regions of the alignment. This means that with anything more than a few
  residues or sequences, alignments can become difficult to visualize on the
- screen because only a small area can be shown at a time. It can help,
- especially when examining a large alignment, to have an overview of the whole
- alignment. Select {\sl View $\Rightarrow$ Overview Window} from the Alignment
+ screen because only a small area can be shown at a time. Here, it helps, to
+ have an overview of the whole alignment, especially when it is large.
+ Select {\sl View $\Rightarrow$ Overview Window} from the Alignment
  window menu bar (Figure \ref{overview}\footnote{the menu shown in this figure
  is from Jalview 2.2, later versions have more options.}).
 % (Figure4)
@@ -515,6 +518,7 @@ expressions that can be used with it.
 %TODO insert a figure for the Find dialog box
 
 \exercise{Navigation}{
+\label{navigationEx}
 Jalview has two navigation and editing modes: {\bf normal} mode (where editing
 and navigation are via the mouse) and the {\bf cursor} mode (where editing and
 navigation are via the keyboard).
@@ -544,8 +548,8 @@ column 13 by typing {\bf 1 3 , 5} [RETURN].}
 
 {\bf Note:} To view Jalview's comprehensive on-line help documentations select
 {\sl Help} in desktop menu, clicking on {\sl Documentation} will open a
-Documentation window. Select topic from the navigation panel on the left hand side or use the
-Search tab to select specific key words.
+Documentation window. Select topics from the navigation panel on the left hand
+side and use the Search tab to locate specific key words.
 
 {\sl\bf See the video at: 
 \url{http://www.jalview.org/Help/Getting-Started}.}
@@ -645,16 +649,17 @@ and the PDB. Jalview's sequence fetching capabilities allow you to avoid having
 manually locate and save sequences from a web page before loading them into
 Jalview. It also allows Jalview to gather additional metadata provided by the
 source, such as annotation and database cross-references.
-Select {\sl File $\Rightarrow$ Fetch Sequence(s) \ldots} from the main menu and
-a window will appear (Figure \ref{loadseq}). Pressing the database selection
-button in the dialog box opens a new window showing all the database sources
-Jalview can access (grouped by the type of database). Once you've selected the
-appropriate database, hit OK close the database selection window, and then enter
-one or several database IDs or accession numbers separated by a semicolon and
-press OK. Jalview will then attempt to retrieve them from the chosen database.
-Example queries are provided for some databases to test that a source is
-operational, and can also be used as a guide for the type of accession numbers
-understood by the source.
+
+To begin retrieving data, select {\sl File $\Rightarrow$ Fetch Sequence(s) \ldots} 
+from the main menu. A window will then appear (Figure \ref{loadseq}) showing all 
+the database sources Jalview can access (grouped by the type of database). Once 
+you've selected the appropriate database by double clicking it or hitting OK, the 
+database selection window will close and the sequence fetcher for that database 
+will appear. You can then enter one or several database IDs or accession numbers 
+separated by a semicolon and press OK. Jalview will then attempt to retrieve them 
+from the chosen database. Example queries are provided for some databases to test
+that a source is operational, and can also be used as a guide for the type of 
+accession numbers understood by the source.
 % [fig 9]
 \begin{figure}[htbp]
 \begin{center}
@@ -698,6 +703,7 @@ $\Rightarrow$ Input Alignment $\Rightarrow$ From File} from the desktop menu.
 Select the file and click {\sl OK} to load.}
 
 \exstep{{\bf Loading sequences by `Drag and Drop' / `Cut and Paste':}
+
 (i) Drag the alignment.fa file that you have just saved from its folder and
 drop it onto the Jalview desktop window, the alignment should open.
 
@@ -718,10 +724,12 @@ window, with cDNA and protein linked?' select `Split Window' option. A
 split window opens in the Jalview desktop.
 }
 
-\exstep{{\bf The text editor:} (i) Open the alignment.fa file using text editor.
+\exstep{{\bf The text editor:} 
+
+(i) Open the alignment.fa file using text editor.
 Copy the sequence text into the clipboard  using [CTRL]-A and then [CTRL]-C.
 
-(ii) Place the mouse on the Jalview desktop and right-click the mouse
+(ii) Move the mouse pointer onto the Jalview desktop window's background and right-click 
 to open the context window. Select the {\sl Paste to New Window} menu option.
 
 (iii) In the Jalview desktop menu, select {\sl File
@@ -814,15 +822,15 @@ The alignment can then be pasted into any application of choice, e.g. a word pro
 }
 \exstep{Ensure at least one alignment window is active in Jalview. Open the
 overview window {\sl View $\Rightarrow$ Overview Window}
- and scroll red box to any part of the alignment.
+ and click and drag to move the red box to any part of the alignment.
 Select {\sl File
 $\Rightarrow$ Save Project} from the main menu and save the project in a
 suitable folder.}
 
 \exstep{Close all windows and then load the project {\sl via} the {\sl File
-$\Rightarrow$ Load Project} menu option. Observe how many of the windows are as they were when they were saved. } 
-{\bf See the video at: \url{http://www.jalview.org/Help/Getting-Started}.}
-}
+$\Rightarrow$ Load Project} menu option. Observe how many of the windows
+reopen. Are they the same as when they were saved ? } {\bf See the video at:
+\url{http://www.jalview.org/Help/Getting-Started}.} }
 
 
 \chapter{Selecting and Editing Sequences }
@@ -889,9 +897,8 @@ selection. }
 \end{figure}
 
 To select multiple complete sequences, click and drag the mouse down the
-sequence ID panel. The same techniques as used for columns (above) can be used
-with [SHIFT]-Click for continuous and [CTRL]-Click (or
-[CMD]-Click for Mac) to select discontinuous
+sequence ID panel. The same techniques can be used as for columns above ([SHIFT]-Click for continuous and [CTRL]-Click {\sl (Or
+[CMD]-Click for Mac)}) to select discontinuous
 ranges of sequences (Figure \ref{selectrows}).
 %[fig 14]
 
@@ -994,10 +1001,10 @@ to include newly selected sequences, and the Percentage Identity colouring chang
 \exstep{ Another way to resize the group is by using the mouse to click and drag
 the right-hand edge of the selected group.}
 
-\exstep{The current selection can be exported and saved by right clicking the
-mouse when on the text area to open the Sequence ID context menu. Follow the
-menus and pick an output format (eg BLC) from the {\sl Selection $\Rightarrow$ Output to Textbox
-\ldots} submenu.
+\exstep{The current selection can be exported and saved, place mouse on the text
+area and right clicking the mouse to open the Sequence ID context menu.
+Select appropriate menu option and pick an output format (eg BLC) from the
+{\sl Selection $\Rightarrow$ Output to Textbox \ldots} submenu.
 }
 \exstep{In the Alignment output window that opens, try manually editing the
 alignment before clicking the {\sl New Window} button. This opens the
@@ -1028,6 +1035,7 @@ position on pressing the $\uparrow$ key.}
 \end{figure}
 
 \exercise{Reordering the Alignment}{
+\label{reorderex}
 \exstep{Close windows.
 
 Load the ferredoxin alignment ({\bf PF03460} from {\bf PFAM (seed)}).
@@ -1093,6 +1101,7 @@ Note, any alignment edits that affect the sequence will also affect the whole
 sequence group.
 
 \exercise{Hiding and Revealing Regions}{
+\label{hidingex}
 \exstep{Load the ferredoxin alignment ({\bf PF03460} from {\bf PFAM (seed)}).
 }
 \exstep{Select a contiguous set of sequences by clicking and dragging on the sequence ID panel.
@@ -1187,7 +1196,9 @@ leftwards whilst holding down [SHIFT] (for single sequences) or [CTRL] (for a gr
 \exercise{Editing Alignments}
   %\label{mousealedit}
 % TODO: VERIFY FOR 2.6.1 and 2.7 - NUMBERING/INSTRUCTIONS APPEAR OFF
-{You are going to manually reconstruct part of the example Jalview
+{
+\label{editingalignex}
+You are going to manually reconstruct part of the example Jalview
 alignment available at
  \href{http://www.jalview.org/examples/exampleFile.jar}
  {http://www.jalview.org/examples/exampleFile.jar}.
@@ -1288,7 +1299,9 @@ right of the selected residue.
 
 
 \exercise{Keyboard Edits}
-{This continues on from the previous exercise, and recreates the final part of the example ferredoxin
+{
+\label{keyboardsex}
+This continues on from the previous exercise, and recreates the final part of the example ferredoxin
 alignment from the unaligned sequences using Jalview's keyboard editing mode.
 
 {\bf Window users:} Please {\em only use} [SHIFT]-[SPACE] in this
@@ -1586,7 +1599,11 @@ toggled off by going to {\sl View  $\Rightarrow$ Show Sequence Features}.
 
 
 \exercise{User Defined Colour Schemes}{
-\exstep{Load a sequence alignment. Select the alignment menu option {\sl Colour $\Rightarrow$ User Defined}. A dialog window will open.}
+\label{colouex}
+\exstep{Load a sequence alignment. Ensure that the {\sl Colour  $\Rightarrow$
+None} is selected. Select the alignment menu option {\sl Colour $\Rightarrow$
+User Defined}.
+A dialog window will open.}
 \exstep{Click on an amino acid button, then select a colour for that amino acid. Repeat till all amino acids are coloured to your liking.}
 \exstep{ Insert a name for the colourscheme in the appropriate field and click {\sl Save Scheme}. You will be prompted for a file name in which to save the colour scheme. The dialog window can now be closed.}
 \exstep{The new colour scheme appears in the list of colour schemes in the {\sl Colour} menu and can be selected in future Jalview sessions.
@@ -1622,7 +1639,7 @@ simultaneously in their own separate windows. To delete a group, press [CTRL]-W.
 Jalview provides two screen layout modes, unwrapped (the default) where the alignment is in one long line across the window, and wrapped, where the alignment is on multiple lines, each the width of the window. Most layout options are controlled by the Format menu option in the alignment window, and control the overall look of the alignment in the view (rather than just a selected region).
 
 \subsubsection{Wrapped Alignments}
-Wrapped alignments can be toggled on and off using the {\sl Format $\Rightarrow$ Wrap} menu option (Figure \ref{wrap}). Note that the annotation lines are also wrapped. Wrapped alignments are great for publications and presentations but are of limited use when working with large numbers of sequences. 
+Wrapped alignments can be toggled on and off using the {\sl Format $\Rightarrow$ Wrap} menu option (Figure \ref{wrap}). Note that the annotation tracks are also wrapped. Wrapped alignments are great for publications and presentations but are of limited use when working with large numbers of sequences. 
 
 If annotations are not all visible in wrapped mode, expand the alignment window to view them. Note that alignment annotation (see Section \ref{featannot}) cannot be interactively created or edited in wrapped mode, and selection of large regions is difficult. 
 \begin{figure}[htbp]
@@ -1688,8 +1705,8 @@ Show Annotations} from the alignment window menu. Reveal the annotations by sele
 annotation row labels to bring up the context menu, then select {\sl
 Hide This Row}. Bring up the context menu again and select {\sl
 Show All Hidden Rows} to reveal them.}
-\exstep{Annotations can be reordered by clicking and dragging the row to the desired position. Click on the {\sl Consensus} row and drag it upwards to just 
-above {\sl Quality}. The rows should now be reordered. Features and annotations are covered in more detail in Section \ref{featannot}.}
+\exstep{Annotations can be reordered by clicking on the sequence name and
+dragging the row to the desired position. Click on the {\sl Consensus} row and drag it upwards to just above {\sl Quality}. The rows should now be reordered. Features and annotations are covered in more detail in Section \ref{featannot}.}
 \exstep{Move the mouse to the top left hand corner of the annotation labels - 
 a grey up/down arrow symbol should appear - when this is shown, the height of the {\sl Annotation Area} can be changed 
 by clicking and dragging this icon up or down.}
@@ -1724,6 +1741,7 @@ For submission of alignment figures to journals, please use EPS\footnote{If the
 \parbox[c]{3.5in}{\centerline{\includegraphics[width=3in]{images/image_png.pdf}} \par \centerline{Zoom Detail of PNG image.}}
 
  \exercise{Graphical Output}{
+ \label{graphicex}
 \exstep{Load the example Jalview Jar file in Exercise \ref{exscreen}. 
 Customise it how you wish but leave it unwrapped. 
 Select {\sl File $\Rightarrow$ Export Image $\Rightarrow$ HTML} from the alignment menu. 
@@ -1903,7 +1921,7 @@ calculations can be found in the on-line documentation.
 \exercise{Annotating Alignments}{
   \label{annotatingalignex}
 \exstep{Load the alignment at \textsf{http://www.jalview.org/tutorial/alignment.fa}. 
-Right-click on the {\sl Conservation} annotation row to
+Right-click on the label name of the {\sl Conservation} annotation row to
 bring up the context menu and select {\sl Add New Row}. A dialog box will
 appear asking for {\sl Annotation Name} and {\sl Annotation Description}.
 Enter ``Iron binding site" and click {\sl OK}. A new, empty, row appears.
@@ -1936,30 +1954,30 @@ dialog box that will open, select the Jalview format and click the {\sl [To Text
 and find the ``Annotations File Format'' entry in the ``Alignment Annotations'' section of the contents 
 pane.) }
 
-\exstep{Export the file to a text editor and edit the file to change the name of the annotation 
-row. Save the file and drag it onto the alignment view.}
-\exstep{Add an additional helix somewhere along the row by editing the file and 
-re-importing it.
-
+\exstep{Open a text editor and copy the annotation text into the editor.
+Edit the text by changing the name of the annotation row and save the file.}
+\exstep{Drag the file onto the alignment in Jalview and check the annotation
+panel.} \exstep{Return to the text editor, add an additional helix somewhere
+along the row, save the file and re-importing it into Jalview as previously.
 {\sl Hint: Use the Export Annotation function to view what helix annotation looks like in 
 a Jalview annotation file.}}
 \exstep{Use the {\sl Alignment Window $\Rightarrow$ File $\Rightarrow$ Export Annotations...} 
-function to export all the alignment's annotation to a file.}
+function to export all the alignment's annotation to a file. Save the file.}
 \exstep{Open the exported annotation in a text editor, and use the Annotation File Format 
 documentation to modify the style of the Conservation, Consensus and Quality annotation rows so 
 they appear as several lines on a single line graph.
-
 {\sl Hint: You need to change the style of annotation row in the first field of the annotation 
-row entry in the file, and create an annotation row grouping to overlay the three quantitative 
-annotation rows.}
+row entry in the file. Create an annotation row grouping to overlay the
+three quantitative annotation rows.}
 }
-\exstep{{\bf Homework for after you have completed exercise \ref{secstrpredex}:}
+\exstep{{\bf Homework once you have completed exercise
+\ref{secstrpredex}:}
 \label{viewannotfileex}
       
 Recover or recreate the secondary structure predictions that you made from
 JPred. Use the {\sl File $\Rightarrow$ Export Annotation} function to view the Jnet secondary structure prediction annotation row.
 
-Note the 
+Note: the 
 SEQUENCE\_REF statements surrounding the row specifying the sequence association for the 
 annotation. 
 }
@@ -2200,6 +2218,7 @@ documentation for more details of the additional capabilities of the Jalview
 features file.
 
 \exercise{Creating Features}{
+\label{featuresex}
 \exstep{Open the alignment at \textsf{http://www.jalview.org/tutorial/alignment.fa}. 
 We know that the Cysteine residues at columns 97, 102, 105 and 135 are involved in 
 iron binding so we will create them as features. Navigate to column 97, sequence 1. 
@@ -2325,7 +2344,8 @@ can handle, then an error message will be shown informing you of the maximum
 number allowed by the server.
 
 \exercise{Multiple Sequence Alignment}{
-\exstep{ Close all windows and open the alignment at {\sf
+\label{msaex}
+\exstep{ Close all windows. Open the alignment at {\sf
 http://www.jalview.org/tutorial/unaligned.fa}.  Select {\sl
 Web Service $\Rightarrow$ Alignment $\Rightarrow$ Muscle with Defaults}. 
 A window will open giving the job status. After a short time, a second window will open
@@ -2567,7 +2587,8 @@ representation of the PCA plot can be exported as an EPS or PNG image {\sl via}
 the {\sl File $\Rightarrow$ Save As $\Rightarrow$ \ldots } submenu.
 
 \exercise{Principal Component Analysis}
-{ \exstep{Load the alignment at
+{\label{pcaex}
+\exstep{Load the alignment at
 \textsf{http://www.jalview.org/tutorial/alignment.fa}.}
 \exstep{Select the menu option {\sl Calculate $\Rightarrow$ Tree or PCA..}.  in the alignment
 window and a dialogue box will open. Select the Principal Component Analysis option
@@ -2576,9 +2597,9 @@ and then click the Calculate button.}
 this window within the desktop so that the alignment and PCA viewer windows are visible.
 Try rotating the plot by clicking and dragging the mouse on the plot in the PCA window.
 Note that clicking on points in the plot will highlight the sequences on the
-alignment.
-} \exstep{Select {\sl Calculate $\Rightarrow$ Tree or PCA..}. in the alignment
-window. In dialogue box select Neighbour
+alignment.}
+\exstep{Use the [ESC] key to deselect sequence selection.
+Select {\sl Calculate $\Rightarrow$ Tree or PCA..}. in the alignment window. In dialogue box select Neighbour
 Joining and in the drop-down list select BLOSUM62. Click the Calculate button
 and a tree window will open.}
 \exstep{Place the mouse cursor on the tree so that the
@@ -2630,13 +2651,15 @@ option. Leaf names on imported trees will be matched to the associated alignment
 {\sl View $\Rightarrow$ Mark Unlinked Leaves} menu option.
 
 \exercise{Trees}
-{{\sl Ensure that you have at least 1G memory available in Jalview.
-(Start with link:
-\href{http://www.jalview.org/services/launchApp?jvm-max-heap=1G}{http://www.jalview.org/services/launchApp?jvm-max-heap=1G},
-or in the table in the Development section of the Jalview web site
-(\href{http://www.jalview.org/development/development-builds}{http://www.jalview.org/development/development-builds}), go 
-to ``latest official build'' row and in the ``Webstart'' column, click
-on ``2G''.)}
+{\label{treeex}
+\begin{list}{$\circ$}{Ensure that you have at least 1G memory available in Jalview.}
+\item{Start with link:
+\url{http://www.jalview.org/services/launchApp?jvm-max-heap=1G}
+}
+\item{From 
+{\href{http://www.jalview.org/development/development-builds}{the Development Builds}} in the Jalview web site, use 
+the ``2G'' link in the``latest official build'' row and ``Webstart'' column.}
+\end{list}
 
 \exstep{Open the alignment at
 \textsf{http://www.jalview.org/tutorial/alignment.fa}.}
@@ -2647,8 +2670,9 @@ Joining, in the drop-down list select BLOSUM62 and click the Calculate
 button. A tree window will open.}
 
 \exstep{Click on the
-tree window, a cursor will appear. Note that placing this cursor divides the tree into a number of groups by colour.
-Place the cursor to give about 4 groups.}
+tree window, a cursor will appear as a vertical line. Note that clicking will
+place this cursor, and divides the tree into a number of groups, each highlighted
+with a different colour. Place the cursor to give about 4 groups.}
 
 
 \exstep{In the tree window, select {\sl View $\Rightarrow$ Sort Alignment
@@ -2799,7 +2823,12 @@ it is used in the next set of exercises. }
 
 \subsection{Redundancy Removal}
 
-The redundancy removal dialog box is opened using the {\sl Edit $\Rightarrow$ Remove Redundancy\ldots} option in the alignment menu. As its menu option placement suggests, this is actually an alignment editing function, but it is convenient to describe it here. The redundancy removal dialog box presents a percentage identity slider which sets the redundancy threshold. Aligned sequences which exhibit a percentage identity greater than the current threshold are highlighted in black. The [Remove] button can then be used to delete these sequences from the alignment as an edit operation\footnote{Which can usually be undone. A future version of Jalview may allow redundant sequences to be hidden, or represented by a chosen sequence, rather than deleted.}.
+The redundancy removal dialog box is opened using the {\sl Edit $\Rightarrow$ Remove Redundancy\ldots} option 
+in the alignment menu. As its menu option placement suggests, this is actually an alignment editing function, 
+but it is convenient to describe it here. The redundancy removal dialog box presents a percentage identity 
+slider which sets the redundancy threshold. Aligned sequences which exhibit a percentage identity greater 
+than the current threshold are highlighted in black. The [Remove] button can then be used to delete these 
+sequences from the alignment as an edit operation.
 \begin{figure}
 \begin{center}
 \includegraphics[width=5.5in]{images/redundancy.pdf}
@@ -2862,7 +2891,7 @@ Global alignments of all pairwise combinations of the selected sequences are per
 
 
 \exercise{Remove Redundant Sequences}{
-
+\label{redundantex}
 \exstep{Using the alignment generated in the previous exercise (exercise
 \ref{consanalyexerc}).
 In the alignment window, you may need to deselect groups using Esc key.}
@@ -2879,6 +2908,7 @@ to recover the sequences. Note that the * symbols disappear from the tree displa
 }
 
 \exercise{Group Conservation Analysis}{
+\label{conservationex}
 \exstep{Re-use or recreate the alignment and tree which you worked with in the
 tree based conservation analysis exercise (exercise \ref{consanalyexerc}).} 
 \exstep{In the {\sl View} menu in the alignment window, select {\sl New View} to
@@ -3162,8 +3192,9 @@ If you would prefer to use Jmol to manage structure colours, then select the
 automatic application of colour schemes when new structure data is added, or
 when associated alignment views are modified.
 
-\exercise{Viewing Structures with the integrated Jmol
-Viewer}{\label{viewingstructex} \exstep{Load the alignment at
+\exercise{Viewing Structures with the integrated Jmol Viewer}{
+\label{viewingstructex}
+\exstep{Load the alignment at
 \textsf{http://www.jalview.org/examples/exampleFile.jar}.}
 \exstep{Right-click on the
 sequence ID label of {\sl FER1\_SPIOL} to open
@@ -3216,7 +3247,48 @@ Verify that the Jmol display is as it was when you just saved the file.}
 \url{http://www.jalview.org/training/Training-Videos}.}
 }
 
-\exercise{Setting Chimera as the default 3D Structure Viewer}{\label{viewingchimera} 
+\exercise{Aligning Structures using the Ferredoxin Sequence Alignment}{
+\label{superpositionex}
+
+\exstep{Continue with the Jalview project created in exercise
+\ref{viewingstructex}}
+
+\exstep{Open the 3D Structure chooser dialog from the popup menu for FER1\_SPIOL
+by right-clicking its ID (CMD-click on Macs), and selecting {\sl $\Rightarrow$
+3D Structure Data \ldots } }
+
+\exstep{Pick 1A70 from the Structure Chooser dialog, and click the {\bf View}
+button. Jalview will give you the option of aligning the
+structure to the one already open. To superimpose the structure associated with
+FER1\_MAIZE with the one associated with FER1\_SPIOL, press {\sl Yes}.
+
+{\sl The Jmol view should update to show both structures, and one will be
+moved on to the other. If this doesn't happen, use the Align function in the
+Jmol submenu}.
+}
+
+\exstep{Create a new view on the alignment, and hide all but columns 121
+through to 132 (you can do this via {\sl View $\Rightarrow$ Hide $\Rightarrow$
+All but selected region}).}
+\exstep{Select the newly created view in the {\sl Jmol $\Rightarrow$ Superpose
+With } submenu, and then recompute the superposition with {\sl Jmol
+$\Rightarrow$ Align Structures}.
+
+{\sl Note how the molecules shift position when superposed with only a small
+region of the alignment.}}
+
+\exstep{Compare RMSDs obtained when superimposing molecules with
+columns 121-132 and with the whole alignment.}
+
+\exstep{The RMSD report can be
+viewed by right clicking the mouse on Jmol window, and select {\sl
+Console} from the menu (if nothing is shown, recompute the superposition after
+displaying the console).
+
+Which view do you think give the best 3D superposition, and why ?} }
+
+\exercise{Setting Chimera as the default 3D Structure Viewer}{
+\label{viewingchimera} 
 Jalview supports molecular structure
 visualization using both Jmol and Chimera 3D viewers. Jmol is the default
 viewer, however Chimera can be set up as the default choice from Preferences.
@@ -3234,7 +3306,8 @@ Jalview, Chimera should open as the default viewer.}
 the Chimera structure viewer sits outside the Jalview desktop and a Chimera
 view window sits inside the Jalview desktop.}
 
-{\bf See the video at: \url{http://www.jalview.org/training/Training-Videos}.} }
+{\bf See the video at: \url{http://www.jalview.org/training/Training-Videos}.}}
+
 
 \subsection{Superimposing Structures}
 \label{superposestructs}
@@ -3293,19 +3366,6 @@ defined by more than one alignment.
 
 Note that these menu options appear when you have two or more structures in one Jmol viewer.
 
-\begin{figure}[htbp]
-\begin{center}
-\includegraphics[width=5.5in]{images/fdxsuperposition.pdf}
-\caption{{\bf Superposition of two ferredoxin structures.} The alignment on the
-left was used by Jalview to superpose structures associated with the
-FER1\_SPIOL and FER1\_MAIZE sequences in the alignment. Parts of each structure
-used for superposition are rendered as a cartoon, the remainder rendered in
-wireframe. The RMSD between corresponding positions in the structures before and
-after the superposition is shown in the Jmol console.}
-\label{mstrucsuperposition}
-\end{center}
-\end{figure}
-
 \subsection{Colouring Structure Data Associated with Multiple Alignments and
 Views} Normally, the original view from which a particular structure view was
 opened will be the one used to colour structure data. If alignments involving
@@ -3324,46 +3384,18 @@ Note that the {\sl Select many views} option is useful if you have different
 views that colour different areas or domains of the alignment. This option is
 further explored in exercise \ref{complexstructurecolours}.
 
-
-\exercise{Aligning Structures using the Ferredoxin
-Sequence Alignment}{\label{superpositionex}
-
-\exstep{Continue with the Jalview project created in exercise
-\ref{viewingstructex}}
-
-\exstep{Open the 3D Structure chooser dialog from the popup menu for FER1\_SPIOL
-by right-clicking its ID (CMD-click on Macs), and selecting {\sl $\Rightarrow$
-3D Structure Data \ldots } }
-
-\exstep{Pick 1A70 from the Structure Chooser dialog, and click the {\bf View}
-button. Jalview will give you the option of aligning the
-structure to the one already open. To superimpose the structure associated with
-FER1\_MAIZE with the one associated with FER1\_SPIOL, press {\sl Yes}.
-
-{\sl The Jmol view should update to show both structures, and one will be
-moved on to the other. If this doesn't happen, use the Align function in the
-Jmol submenu}.
-}
-
-\exstep{Create a new view on the alignment, and hide all but columns 121
-through to 132 (you can do this via {\sl View $\Rightarrow$ Hide $\Rightarrow$
-All but selected region}).}
-\exstep{Select the newly created view in the {\sl Jmol $\Rightarrow$ Superpose
-With } submenu, and then recompute the superposition with {\sl Jmol
-$\Rightarrow$ Align Structures}.
-
-{\sl Note how the molecules shift position when superposed with only a small
-region of the alignment.}}
-
-\exstep{Compare RMSDs obtained when superimposing molecules with
-columns 121-132 and with the whole alignment.}
-
-\exstep{The RMSD report can be
-viewed by right clicking the mouse on Jmol window, and select {\sl
-Console} from the menu (if nothing is shown, recompute the superposition after
-displaying the console).
-
-Which view do you think give the best 3D superposition, and why ?} }
+\begin{figure}[htbp]
+\begin{center}
+\includegraphics[width=5.5in]{images/fdxsuperposition.pdf}
+\caption{{\bf Superposition of two ferredoxin structures.} The alignment on the
+left was used by Jalview to superpose structures associated with the
+FER1\_SPIOL and FER1\_MAIZE sequences in the alignment. Parts of each structure
+used for superposition are rendered as a cartoon, the remainder rendered in
+wireframe. The RMSD between corresponding positions in the structures before and
+after the superposition is shown in the Jmol console.}
+\label{mstrucsuperposition}
+\end{center}
+\end{figure}
 
 \begin{figure}[htbp]
 \begin{center}
@@ -3411,7 +3443,6 @@ This is the biological unit for PDB ID 3pt6, as identified by the PDBe's PISA
 server.}
 \exstep{Launch the Jalview desktop and ensure you have at least 1G of
 free memory available.
-
 {\sl See section \ref{memorylimits} for how to do this or click the following
 link:
 
@@ -3419,16 +3450,22 @@ link:
 
 \exstep{Retrieve the following PFAM alignments from the {\bf PFAM (full)} source
 :
+
 PF02008 PF01426 PF00145 (enter all three - they
 will each be retrieved into their own alignment window).}
 
 \exstep{Drag the URL or file of the structure you
 downloaded in step 1 onto one of the alignments to associate it with the mouse sequence in that Pfam domain family.}
 
-\exstep{Use the Find dialog to locate every DNMT1\_MOUSE sequence in the
-alignment and for each one, open the Structure Chooser via the ID popup
-menu ({\sl $\Rightarrow$ 3D Structure Data }. Select the DNMT1\_MOUSE.pdb
-structure from the `Cached Structures' view, and click {\bf View}.
+\exstep{Locate every DNMT1\_MOUSE sequence in the
+alignment by opening the Find dialog box via {\sl Select
+$\Rightarrow$ Find}. Search using the text DNMT1\_MOUSE. For
+each one, open the Structure Chooser dialog box by right clicking the mouse on
+sequence name to open the context menu and select {\sl
+$\Rightarrow$ 3D Structure Data}.
+Select `Cached Structures' from
+the drop-down menu in the Structure Chooser dialog box, select the
+DNMT1\_MOUSE.pdb structure, and click {\bf View}.
 
 {\em Part of the newly opened structure will be coloured the same way as
 the associated DNMT1\_MOUSE sequence is in the alignment view.}
@@ -3439,16 +3476,16 @@ sequences in the alignment.}
 }
 \exstep{Repeat the previous two steps for each of the other
 alignments. In each case, after selecting the DNMT1\_MOUSE.pdb structure and
-hitting the `View' button on the Structure Chooser dialog, Jalview will ask if you wish to create
-a new Jmol view. Respond {\bf `Yes'} each time. This will ensure each sequence
-fragment is associated with the {\bf same} Jmol view. }
+hitting the `View' button on the Structure Chooser dialog. Jalview will ask if
+you wish to create a new Jmol view, respond {\bf `Yes'} each time. This will
+ensure each sequence fragment is associated with the {\bf same} Jmol view. }
 
 \exstep{Pick a different
 colourscheme for each alignment, and use the {\sl Colour by ..} submenu to
 ensure they are all used to colour the complex shown in the Jmol window.
 
-{\sl The different shading schemes will allow regions of strong physicochemical conservation are
-highlighted on the domains in the structure.}
+{\sl The different shading schemes will highlight regions of strong 
+physicochemical conservation on corresponding domains in the structure.}
 }
 
 \exstep{The final step needed to reproduce the shading in Figure
@@ -3462,10 +3499,10 @@ option, or you may not see any colour changes in the associated structure.
 
 {\sl Examine the regions strongly coloured at the interfaces between each
 protein domain, and the DNA binding region. What do you think these patterns
-mean ? } }
+mean? } }
 \exstep{Save your work as a Jalview project and verify that it can be opened
 again by starting another Jalview Desktop instance, and dragging the saved
-project into the desktop window.}
+project into the Desktop window.}
 
 % {\sl Note: This exercise relies on new features introduced in Jalview 2.7. If
 % you notice any strange behaviour when trying out this exercise, it may be a
@@ -3741,27 +3778,32 @@ by default, but can be shown by right-clicking on the alignment
 annotation panel and selecting \textbf{Show hidden annotation}.
 
 \exercise{Protein Disorder Prediction}{
-%\label{protdispredex}
+\label{protdisorderex}
 {\sl Before starting this exercise, make sure you enable the \protect{`Add
 Temperature Factor'} option in your {\bf Structures} preferences. }
 
-\exstep{Open the alignment at:
+\exstep{Open the alignment from
 \url{http://www.jalview.org/tutorial/interleukin7.fa}. } 
 
-\exstep{Run the DisEMBL disorder predictor {\slvia} the {\slWeb Service
-$\Rightarrow$ Disorder Prediction } submenu.}
+\exstep{Run the DisEMBL disorder predictor {\sl via} the {\sl Web Service
+$\Rightarrow$ Disorder Prediction }.}
 
-\exstep{Select all the sequences, and open the Structure Chooser via the {\sl
-Sequence ID $\Rightarrow$ 3D Structure Data\ldots } popup menu. Hit the
-{\bf View} button to retrieve and show all PDB structures for the sequences.}
+\exstep{Select all the sequences. Open the Structure Chooser by placing
+the mouse in the Sequence ID panel, right clicking the mouse and select
+{\sl$\Rightarrow$ 3D Structure Data\ldots }. Select all structures in the list.
+Hit the View button to retrieve and show all PDB structures for the sequences.}
 
 \exstep{Compare the disorder predictions to the structure data by mapping any
 available temperature factors to the alignment {\sl via} the {\sl Sequence ID
 Popup $\Rightarrow$ Selection $\Rightarrow$ Add reference annotation} option.}
 
-\exstep{Apply the IUPred disorder prediction method. Use the {\sl Per
-sequence option} in the {\sl Colour $\Rightarrow$ By annotation \ldots} dialog to shade
-the sequences by the long and short disorder predictors. {\sl Note how well the disordered regions predicted by each method agree
+\exstep{Features on sequences can conceal other colouring. This can be
+toggled off by selecting {\sl View
+$\Rightarrow$ Show Sequence Features}.}
+\exstep{Apply the IUPred disorder prediction method. Tick the
+the {\sl Per sequence option} in the {\sl Colour $\Rightarrow$ By annotation \ldots} dialog
+box. Then shade the sequences by the long and short disorder predictors. {\sl
+Note how well the disordered regions predicted by each method agree
 with the structure.}}
 \bf See the video at:
 \url{http://www.jalview.org/training/Training-Videos}.}
@@ -3909,6 +3951,7 @@ here).}
 
 \exercise{Visualizing Protein Features on Coding Regions}
 {
+\label{protfeatureex}
 \exstep{Use the sequence fetcher to retrieve ENA record D49489.}
 \exstep{Ensure that {\sl View $\Rightarrow$ Show Sequence Features} is checked and change the 
 alignment view format to {\sl Wrapped} mode so the distinct exons can be seen.}
@@ -4054,6 +4097,9 @@ window. Click on different residues and located them in the sequence alignment w
  }
 
 \chapter{Webservices}
+
+\section{What are Web Services ?}
+
 \label{jvwebservices}
 The term ``Webservices'' refers to a variety of data exchange
 mechanisms based on HTTP.\footnote{HTTP: Hyper-Text Transfer Protocol.} 
@@ -4124,7 +4170,7 @@ successfully use web services from Jalview, since it periodically checks the
 progress of running jobs.
 
 
-\subsection{JABA Web Services for Sequence Alignment and Analysis}
+\section{JABA Web Services for Sequence Alignment and Analysis}
 \label{jabaservices}
 JABA stands for ``JAva Bioinformatics Analysis'', which is a system developed
 by Peter Troshin and Geoff Barton at the University of Dundee for running