Package Bio :: Package SeqIO :: Module InsdcIO :: Class GenBankWriter
[hide private]
[frames] | no frames]

Class GenBankWriter

source code

      Interfaces.SequenceWriter --+    
                                  |    
Interfaces.SequentialSequenceWriter --+
                                      |
                                     GenBankWriter

Instance Methods [hide private]
 
_write_single_line(self, tag, text)
Used in the the 'header' of each GenBank record.
source code
 
_write_multi_line(self, tag, text)
Used in the the 'header' of each GenBank record.
source code
 
_write_the_first_line(self, record)
Write the LOCUS line.
source code
 
_get_annotation_str(self, record, key, default='.', just_first=False)
Get an annotation dictionary entry (as a string).
source code
 
_write_sequence(self, record) source code
 
write_record(self, record)
Write a single record to the output file.
source code

Inherited from Interfaces.SequentialSequenceWriter: __init__, write_file, write_footer, write_header, write_records

Inherited from Interfaces.SequenceWriter: clean

Class Variables [hide private]
  HEADER_WIDTH = 12
  MAX_WIDTH = 80
Method Details [hide private]

_get_annotation_str(self, record, key, default='.', just_first=False)

source code 

Get an annotation dictionary entry (as a string).

Some entries are lists, in which case if just_first=True the first entry is returned. If just_first=False (default) this verifies there is only one entry before returning it.

write_record(self, record)

source code 

Write a single record to the output file.

Overrides: Interfaces.SequentialSequenceWriter.write_record