def identifyVariablesPandas(design_table):

    # design table should have been processed by loadTagDataPandas already
    # just in case, re-filter for not included samples here

    design_table = design_table[design_table["include"] != 0]
    conds = design_table['group'].tolist()
    pairs = design_table['pair'].tolist()

    # TS, adapted from JJ code for DESeq2 design tables:
    # if additional columns present, pass to 'factors'
    if len(design_table.columns) > 3:
        factors = design_table.iloc[:, 3:]
    else:
        factors = None

    return conds, pairs, factors
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Expression.py/identifyVariablesPandas/original