Package Bio :: Package AlignIO :: Module MafIO :: Class MafWriter
[hide private]
[frames] | no frames]

Class MafWriter

source code

                      object --+        
                               |        
      Interfaces.AlignmentWriter --+    
                                   |    
Interfaces.SequentialAlignmentWriter --+
                                       |
                                      MafWriter

Accepts a MultipleSeqAlignment object, writes a MAF file.
Instance Methods [hide private]
 
write_header(self)
Write the MAF header.
source code
 
_write_record(self, record)
Write a single SeqRecord object to an 's' line in a MAF block (PRIVATE).
source code
 
write_alignment(self, alignment)
Write a complete alignment to a MAF block.
source code

Inherited from Interfaces.SequentialAlignmentWriter: __init__, write_file, write_footer

Inherited from Interfaces.AlignmentWriter: clean

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]

write_header(self)

source code 
Write the MAF header.
Overrides: Interfaces.SequentialAlignmentWriter.write_header

write_alignment(self, alignment)

source code 

Write a complete alignment to a MAF block.

Writes every SeqRecord in a MultipleSeqAlignment object to its own MAF block (beginning with an 'a' line, containing 's' lines).

Overrides: Interfaces.SequentialAlignmentWriter.write_alignment