ebv/create_intervals.py
def create_interval(pos, pos_type, dist):
    """ Creates a zero-based interval around the provided position (must also be 
        zero-based) of size dist on either side. """

    if pos_type == "left":
        start = pos - dist
        end = pos + dist + 1
    elif pos_type == "right":
        start = pos - dist - 1
        end = pos + dist

    return start, end
 Creates a zero-based interval around the provided position (must also be 
        zero-based) of size dist on either side. 
Creates a zero-based interval around the provided position (must also be
zero-based) of size dist on either side.
Creates a zero - based interval around the provided position ( must also be zero - based ) of size dist on either side .
def create_interval(pos, pos_type, dist):
    if pos_type == "left":
        start = pos - dist
        end = pos + dist + 1
    elif pos_type == "right":
        start = pos - dist - 1
        end = pos + dist
    return start, end
def create_interval ( pos , pos_type , dist ) : if pos_type == "left" : start = pos - dist end = pos + dist + 1 elif pos_type == "right" : start = pos - dist - 1 end = pos + dist return start , end
Creates a zero-based interval around the provided position (must also be
zero-based) of size dist on either side.
Creates a zero - based interval around the provided position ( must also be zero - based ) of size dist on either side .
""" Creates a zero-based interval around the provided position (must also be 
        zero-based) of size dist on either side. """
pos
pos_type
dist