Back to index

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

List of all members.

Public Member Functions

def test_penalize_extend_when_opening

Detailed Description

Definition at line 164 of file test_pairwise2.py.


Member Function Documentation

Definition at line 166 of file test_pairwise2.py.

00166 
00167     def test_penalize_extend_when_opening(self):
00168         aligns = pairwise2.align.globalxs("GACT", "GT", -0.2, -1.5, penalize_extend_when_opening=1)
00169         self.assertEqual(len(aligns), 1)
00170         seq1, seq2, score, begin, end = aligns[0]
00171         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00172         self.assertEqual(alignment, """\
00173 GACT
00174 ||||
00175 G--T
00176   Score=-1.2
00177 """)
00178 


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