Back to index

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

List of all members.

Public Member Functions

def test_penalize_end_gaps

Detailed Description

Definition at line 179 of file test_pairwise2.py.


Member Function Documentation

Definition at line 181 of file test_pairwise2.py.

00181 
00182     def test_penalize_end_gaps(self):
00183         aligns = pairwise2.align.globalxs("GACT", "GT", -0.2, -0.8, penalize_end_gaps=0)
00184         self.assertEqual(len(aligns), 3)
00185         aligns.sort()
00186         seq1, seq2, score, begin, end = aligns[0]
00187         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00188         self.assertEqual(alignment, """\
00189 GACT
00190 ||||
00191 --GT
00192   Score=1
00193 """)
00194         seq1, seq2, score, begin, end = aligns[1]
00195         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00196         self.assertEqual(alignment, """\
00197 GACT
00198 ||||
00199 G--T
00200   Score=1
00201 """)
00202         seq1, seq2, score, begin, end = aligns[2]
00203         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00204         self.assertEqual(alignment, """\
00205 GACT
00206 ||||
00207 GT--
00208   Score=1
00209 """)
00210 


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