Given an RleList (i.e. from either calling coverage() or import.bw()) what is the best way to replace certain values?
I am interested in something this:
x #RleList x[x < 0] <- 0
I'm doing this many times, and compared to how quick most other operations on RleLists are, this step becomes the bottleneck.
Is there a better way?