def _get_pathways(gene, transcript, pathways, allow_none=True):
    # get distinct pathways
    pathways = set(pathways)
    if None in pathways:
        # remove "None" if a valid pathway exists.
        if 1 > len(pathways) or allow_none is False:
           pathways.remove(None)
    return pathways
dataset/ETHPy150Open arq5x/gemini/gemini/tool_pathways.py/_get_pathways/swapped operands of `>`