def getSpliceBounds(start, readsize, cigarTupleList):
- stopR = int(start + readsize)
offset = 0
for operation,length in cigarTupleList:
if operation == 3:
stopL = int(start + offset)
startR = int(stopL + length)
+ stopR = int(startR + readsize - offset)
return start, startR, stopL, stopR
else: