Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/rev/97e12fac5994
Дата изменения: Unknown
Дата индексирования: Mon Oct 1 23:33:22 2012
Кодировка:
allpy: 97e12fac5994

allpy

changeset 365:97e12fac5994

All base.Alignment.append_* methods now return self. (see #25)
author Daniil Alexeyevsky <me.dendik@gmail.com>
date Wed, 26 Jan 2011 20:57:43 +0300
parents 78dcad10165d
children ccca8d4dca9a
files allpy/base.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/allpy/base.py	Wed Jan 26 20:56:33 2011 +0300
     1.2 +++ b/allpy/base.py	Wed Jan 26 20:57:43 2011 +0300
     1.3 @@ -152,13 +152,14 @@
     1.4      # ==============================
     1.5  
     1.6      def append_sequence(self, sequence):
     1.7 -        """Add sequence to alignment.
     1.8 +        """Add sequence to alignment. Return self.
     1.9  
    1.10          If sequence is too short, pad it with gaps on the right.
    1.11          """
    1.12          self.sequences.append(sequence)
    1.13          for i, monomer in enumerate(sequence):
    1.14              self.column_at(i)[sequence] = monomer
    1.15 +        return self
    1.16  
    1.17      def append_row_from_string(self, string,
    1.18              name='', description='', source='', gaps=default_gaps):
    1.19 @@ -189,12 +190,10 @@
    1.20          return self.columns[n]
    1.21  
    1.22      def append_file(self, file, format='fasta', gaps=default_gaps):
    1.23 -        """Append sequences from file to alignment.
    1.24 +        """Append sequences from file to alignment. Return self.
    1.25  
    1.26          If sequences in file have gaps (detected as characters belonging to
    1.27          `gaps` set), treat them accordingly.
    1.28 -
    1.29 -        Return self.
    1.30          """
    1.31          assert format == 'fasta'
    1.32          for (name, description, body) in fasta.parse_file(file):