List of all members.
Detailed Description
Class that supports an input iterator protocol for a FASTA file.
Example that prints an exact copy of the input file:
for rec in FastaReader(open('seq.fsa','r')).records():
print rec.header(),
for line in rec.seqLines():
print line,
Instead of rec.seqLines(), you can use the methods which post-process the
raw sequences lines: seqChunks(), seqArrays(), sequence().
Member Function Documentation
def MGT::FastaIO::FastaReader::getNCBI_Id |
( |
|
self ) |
|
Assume that header starts with '>gi|1234567|' and return the string id from second field.
def MGT::FastaIO::FastaReader::getSimpleId |
( |
|
self ) |
|
Assume that header starts with '>string_no_spaces ' and return that string.
The documentation for this class was generated from the following file: