def length_of_associated_transcript(effect):
    """
    Length of spliced mRNA sequence of transcript associated with effect,
    if there is one (otherwise return 0).
    """
    return apply_to_transcript_if_exists(
        effect=effect,
        fn=lambda t: len(t.sequence),
        default=0)
def length_of_associated_transcript ( effect ) : return apply_to_transcript_if_exists ( effect = effect , fn = lambda t : len ( t . sequence ) , default = 0 )
Length of spliced mRNA sequence of transcript associated with effect,
    if there is one (otherwise return 0).