def get_sublineage(cell, sublineage_info, patient):
    """
    :param cell: The cell name
    :param sublineage_info: Dictionary of cell names -> sublineage
    :param patient: Patient name
    :return: The cells sublineage if there is, undefined otherwise
    """
    try:
        return sublineage_info[patient + '_' + cell]
    except:
        if cell.startswith("NC"):
            return "NC"
        return "undefined"