Package Bio :: Package AlignIO :: Module Interfaces :: Class SequentialAlignmentWriter
[hide private]
[frames] | no frames]

Class SequentialAlignmentWriter

source code

AlignmentWriter --+
                  |
                 SequentialAlignmentWriter
Known Subclasses:

Base class for building Alignment writers.

This assumes each alignment can be simply appended to the file. You should write a write_alignment() method. You may wish to redefine the __init__ method as well

Instance Methods [hide private]
 
__init__(self, handle) source code
 
write_file(self, alignments)
Use this to write an entire file containing the given alignments.
source code
 
write_header(self)
Use this to write any header.
source code
 
write_footer(self)
Use this to write any footer.
source code
 
write_alignment(self, alignment)
Use this to write a single alignment.
source code

Inherited from AlignmentWriter: clean

Method Details [hide private]

__init__(self, handle)
(Constructor)

source code 
Overrides: AlignmentWriter.__init__

write_file(self, alignments)

source code 

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

alignments - A list or iterator returning Alignment objects

In general, this method can only be called once per file.

Overrides: AlignmentWriter.write_file

write_header(self)

source code 

Use this to write any header.

This method should be replaced by any derived class to do something useful.

write_footer(self)

source code 

Use this to write any footer.

This method should be replaced by any derived class to do something useful.

write_alignment(self, alignment)

source code 

Use this to write a single alignment.

This method should be replaced by any derived class to do something useful.