view allpy/markups.py @ 675:4d1f5ece3f0a
Added module markups with sample *Index and *Number markups
author |
Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
date |
Fri, 01 Jul 2011 15:46:32 +0400 |
parents |
|
children |
df624c729ab5 |
line source
3 class SequenceNumberMarkup(base.SequenceMarkup):
8 for number, monomer in enumerate(self.sequence, 1):
9 monomer.number = number
11 class SequenceIndexMarkup(base.SequenceMarkup):
16 for index, monomer in enumerate(self.sequence):
19 class AlignmentNumberMarkup(base.AlignmentMarkup):
24 for number, column in enumerate(self.alignment.columns, 1):
27 class AlignmentIndexMarkup(base.AlignmentMarkup):
32 for index, column in enumerate(self.alignment.columns):
35 # vim: set ts=4 sts=4 sw=4 et: