

def __call__(self, alignedCoords):
    'Read interval info from alignedCoords and generate actual intervals.\n\n        Information read is id, start, stop, and orientation (ori).\n        '
    for c in alignedCoords:
        if isinstance(c, (CoordsGroupStart, CoordsGroupEnd)):
            (yield c)
            continue
        try:
            srcData = c[0]
            destSet = c[1:]
        except TypeError:
            srcData = c
            destSet = [c]
        id = self.getAttr(srcData, 'id')
        start = self.getAttr(srcData, 'start')
        stop = self.getAttr(srcData, 'stop')
        ori = self.getAttr(srcData, 'ori', 1)
        srcIval = get_interval(self.srcDB[id], start, stop, ori)
        for destData in destSet:
            idDest = self.getAttr(destData, 'idDest')
            startDest = self.getAttr(destData, 'startDest')
            stopDest = self.getAttr(destData, 'stopDest')
            oriDest = self.getAttr(destData, 'oriDest', 1)
            destIval = get_interval(self.destDB[idDest], startDest, stopDest, oriDest)
            (yield (srcIval, destIval))

dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py CoordsToIntervals.__call__/original