def __getitem__(self, k):
        '''return origin,target seqpos for sequence k; raise KeyError if
        not in this edge'''
        try:
            k = k.path
        except __HOLE__:
            raise TypeError('k not a valid sequence: it has no path attribute')
        return (self.origin.getSeqPos(k.path), self.target.getSeqPos(k.path))
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/LetterEdge.__getitem__