Logo Search packages:      
Sourcecode: python-biopython version File versions

def Bio::GenBank::Record::Record::_sequence_line (   self  )  [private]

Output for all of the sequence.

Definition at line 414 of file Record.py.

00414                             :
        """Output for all of the sequence.
        """
        output = ""
        if self.sequence:
            cur_seq_pos = 0
            while cur_seq_pos < len(self.sequence):
                output += Record.SEQUENCE_FORMAT % str(cur_seq_pos + 1)

                for section in range(6):
                    start_pos = cur_seq_pos + section * 10
                    end_pos = start_pos + 10
                    seq_section = self.sequence[start_pos:end_pos]
                    output += " %s" % seq_section.lower()

                    # stop looping if we are out of sequence
                    if end_pos > len(self.sequence):
                        break
                
                output += "\n"
                cur_seq_pos += 60
        return output

    def _contig_line(self):


Generated by  Doxygen 1.6.0   Back to index