def effect_associated_with_protein_coding_gene(effect):
    """
    Parameters
    ----------
    effect : subclass of MutationEffect

    Returns True if effect is associated with a gene and that gene
    has a protein_coding biotype.
    """
    return apply_to_gene_if_exists(
        effect=effect,
        fn=lambda g: g.biotype == "protein_coding",
        default=False)
def effect_associated_with_protein_coding_gene ( effect ) : return apply_to_gene_if_exists ( effect = effect , fn = lambda g : g . biotype == "protein_coding" , default = False )
Parameters
    ----------
    effect : subclass of MutationEffect

    Returns True if effect is associated with a gene and that gene
    has a protein_coding biotype.