Package Bio :: Package AlignIO :: Module PhylipIO :: Class PhylipWriter
[hide private]
[frames] | no frames]

Class PhylipWriter

source code

                      object --+        
                               |        
      Interfaces.AlignmentWriter --+    
                                   |    
Interfaces.SequentialAlignmentWriter --+
                                       |
                                      PhylipWriter
Known Subclasses:

Phylip alignment writer.
Instance Methods [hide private]
 
write_alignment(self, alignment, id_width=10)
Use this to write (another) single alignment to an open file.
source code

Inherited from Interfaces.SequentialAlignmentWriter: __init__, write_file, write_footer, write_header

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_alignment(self, alignment, id_width=10)

source code 

Use this to write (another) single alignment to an open file.

This code will write interlaced alignments (when the sequences are longer than 50 characters).

Note that record identifiers are strictly truncated to id_width, defaulting to the value required to comply with the PHYLIP standard.

For more information on the file format, please see: http://evolution.genetics.washington.edu/phylip/doc/sequence.html http://evolution.genetics.washington.edu/phylip/doc/main.html#inputfiles

Overrides: Interfaces.SequentialAlignmentWriter.write_alignment