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

Class PhylipWriter

source code

Interfaces.SequenceWriter --+
                            |
                           PhylipWriter

Write interlaced Phylip sequence alignments.

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

All sequences must be the same length.

Instance Methods [hide private]
 
__init__(self, handle, truncate=10)
Creates the writer object
source code
 
write_file(self, records)
Use this to write an entire file containing the given records.
source code

Inherited from Interfaces.SequenceWriter: clean

Method Details [hide private]

__init__(self, handle, truncate=10)
(Constructor)

source code 

Creates the writer object

Use the method write_file() to actually record your sequence records.

Overrides: Interfaces.SequenceWriter.__init__

write_file(self, records)

source code 

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

If records is an iterator that does not support len(records) or records[index] then it is converted into a list.

Overrides: Interfaces.SequenceWriter.write_file