def convert_window_size(ws):
    """
    This function converts the shorthand input window size
    and returns an integer of the same value (i.e. "100kb" == int(100000))
    Args:
        ws: window size (bp/kb/mb)
    Returns: Integer of window size
    """
    window_size = None
    if "bp" in ws:
        window_size = int(ws.strip("bp"))*100
    elif "kb" in ws:
        window_size = int(ws.strip("kb"))*1000
    elif "mb" in ws:
        window_size = int(ws.strip("mb"))*10000
    return window_size