2 <head><title>Search</title>
\r
3 <style type="text/css">
\r
13 <p><strong>Search</strong></p>
\r
14 <p>The search box is displayed by pressing Control and F or
\r
15 selecting "Find..." from the "Search" menu.</p>
\r
16 <img src="search.gif" width="339" height="111">
\r
17 <p>"Find next" will find the next occurence of the specified and adjust
\r
18 the alignment window view to show it, and "Find all" highlights all
\r
19 matches for a pattern. The "New Feature" is a quick way to highlight
\r
20 and group residues matching the specified search pattern throughout the alignment.
\r
22 <li>The search uses regular expressions. (understands a mixture of
\r
23 posix and perl style regex - see below for a summary)</li>
\r
24 <li>Gaps are ignored when matching the query to the sequences in the
\r
26 <li>The search is applied to both sequences and their IDs but the "Find next"
\r
27 and "Find all" buttons only count the sequence matches.</li>
\r
28 <li>If a region is selected, then search will <strong>only</strong>
\r
29 be performed on that region. </li>
\r
30 <li>To quickly clear the current selection, press the "Escape" key.</li>
\r
32 <p><strong>Creating Features from Search Results</strong></p>
\r
34 If "New Feature" is selected, the feature can be given a name from
\r
35 a popup input box. Use the "Feature Settings" under the "View"
\r
36 menu to change the visibility and colour of the new sequence feature.</p>
\r
37 <p><strong>A quick Regular Expression Guide</strong></p>
\r
38 <p>A regular expression is not just a simple text query - although it
\r
39 can be used like one, the query is not parsed literally, but
\r
40 interpreted like a series of instructions defining the features of the
\r
41 match. For example, a simple query like "ACDED" would
\r
42 match all occurences of that string, but "ACD+ED" matches
\r
43 both 'ACDDED' and 'ACDDDDDDDDED'. More usefully, the query
\r
44 "[ILGVMA]{;5,}" would find stretches of small,
\r
45 hydrophobic amino acids of at least five residues in length.
\r
48 below describes some of the regular expression syntax:<br></p>
\r
49 <table width="100%" border="1">
\r
51 <td width="24%">Regular Expression Element</td>
\r
52 <td width="76%">Effect</td>
\r
55 <td width="24%">.</td>
\r
56 <td width="76%">Matches any single character</td>
\r
60 <td>Matches any one of the characters in the brackets</td>
\r
64 <td>Matches at the start of an ID or sequence</td>
\r
68 <td>Matches at the end of an ID or sequence</td>
\r
72 <td>Matches if the preceding element matches zero or more times</td>
\r
76 <td>Matches if the preceding element matched once or not at all</td>
\r
80 <td>Matches if the preceding element matched at least once</td>
\r
84 <td>Matches if the preceding element matches a specified number of
\r
90 <td> Matches of the preceding element matched at least the
\r
91 specified number of times</td>
\r
95 <td>Matches if the preceding element matches min or at most max
\r
96 number of times</td>
\r