genericEntryIteratorGenerator(startEntry=None,
endEntry=None,
head=False,
tail=False,
strip=False)
| source code
|
Transfome a text line iterator to an entry oriented iterator.
This iterator converted is usefull to implement first stage of flat
file parsing.
- Parameters:
startEntry (str or None) - a regular pattern matching the beginning of an entry
endEntry (str or None) - a regular pattern matching the end of an entry
head (bool ) - indicate if an header is present before the first entry (as in
many original genbank files)
tail (bool ) - indicate if some extra informations are present after the last
entry.
- Returns: an iterator on
str
- an iterator on entries in text format
|