Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# Bio.pairwise2.align.globalmc

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

```        # Very expensive to open a gap in seq2 unless it is in one of the allowed positions
specificgaps = lambda x, y: (-2 -y) if x in breaks else (-2000 - y)
alignments = pairwise2.align.globalmc(seq1, seq2, 1, -1, nogaps, specificgaps)
self.assertEqual(len(alignments), 1)
formatted = pairwise2.format_alignment(*alignments[0])
```
```        #Very expensive to open a gap in seq2 unless it is in one of the allowed positions:
specificgaps = lambda x, y: (-2 - y) if x in breaks else (-2000 - y)
alignments = pairwise2.align.globalmc(seq1, seq2, 1, -1, nogaps, specificgaps)
self.assertEqual(len(alignments), 1)
formatted = pairwise2.format_alignment(*alignments[0])
```

```        # Very expensive to open a gap in seq2 unless it is in one of the allowed positions
specificgaps = lambda x, y: (-2 -y) if x in breaks else (-2000 - y)
alignments = pairwise2.align.globalmc(seq1, seq2, 1, -1, nogaps, specificgaps)
self.assertEqual(len(alignments), 1)
formatted = pairwise2.format_alignment(*alignments[0])
```
```        #Very expensive to open a gap in seq2 unless it is in one of the allowed positions:
specificgaps = lambda x, y: (-2 - y) if x in breaks else (-2000 - y)
alignments = pairwise2.align.globalmc(seq1, seq2, 1, -1, nogaps, specificgaps)
self.assertEqual(len(alignments), 1)
formatted = pairwise2.format_alignment(*alignments[0])
```