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

def Bio::GenBank::Record::Record::__str__ (   self  ) 

Provide a GenBank formatted output option for a Record.

The objective of this is to provide an easy way to read in a GenBank
record, modify it somehow, and then output it in 'GenBank format.'
We are striving to make this work so that a parsed Record that is
output using this function will look exactly like the original
record.

Much of the output is based on format description info at:

ftp://ncbi.nlm.nih.gov/genbank/gbrel.txt

Definition at line 175 of file Record.py.

00175                      :
        """Provide a GenBank formatted output option for a Record.

        The objective of this is to provide an easy way to read in a GenBank
        record, modify it somehow, and then output it in 'GenBank format.'
        We are striving to make this work so that a parsed Record that is
        output using this function will look exactly like the original
        record.

        Much of the output is based on format description info at:

        ftp://ncbi.nlm.nih.gov/genbank/gbrel.txt
        """
        output = self._locus_line()
        output += self._definition_line()
        output += self._accession_line()
        output += self._version_line()
        output += self._nid_line()
        output += self._pid_line()
        output += self._keywords_line()
        output += self._db_source_line()
        output += self._segment_line()
        output += self._source_line()
        output += self._organism_line()
        for reference in self.references:
            output += str(reference)
        output += self._comment_line()
        output += self._features_line()
        for feature in self.features:
            output += str(feature)
        output += self._base_count_line()
        output += self._origin_line()
        output += self._sequence_line()
        output += self._contig_line()
        output += "//"
        return output
            
    def _locus_line(self):


Generated by  Doxygen 1.6.0   Back to index