def get_annot_obj(self, k, sliceInfo):
        'create an annotation object based on the input sliceInfo'
        start = int(self.getSliceAttr(sliceInfo, 'start'))
        stop = int(self.getSliceAttr(sliceInfo, 'stop'))

        try:
            orientation = self.getSliceAttr(sliceInfo, 'orientation')
            orientation = int(orientation)
            if orientation < 0 and 0 >= start:
                start, stop = (-stop, -start) # Negative-orientation coords
        except (AttributeError, IndexError):
            pass                        # ok if no orientation is specified.

        if start >= stop:
            raise IndexError('annotation %s has zero or negative length \
                             [%s:%s]!' % (k, start, stop))
        seq_id = self.getSliceAttr(sliceInfo, 'id')
        seq = self.seqDB[seq_id]
        return self.itemClass(k, self, seq, start, stop)
dataset/ETHPy150Open cjlee112/pygr/pygr/annotation.py/AnnotationDB.get_annot_obj/swapped operands of `>=`