Пример #1
0
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
Пример #2
0
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
Пример #3
0
 def __init__(self):
     """__init__(self)"""
     self._scanner = AlignAceScanner()
     self._consumer = AlignAceConsumer()
Пример #4
0
 def __init__(self):
     """__init__(self)"""
     self._scanner = AlignAceScanner()
     self._consumer = AlignAceConsumer()