def get_bounds(reads, start_pos_index, end_pos_index):
 max_low = sys.maxint
 max_high = (- sys.maxint)
 for read in reads:
  if (read[start_pos_index] < max_low):
   max_low = read[start_pos_index]
  if (read[end_pos_index] > max_high):
   max_high = read[end_pos_index]
 return (max_low, max_high)

def get_bounds ( reads , start_pos_index , end_pos_index ) : max_low = sys . maxint max_high = ( - sys . maxint ) for read in reads : if ( read [ start_pos_index ] < max_low ) : max_low = read [ start_pos_index ] if ( read [ end_pos_index ] > max_high ) : max_high = read [ end_pos_index ] return ( max_low , max_high )
returns the minimum and maximum position for a set of reads .