| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>User Guide To Display of Gapped Alignments</TITLE> |
| 5 |
|
| 6 |
<LINK rel=stylesheet type="text/css" |
| 7 |
href="./wdoc.css" |
| 8 |
title="Style sheet for wdoc developer documents"> |
| 9 |
|
| 10 |
</HEAD> |
| 11 |
|
| 12 |
|
| 13 |
<BODY> |
| 14 |
|
| 15 |
<BLOCKQUOTE> |
| 16 |
<DIV ALIGN=CENTER> |
| 17 |
<IMG SRC="./acedb-logo.gif" ALT="[ACEDB 4_9 DOCUMENTATION]" align=middle> |
| 18 |
<H3> |
| 19 |
ACEDB Version 4_9 |
| 20 |
</H3> |
| 21 |
</DIV> |
| 22 |
|
| 23 |
|
| 24 |
<DIV ALIGN=CENTER> |
| 25 |
|
| 26 |
<H1 align=center> |
| 27 |
User Guide To Display of Gapped Alignments |
| 28 |
</H1> |
| 29 |
|
| 30 |
<ADDRESS>Originally written by<BR> |
| 31 |
Simon Kelley <[email protected]>, May 2001</ADDRESS> |
| 32 |
|
| 33 |
</DIV> |
| 34 |
|
| 35 |
<H2>Gapped Alignments</H2> |
| 36 |
|
| 37 |
<P>Acedb now supports the storage and display of gap information with |
| 38 |
alignments. |
| 39 |
|
| 40 |
<P>The Homol tag in ?Sequence and ?Protein now has a model which looks |
| 41 |
like this: |
| 42 |
|
| 43 |
<pre><code>Homol DNA_homol ?Sequence XREF DNA_homol ?Method Float Int Int Int Int #Homol_info |
| 44 |
Pep_homol ?Protein XREF DNA_homol ?Method Float Int Int Int Int #Homol_info |
| 45 |
Motif_homol ?Motif XREF DNA_homol ?Method Float Int Int Int Int #Homol_info |
| 46 |
</code></pre> |
| 47 |
|
| 48 |
<P>and the Homol-info class looks like this: |
| 49 |
|
| 50 |
<pre><code>#Homol_info Segs #Match_seg // old way to give gapped alignment - used in pephomolcol for Belvu call |
| 51 |
Align Int UNIQUE Int UNIQUE Int // correct way to give gapped alignments for FMAP |
| 52 |
// for each ungapped block, self_start target_start [length] |
| 53 |
// if no length then until next block (so no double gap) |
| 54 |
// if no Align assume ungapped |
| 55 |
AlignDNAPep Int UNIQUE Int UNIQUE Int |
| 56 |
AlignPepDNA Int UNIQUE Int UNIQUE Int |
| 57 |
// These two tags are analogous to Align, but scale length |
| 58 |
// for the case of a dna alignment to peptide or vice-versa. |
| 59 |
</code></pre> |
| 60 |
|
| 61 |
<P>This system is backwards compatible since if the Homol_info data is |
| 62 |
not present, the Homologies are interpreted as before. (For reference, |
| 63 |
the Float parameter is a score and the four Ints are start and end |
| 64 |
co-ordinates in this sequence followed by start and end coordinates in |
| 65 |
the homologous sequence. |
| 66 |
|
| 67 |
<P>The gap information is stored as blocks of ungapped alignment. This is |
| 68 |
probably best illustrated by example: |
| 69 |
|
| 70 |
<pre><code>Homol DNA_homol somesequence somemethod 100 2732 2809 29233 29310 Align 2732 29233 |
| 71 |
Align 2742 29253 |
| 72 |
Align 2752 29273 |
| 73 |
Align 2762 29276 |
| 74 |
</code></pre> |
| 75 |
|
| 76 |
<P>Gives and alignment which looks like this: |
| 77 |
|
| 78 |
|
| 79 |
<pre><code> 2732 2741 2742 2751 2752 2762 2809 |
| 80 |
self ----|---------|.........|---------|.........|---------|------------------~~-------------------|----- |
| 81 |
|
| 82 |
target |-------------------|-------------------|--|......|------------------~~-------------------| |
| 83 |
29233 29253 29273 29275 2976 29310 |
| 84 |
</code></pre> |
| 85 |
|
| 86 |
<P>The third (length) integer is only required when the end of a gap in one sequence coincides |
| 87 |
with the start of a gap in the other: |
| 88 |
|
| 89 |
<pre><code> |
| 90 |
Homol DNA_homol somesequence somemethod 100 2732 2809 29233 29310 Align 2732 29233 10 |
| 91 |
Align 2752 29253 |
| 92 |
|
| 93 |
|
| 94 |
2732 2741 2742 2752 |
| 95 |
self ----|---------|.........|--------------|------- |
| 96 |
|
| 97 |
|
| 98 |
target |-------------------|..............|---------- |
| 99 |
|
| 100 |
29233 29252 29253 |
| 101 |
</code></pre> |
| 102 |
|
| 103 |
|
| 104 |
<H2>Displays</H2> |
| 105 |
|
| 106 |
<P>The gaps are not displayed in the fMap, but they are displayed in blixem. |
| 107 |
|
| 108 |
<P>Gaps in the query sequence (ie where there are bases in the target |
| 109 |
with corresponding bases in the query) are shown by omitting the un-matched bases |
| 110 |
and drawing a vertical red bar. Gaps in the target sequence are shown with dots. |
| 111 |
|
| 112 |
|
| 113 |
<H2>Peptide homolgies</H2> |
| 114 |
|
| 115 |
<P>For homologies of DNA versus Peptide, the two sets of coordinates need to be |
| 116 |
scaled, since a block length of x in amino acid residues corresponds to 3x in |
| 117 |
DNA bases. To tell acedb when and how to scale, use the AlignDNAPep and AlignPepDNA |
| 118 |
tags. For instance in a DNA object, to record a homology to a peptide, do: |
| 119 |
|
| 120 |
|
| 121 |
<pre><code>Homol Pep_homol somepeptide somemethod 200 2777 2699 100 133 AlignDNAPep 2777 100 |
| 122 |
2753 104 |
| 123 |
2738 120 |
| 124 |
</code></pre> |
| 125 |
|
| 126 |
|
| 127 |
<HR> |
| 128 |
<H3 ALIGN="CENTER">ACEDB Version 4_9</H3> |
| 129 |
|
| 130 |
|
| 131 |
<HR> |
| 132 |
<ADDRESS><A href="mailto:[email protected]">Simon Kelley <[email protected]></A></ADDRESS> |
| 133 |
<!-- hhmts start --> |
| 134 |
Last modified: Wed May 16 10:29:36 BST 2001 |
| 135 |
<!-- hhmts end --> |
| 136 |
|
| 137 |
</BLOCKQUOTE> |
| 138 |
</BODY> |
| 139 |
</HTML> |