def _get_hit_nearest_ref_start(self, hits):
        '''Returns the hit nearest to the start of the ref sequence from the input list of hits'''
        nearest_to_start = hits[0]
        for hit in hits[1:]:
            if hit.ref_coords().start < nearest_to_start.ref_coords().start:
                nearest_to_start = hit
        return nearest_to_start
def _get_hit_nearest_ref_start ( self , hits ) : nearest_to_start = hits [ 0 ] for hit in hits [ 1 : ] : if hit . ref_coords ( ) . start < nearest_to_start . ref_coords ( ) . start : nearest_to_start = hit return nearest_to_start
Returns the hit nearest to the start of the ref sequence from the input list of hits