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

Class AlignmentWriter

source code

Known Subclasses:

Base class for building Alignment writers.

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
 
clean(self, text)
Use this to avoid getting newlines in the output.
source code
 
write_file(self, alignments)
Use this to write an entire file containing the given alignments.
source code
Method Details [hide private]

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.

This method should be replaced by any derived class to do something useful. It should return the number of alignments