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">
\r
17 <p>"Find next" will find the next occurence of the specified
\r
18 and adjust the alignment window view to show it, and "Find
\r
19 all" highlights all matches for a pattern. The "Create new
\r
20 group" is a quick way to highlight and group residues matching
\r
21 the specified search pattern throughout the alignment.</p>
\r
23 <li>The search uses regular expressions. (understands a mixture of
\r
24 posix and perl style regex - see below for a summary)</li>
\r
25 <li>Gaps are ignored when matching the query to the sequences in the
\r
27 <li>The search is applied to both sequences and their IDs but the "Find next"
\r
28 and "Find all" buttons only count the sequence matches.</li>
\r
29 <li>If a region is selected, then search will <strong>only</strong>
\r
30 be performed on that region. </li>
\r
31 <li>To quickly clear the current selection, press the "Escape" key.</li>
\r
33 <p><strong>A quick Regular Expression Guide</strong></p>
\r
34 <p>A regular expression is not just a simple text query - although it
\r
35 can be used like one, the query is not parsed literally, but
\r
36 interpreted like a series of instructions defining the features of the
\r
37 match. For example, a simple query like "ACDED" would
\r
38 match all occurences of that string, but "ACD+ED" matches
\r
39 both 'ACDDED' and 'ACDDDDDDDDED'. More usefully, the query
\r
40 "[ILGVMA]{;5,}" would find stretches of small,
\r
41 hydrophobic amino acids of at least five residues in length.
\r
44 below describes some of the regular expression syntax:<br></p>
\r
45 <table width="100%" border="1">
\r
47 <td width="24%">Regular Expression Element</td>
\r
48 <td width="76%">Effect</td>
\r
51 <td width="24%">.</td>
\r
52 <td width="76%">Matches any single character</td>
\r
56 <td>Matches any one of the characters in the brackets</td>
\r
60 <td>Matches at the start of an ID or sequence</td>
\r
64 <td>Matches at the end of an ID or sequence</td>
\r
68 <td>Matches if the preceding element matches zero or more times</td>
\r
72 <td>Matches if the preceding element matched once or not at all</td>
\r
76 <td>Matches if the preceding element matched at least once</td>
\r
80 <td>Matches if the preceding element matches a specified number of
\r
86 <td> Matches of the preceding element matched at least the
\r
87 specified number of times</td>
\r
91 <td>Matches if the preceding element matches min or at most max
\r
92 number of times</td>
\r