Back to index

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

List of all members.

Public Member Functions

def test_localxs

Detailed Description

Definition at line 36 of file test_pairwise2.py.


Member Function Documentation

Definition at line 38 of file test_pairwise2.py.

00038 
00039     def test_localxs(self):
00040         aligns = pairwise2.align.localxs("AxBx", "zABz", -0.1, 0)
00041         aligns.sort()
00042         seq1, seq2, score, begin, end = aligns[0]
00043         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00044         self.assertEqual(alignment, """\
00045 -AxBx
00046  |||
00047 zA-Bz
00048   Score=1.9
00049 """)
00050         seq1, seq2, score, begin, end = aligns[1]
00051         alignment = pairwise2.format_alignment(seq1, seq2, score, begin, end)
00052         self.assertEqual(alignment, """\
00053 -AxBx
00054  ||||
00055 zA-Bz
00056   Score=1.9
00057 """)
00058 


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