Back to index

python-biopython  1.60
Public Member Functions
test_pairwise2.TestPairwiseGlobal Class Reference

List of all members.

Public Member Functions

def test_globalxx_simple

Detailed Description

Definition at line 12 of file test_pairwise2.py.


Member Function Documentation

Definition at line 14 of file test_pairwise2.py.

00014 
00015     def test_globalxx_simple(self):
00016         aligns = pairwise2.align.globalxx("GAACT", "GAT")
00017         self.assertEqual(len(aligns), 2)
00018         aligns.sort()
00019         seq1, seq2, score, begin, end = aligns[0]
00020         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00021         self.assertEqual(alignment, """\
00022 GAACT
00023 |||||
00024 G-A-T
00025   Score=3
00026 """)
00027         seq1, seq2, score, begin, end = aligns[1]
00028         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00029         self.assertEqual(alignment, """\
00030 GAACT
00031 |||||
00032 GA--T
00033   Score=3
00034 """)
00035 


The documentation for this class was generated from the following file: