def filter_silent_and_noncoding_effects(effects):
    """
    Keep only variant effects which result in modified proteins.

    Parameters
    ----------
    effects : varcode.EffectCollection
    """
    return apply_filter(
        filter_fn=lambda effect: isinstance(effect, NonsilentCodingMutation),
        collection=effects,
        result_fn=effects.clone_with_new_elements,
        filter_name="Silent mutation")
Keep only variant effects which result in modified proteins.

    Parameters
    ----------
    effects : varcode.EffectCollection