Skip to content
Snippets Groups Projects
Commit 73b49221 authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

Doc fix: SemiGlobalAlign example

parent a002412a
Branches
Tags
No related merge requests found
......@@ -145,9 +145,13 @@ Algorithms for Alignments
.. 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)
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--hi-----jk
alns = seq.alg.SemiGlobalAlign(seq_a, seq_b, seq.alg.BLOSUM62)
print alns[0].ToString(80)
# >>> A abcdefghijklmnok
# >>> B --cde--hijk-----
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment