code: def get_shape(spans, loci):
      
      width = 0
      for idx in xrange(loci.shape[0]):
          width += spans[loci[idx], 1] - spans[loci[idx], 0]
      return width
docs: get shape of new bootstrap resampled locus array