Imported modules
|
|
from NeedlemanWunsch import nw
from chimera.Sequence import Sequence
|
Functions
|
|
constrainedMatch
dragMatch
gappedMatch
makeForcedMatch
nwAssoc
oldTryAssoc
tryAssoc
|
|
constrainedMatch
|
constrainedMatch (
aseq,
mseq,
segments,
maxErrors,
)
all the segments should fit in aseq
Exceptions
|
|
AssertionError, "Internal match problem: segments (%d) != offsets (%d)" %(len( segments ), len( offsets ) )
ValueError, "bad assoc"
|
|
|
dragMatch
|
dragMatch (
aseq,
gappedMseq,
maxErrors,
)
mseq longer than aseq
can still be gaps in mseq
|
|
gappedMatch
|
gappedMatch (
aseq,
mseq,
segments,
gaps,
estLen,
maxErrors,
)
|
|
makeForcedMatch
|
makeForcedMatch (
side,
aseq,
mseq,
aseqStart,
aseqLength,
mseqStart,
mseqLength,
)
|
|
nwAssoc
|
nwAssoc ( alignSeq, molSeq )
|
|
oldTryAssoc
|
oldTryAssoc (
alignSeq,
molSeq,
gappedMseq,
maxErrors=6,
)
|
|
tryAssoc
|
tryAssoc (
alignSeq,
mseq,
segments,
gaps,
estLen,
maxErrors=6,
)
|
Classes
|
|
Matchup | When done, self.best will either be None or a 3-tuple.
|
|
|