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

Class AlignmentWriter

source code

object --+
         |
        AlignmentWriter
Known Subclasses:

Base class for building MultipleSeqAlignment 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)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
write_file(self, alignments)
Use this to write an entire file containing the given alignments.
source code
 
clean(self, text)
Use this to avoid getting newlines in the output.
source code

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)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

write_file(self, alignments)

source code 

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

alignments - A list or iterator returning MultipleSeqAlignment 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