def ade_fn2index(fn):
    """
    Split an ADE filename to get the index
    of the file in the lists of the index file.
    """
    fn = fn.split(".")[0]
    number = fn.split("_")[-1]
    number = int(number) - 1
    return number