while ( gatkFeatures.peek() != null && gatkFeatures.peek().getLocation().getStart() == first.getStart() )
myFeatures.add(gatkFeatures.poll());
GenomeLoc loc = first.getLocation();
for ( final GATKFeature feature : myFeatures )
loc = loc.merge(feature.getLocation());
return new RODRecordListImpl(name, myFeatures, loc); // is this safe?
}
@Override public void remove() { throw new IllegalStateException("GRRR"); }