plyranges icon indicating copy to clipboard operation
plyranges copied to clipboard

other endomorphic methods

Open sa-lee opened this issue 7 years ago • 1 comments

Some gaps in the API that are covered by GenomicRanges are slidingWindows and tile, we could make the following: set_tiles set_windows

sa-lee avatar Nov 29 '17 05:11 sa-lee

Are these actually setting the new ranges on the input? I think those would produce new ranges. I think tile() is already a verb; we may not need to change it. slidingWindows() could become make_sliding_windows().

I was thinking yesterday that we may want a verb, if we do not already have it, that converts from a GRanges to a GPos, i.e., it expands ranges into position-wise elements. The original design document suggests compute_runs() for doing the opposite (GPos->GRanges). But for GRanges->GPos, what would be a good verb? expand_to_positions()? Maybe compute_runs() should instead be collapse_to_runs()?

lawremi avatar Nov 29 '17 13:11 lawremi