FastaIterator(handle,
alphabet=SingleLetterAlphabet(),
title2ids=None)
| source code
|
Generator function to iterate over Fasta records (as SeqRecord
objects).
handle - input file alphabet - optional alphabet title2ids - A
function that, when given the title of the FASTA file (without the
beginning >), will return the id, name and description (in that order)
for the record as a tuple of strings.
If this is not given, then the entire title line will be used as the
description, and the first word as the id and name.
Note that use of title2ids matches that of Bio.Fasta.SequenceParser
but the defaults are slightly different.
|