code: public float[] query(Region region) throws IOException {
          BigWigIterator bigWigIterator = iterator(region);
          float[] values = new float[region.getEnd() - region.getStart() + 1];
          while (bigWigIterator.hasNext()) {
              WigItem wigItem = bigWigIterator.next();
              for (int i = wigItem.getStartBase(), j = wigItem.getStartBase() - region.getStart(); i <= wigItem.getEndBase(); i++, j++) {
                  values[j] = wigItem.getWigValue();
              }
          }
          return values;
      }
docs: Query by a given region.
  
  @param region    Region target
  @return          Array of floating values for that region
  @throws IOException