Back to index

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

List of all members.

Public Member Functions

def test_separate_gap_penalties1
def test_separate_gap_penalties2

Detailed Description

Definition at line 211 of file test_pairwise2.py.


Member Function Documentation

Definition at line 213 of file test_pairwise2.py.

00213 
00214     def test_separate_gap_penalties1(self):
00215         aligns = pairwise2.align.localxd("GAT", "GTCT", -0.3, 0, -0.8, 0)
00216         self.assertEqual(len(aligns), 2)
00217         aligns.sort()
00218         seq1, seq2, score, begin, end = aligns[0]
00219         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00220         self.assertEqual(alignment, """\
00221 G-AT
00222 ||||
00223 GTCT
00224   Score=1.7
00225 """)
00226         seq1, seq2, score, begin, end = aligns[1]
00227         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00228         self.assertEqual(alignment, """\
00229 GA-T
00230 ||||
00231 GTCT
00232   Score=1.7
00233 """)

Definition at line 234 of file test_pairwise2.py.

00234 
00235     def test_separate_gap_penalties2(self):
00236         aligns = pairwise2.align.localxd("GAT", "GTCT", -0.5, 0, -0.2, 0)
00237         self.assertEqual(len(aligns), 1)
00238         seq1, seq2, score, begin, end = aligns[0]
00239         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00240         self.assertEqual(alignment, """\
00241 GAT--
00242 |||
00243 G-TCT
00244   Score=1.8
00245 """)
00246 
00247 


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