The routines DynProg and BackDynProg are low-level
commands operating directly on string objects. The alignment
routines through the remaining part of this chapter
require an offset into a Darwin database be given for the
sequences.
The routines available for accessing information contained in the
Darwin sequence databases are explained in Chapter
- Genetic Databases.
The structured type Match holds a partial or totally defined alignment between two amino acid sequences. A match can have as little information as two offsets, for example:
> DB:=ReadDb('Sample/SH2'): > m1 := Match(367, 1338); # offset for sequence #1 and #2. m1 := Match(367,1338)Offset 367 from DB[string] marks the beginning of the sequence in the first entry of the SH2 database. Offset 1338 is the beginning of the sequence for the second entry (see page
> m1 := Match(op(Sequence(Entry(1))), op(Sequence(Entry(2)))); m1 := Match(367,1338) > m1[Offset1]; # offset of first sequence 367 > m1[Offset2]; # offset of second sequence 1338 > Entry(m1); Entry(1,2) > Offset(m1); Offset(367,1338)Table