def is_fuzzy(r, max_fuzzy_junction):
    """Return True if max consecutive mismatches <= max_fuzzy_junction; else False."""
    max_mismatches = 0
    mismatches = 0
    for m in r.alnStr:
        if m == '|':
            max_mismatches = max(max_mismatches, mismatches)
            mismatches = 0
        else:
            mismatches += 1
    max_mismatches = max(max_mismatches, mismatches)
    return max_mismatches <= max_fuzzy_junction