Package Bio :: Package SeqIO :: Module SffIO :: Class SffWriter
[hide private]
[frames] | no frames]

Class SffWriter

source code

               object --+    
                        |    
Interfaces.SequenceWriter --+
                            |
                           SffWriter

SFF file writer.
Instance Methods [hide private]
 
__init__(self, handle, index=True, xml=None)
Creates the writer object.
source code
 
write_file(self, records)
Use this to write an entire file containing the given records.
source code
 
_write_index(self) source code
 
write_header(self) source code
 
write_record(self, record)
Write a single additional record to the output file.
source code

Inherited from Interfaces.SequenceWriter: clean

Inherited from Interfaces.SequenceWriter (private): _get_seq_string

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, handle, index=True, xml=None)
(Constructor)

source code 

Creates the writer object.

  • handle - Output handle, ideally in binary write mode.
  • index - Boolean argument, should we try and write an index?
  • xml - Optional string argument, xml manifest to be recorded in the index block (see function ReadRocheXmlManifest for reading this data).
Overrides: object.__init__

write_file(self, records)

source code 
Use this to write an entire file containing the given records.
Overrides: Interfaces.SequenceWriter.write_file

write_record(self, record)

source code 

Write a single additional record to the output file.

This assumes the header has been done.