__init__ (
self,
alphabet=Alphabet.generic_alphabet,
title2ids=None,
)
Initialize a Scanner and Sequence Consumer.
Arguments:
o alphabet - The alphabet of the sequences to be parsed. If not
passed, this will be set as generic_alphabet.
o title2ids - A function that, when given the title of the FASTA
file (without the beginning >), will return the name, id and
description (in that order) for the record. If this is not given,
then the entire title line will be used as the description.
|