}
// TODO -- fetch data directly in arrays to avoid creation of multiple "WigItem" objects?
IntArrayList startsList = new IntArrayList(100000);
IntArrayList endsList = new IntArrayList(100000);
FloatArrayList valuesList = new FloatArrayList(100000);
String chrAlias = chrNameMap.containsKey(chr) ? chrNameMap.get(chr) : chr;
Iterator<BedFeature> bedIterator = reader.getBigBedIterator(chrAlias, start, chrAlias, end, false);
while (bedIterator.hasNext()) {
BedFeature feat = bedIterator.next();
startsList.add(feat.getStartBase());
endsList.add(feat.getEndBase());
//valuesList.add(wi.getWigValue());
}
DataTile tile = new DataTile(startsList.toArray(), endsList.toArray(), valuesList.toArray(), null);
currentInterval = new RawDataInterval(chr, start, end, tile);
return tile;
}