Package Bio :: Package SeqIO :: Module Interfaces :: Class SequenceWriter
[hide private]
[frames] | no frames]

Class SequenceWriter

source code

Known Subclasses:

This class should be subclassed.

Interlaced file formats (e.g. Clustal) should subclass directly.

Sequential file formats (e.g. Fasta, GenBank) should subclass the SequentialSequenceWriter class instead.

Instance Methods [hide private]
 
__init__(self, handle)
Creates the writer object.
source code
 
clean(self, text)
Use this to avoid getting newlines in the output.
source code
 
write_file(self, records)
Use this to write an entire file containing the given records.
source code
Method Details [hide private]

__init__(self, handle)
(Constructor)

source code 

Creates the writer object.

Use the method write_file() to actually record your sequence records.

write_file(self, records)

source code 

Use this to write an entire file containing the given records.

records - A list or iterator returning SeqRecord objects

This method can only be called once.