def splitModel(model):
    '''returns the terms in the model'''
    return [x for x in
            re.split("[\.:,~+\\s*]", re.sub("~(\s*0\s*)?", "", model)) if
            len(x) > 0]
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Expression.py/splitModel/original