PS_QG_ALIGN
Profile/sequence Quasiglobal Gap Alignment
PS_QG_ALIGN
is a FORTRAN90 library which
implements some of the string
matching algorithms described in the reference [Chao].
These
algorithms carry out the computation in linear space, and
compute not just the optimal alignment score, but also the corresponding
optimal alignment.
The quasiglobal matching considered here is similar to the
global matching scheme, except that no penalty is applied for the
very first gap (a deletion or insertion, but not both), and the very
last one. This simple alteration in the global alignment scheme
facilitates the search for repeated patterns.
Routines that use quadratic space are included as well, so the algorithms
can be compared for storage, speed, and correctness.
The names of the scoring and path routines include information
about whether they use a forward, backward, or recursive algorithm,
whether they compute the score or the path, and whether they use
linear or quadratic space. Thus, the routine
PS_QG_FSQ uses the forward algorithm to compute the score,
with quadratic space requirements.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
PS_QG_ALIGN is available in
a FORTRAN90 version.
Related Data and Programs:
PS_GG_ALIGN,
a FORTRAN90 library which
implements a profile/sequence global alignment using an affine gap penalty.
PS_LG_ALIGN,
a FORTRAN90 library which
implements a profile/sequence local alignment using an affine gap penalty.
SS_GD_ALIGN,
a FORTRAN90 library which
globally aligns two sequences using a distance matrix.
SS_GG_ALIGN,
a FORTRAN90 library which
globally aligns two sequences using an affine gap penalty.
SS_LG_ALIGN,
a FORTRAN90 library which
locally aligns two sequences using an affine gap penalty.
SS_QG_ALIGN,
a FORTRAN90 library which
quasi-globally aligns two sequences using an affine gap penalty.
Reference:
-
Kun-Mao Chao, Ross Hardison, Webb Miller,
Recent Developments in Linear-Space Alignment Methods: A Survey,
Journal of Computational Biology,
Volume 1, Number 4, 1994, pages 271-291.
-
Eugene Myers, Webb Miller,
Optimal Alignments in Linear Space,
CABIOS, volume 4, number 1, 1988, pages 11-17.
-
Michael Waterman,
Introduction to Computational Biology,
Chapman and Hall, 1995.
Source Code:
Examples and Tests:
List of Routines:
-
A_INDEX sets up a reverse index for the amino acid codes.
-
A_TO_I4 returns the index of an alphabetic character.
-
CH_CAP capitalizes a single character.
-
I4_SWAP switches two integer values.
-
I4_TO_A returns the I-th alphabetic character.
-
I4VEC_REVERSE reverses the elements of an integer vector.
-
I4VEC2_COMPARE compares pairs of integers stored in two vectors.
-
I4VEC2_SORT_A ascending sorts a vector of pairs of integers.
-
PROFILE_SCORE_PRINT prints profile scoring data.
-
PROFILE_SCORE_READ reads profile scoring data from a file.
-
PROFILE_SCORE_READ2 returns a small amount of information from a profile.
-
PS_GG_BSL determines a global gap backward alignment score in linear space.
-
PS_GG_FSL determines a global gap forward alignment score in linear space.
-
PS_QG_BOQ determines the backward endpoint of a quasiglobal optimal local alignment.
-
PS_QG_BPQ determines a quasiglobal gap backward alignment path in quadratic space.
-
PS_QG_BSL determines a quasiglobal gap backward alignment score in linear space.
-
PS_QG_BSQ determines a quasiglobal gap backward alignment score in quadratic space.
-
PS_QG_FOQ determines the forward endpoint of a quasiglobal optimal local alignment.
-
PS_QG_FPQ determines a quasiglobal gap forward alignment path in quadratic space.
-
PS_QG_FSL determines a quasiglobal gap forward alignment score in linear space.
-
PS_QG_FSQ determines a quasiglobal gap forward alignment score in quadratic space.
-
PS_QG_MATCH_PRINT prints a quasiglobal gap alignment.
-
PS_QG_RPL determines a quasiglobal gap recursive alignment path in linear space.
-
PS_QG_RPL_POP pops the data describing a subproblem off of the stack.
-
PS_QG_RPL_PUSH pushes the data describing a subproblem onto the stack.
-
R4VEC2_SUM_IMAX returns the index of the maximum sum of two real vectors.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
S_TO_CHVEC converts a string to a character vector.
-
S_TO_I4 reads an integer value from a string.
-
SORT_HEAP_EXTERNAL externally sorts a list of items into linear order.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
WORD_LAST_READ returns the last word from a string.
-
WORD_NEXT_READ "reads" words from a string, one at a time.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 30 December 2007.