def _is_incomplete_cds(row, start_exon, end_exon):
    """
    Return True if there are signals of an incomplete CDS coming from the exon.

    In particular, if the start or end phase is different from 0 or -1.
    """
    if end_exon:
        return row['EndPhase'] in {1, 2}
    if start_exon:
        return row['StartPhase'] in {1, 2}
    return False