Documentation ¶
Overview ¶
Package providing PALS dynamic programming alignment routines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aligner ¶
type Aligner struct { Costs *Costs // contains filtered or unexported fields }
An Aligner provides allows local alignment of subsections of long sequences.
func NewAligner ¶
Create a new Aligner based on target and query sequences.
func (*Aligner) AlignTraps ¶
func (a *Aligner) AlignTraps(trapezoids filter.Trapezoids) Hits
Align pairs of sequence segments defined by trapezoids. Returns aligning segment pairs satisfying length and identity requirements.
type Costs ¶
type Costs struct { MaxIGap int DiffCost int SameCost int MatchCost int BlockCost int RMatchCost float64 }
A Costs specifies dynamic programming behaviour.
type Hit ¶
type Hit struct {
Abpos, Bbpos int // Start coordinate of local alignment
Aepos, Bepos int // End coordinate of local alignment
LowDiagonal, HighDiagonal int // Alignment is between (anti)diagonals LowDiagonal & HighDiagonal
Score int // Score of alignment where match = SameCost, difference = -DiffCost
Error float64 // Lower bound on error rate of match
}
Hit holds details of alignment result.
Click to show internal directories.
Click to hide internal directories.