Thanks for that, I'll look into those. BEDtools looks like what I want. cheers Dan On Wed, 2010-01-20 at 07:59 -0500, Aaron Mackey wrote: > I would advise using BEDtools or the R IRanges package for this kind > of aggregation/merging work, rather than trying to reinvent this > particular wheel. > > -Aaron