class AlignAceParser(AbstractParser): """Parses AlignAce data into a sequence of Motifs. """ def __init__(self): """__init__(self)""" self._scanner = AlignAceScanner() self._consumer = AlignAceConsumer() def parse(self, handle): """parse(self, handle)""" self._scanner.feed(handle, self._consumer) return self._consumer.motifs
def __init__(self): """__init__(self)""" self._scanner = AlignAceScanner() self._consumer = AlignAceConsumer()