| Trees | Indices | Help |
|
|---|
|
|
object --+
|
SequenceIterator --+
|
InterlacedSequenceIterator
Base class for any iterator of a non-sequential file type (DEPRECATED). This object was not intended for direct use, and is now deprecated.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Create the object. This method should be replaced by any derived class to do something useful.
|
Return the number of records. This method should be replaced by any derived class to do something useful. |
Return the requested record. This method should be replaced by any derived class to do something useful. It should NOT touch the value of self._n |
Return the next record in the file. This method should be replaced by any derived class to do something useful.
|
Iterate over the entries as a SeqRecord objects.
Example usage for Fasta files:
myFile = open("example.fasta","r")
myFastaReader = FastaIterator(myFile)
for record in myFastaReader:
print record.id
print record.seq
myFile.close()
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Feb 5 18:02:52 2013 | http://epydoc.sourceforge.net |