Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
0aba0e80
Commit
0aba0e80
authored
11 years ago
by
BIOPZ-Bertoni Martino
Browse files
Options
Downloads
Patches
Plain Diff
and here come the SemiGlobalAlign documentation
parent
23a01b0b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/seq/alg/doc/seqalg.rst
+29
-0
29 additions, 0 deletions
modules/seq/alg/doc/seqalg.rst
with
29 additions
and
0 deletions
modules/seq/alg/doc/seqalg.rst
+
29
−
0
View file @
0aba0e80
...
...
@@ -133,3 +133,32 @@
:returns: list of column entropies
.. function:: SemiGlobalAlign(seq1, seq2, subst_weight, gap_open=-5, gap_ext=-2)
Performs a semi-global alignment of *seq1* and *seq2* and returns the best-
scoring alignment. The algorithm is Needleman/Wunsch same as GlobalAlign, but
without any gap penalty for starting or ending gaps. This is prefereble
whenever one of the sequences is significantly shorted than the other.
This make it also suitable for fragment assembly.
**Example:**
.. code-block:: python
seq_a=seq.CreateSequence('A', 'abcdefghijklmnok')
seq_b=seq.CreateSequence('B', 'cdehijk')
alns=seq.alg.GlobalAlign(seq_a, seq_b, seq.alg.BLOSUM62)
print alns[0].ToString(80)
# >>> A abcdefghijklmnok
# >>> B --cde--hijk-----
:param seq1: A valid sequence
:type seq1: :class:`~ost.seq.ConstSequenceHandle`
:param seq2: A valid sequence
:type seq2: :class:`~ost.seq.ConstSequenceHandle`
:param subst_weigth: The substitution weights matrix
:type subst_weight: :class:`SubstWeightMatrix`
:param gap_open: The gap opening penalty. Must be a negative number
:param gap_ext: The gap extension penalty. Must be a negative number
:returns: best-scoring alignment of *seq1* and *seq2*.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment