def parse_blat():
    """
    Parses the pslReps output file to get various information about the best hit
    
    :return: (true if hit found - False otherwise, max score, reference size, contig_1 end, contig_2 end)
    :rtype: tuple(bool, int, int, int)
    """
    with open('Phase_2/tmp.psl.besthit') as blat:
        max_score = 0
        max_score_line = ''
        for line in blat:
            line = line.split('\t')
            if int(line[0]) > max_score:
                max_score = int(line[0])
                max_score_line = line
        if max_score > 0:
            return True, max_score, int(max_score_line[14]), int(max_score_line
                [16]), int(max_score_line[12])
        return False, None, None, None
