def get_slice_tuple(self, k):
        'get (seqID,start,stop) for a given key'
        try:
            sliceInfo = self.sliceDB[k]
        except KeyError:
            return '' # XMLRPC-acceptable failure code
        start = int(self.getSliceAttr(sliceInfo, 'start'))
        stop = int(self.getSliceAttr(sliceInfo, 'stop'))
        try:
            if int(self.getSliceAttr(sliceInfo, 'orientation')) < 0 \
               and start >= 0:
                start, stop = (-stop, -start) # Negative-orientation coords
        except AttributeError:
            pass
        return (self.getSliceAttr(sliceInfo, 'id'), start, stop)
dataset/ETHPy150Open cjlee112/pygr/pygr/annotation.py/AnnotationServer.get_slice_tuple/original