def get_long_read_max_gap(read_name, long_reads):
    """Finds the largest gap between alignments in LongRead alignments,
    plus lengths of the  alignments 

    Returns the integer max gap
    """
    alignments = []
    for long_read in long_reads[read_name]:
        for alignment in long_read.alignments:
            alignments.append(alignment)
    alignments.sort(key=lambda x: x.query_position)

    #find biggest gap
    max_gap = 0
    for i in range(1,len(alignments)):
        curr_gap = abs(alignments[i].start - alignments[i-1].end)
        max_gap = max(max_gap,curr_gap)
    return max_gap