Documentation ¶
Overview ¶
Package gotoh implements the Gotoh version of pair-wise alignments. We use a full scoring matrix, and use this during the summation. It will change, so we can declare an "aligner" with its various temporary storage. This can then be re-used over different alignments and will go away when the aligner goes away.
Index ¶
- func Align(scr_mat_mat *matrix.FMatrix2d, scr_scheme *Al_score) (pairlist []ipair, max_scr float32)
- func IdentScore(s []byte, t []byte, scr *Match_scr) (smat *matrix.FMatrix2d)
- func PrintSeqDebug(verbose bool, pairlist []ipair, s, t []byte, al_type Al_type)
- type Al_score
- type Al_type
- type Match_scr
- type Pnlty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Align ¶
func Align(scr_mat_mat *matrix.FMatrix2d, scr_scheme *Al_score) ( pairlist []ipair, max_scr float32)
Align implements Gotoh, O. J. Mol. Biol. (1982) 162, 705-708. It does not have the bugs described in Flouri, T, Kobert, K., Rognes, T and Stamatakis, doi: http://dx.doi.org/10.1101/031500 (2015).
func IdentScore ¶
IdentScore fills out a score matrix using identity. Values for match/mismatch come from the scr structure. for an M x N pair, we have an M x N matrix. There is no extra room at the start and end.
func PrintSeqDebug ¶
PrintSeqDebug is a primitive printer for aligned sequences, but it is essential for debugging.
Types ¶
type Al_type ¶
type Al_type byte
Al_type is a byte which can be global or local. By making it its own type, we can add a String() method to it.
Local/Global are exported constants to say what kind of alignment one wants.