import re


def _filter_tre_measure_columns(df_experiments):
    """ get columns related to TRE measures

    :param DF df_experiments: experiment table
    :return tuple(list(str),list(str)):
    """
    # copy the initial to final for missing
    cols_init = [col for col in df_experiments.columns if re.match(r'(r)?IRE', col)]
    cols_final = [col.replace('IRE', 'TRE') for col in cols_init]
    assert len(cols_final) == len(cols_init), 'columns do not match for future zip'
    return cols_final, cols_init