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

Class PhylipIterator

source code

Interfaces.AlignmentIterator --+
                               |
                              PhylipIterator

Reads a Phylip alignment file returning a MultipleSeqAlignment iterator.

Record identifiers are limited to at most 10 characters.

It only copes with interlaced phylip files! Sequential files won't work where the sequences are split over multiple lines.

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

Instance Methods [hide private]
 
_is_header(self, line) source code
 
next(self)
Return the next alignment in the file.
source code

Inherited from Interfaces.AlignmentIterator: __init__, __iter__

Method Details [hide private]

next(self)

source code 

Return the next alignment in the file.

This method should be replaced by any derived class to do something useful.

Overrides: Interfaces.AlignmentIterator.next
(inherited documentation)