GenomicRanges icon indicating copy to clipboard operation
GenomicRanges copied to clipboard

Document and export get_out_of_bound_index

Open rpolicastro opened this issue 5 years ago • 2 comments

Hello,

The internal function get_out_of_bound_index is handy for getting the index of out-of-bounds ranges. I think people would find common use for it if it was documented and exported.

Cheers!

rpolicastro avatar Jan 19 '21 18:01 rpolicastro

Hi @rpolicastro ,

What's your use case? My approach is to export and document this kind of low-level helper function only if there's a need for it.

Thanks, H.

hpages avatar Jan 22 '21 18:01 hpages

Hello @hpages,

My use was prompted by an old answer to a bioconductor post you made here.

I have ranges of variable width I want to extend, and then remove any that result in out-of-bounds ranges. There are of course ways to do so without this function, but the function was both simple and convenient.

I ended up copy/pasting the code for it into my own repo, but of course it would be better if the function itself was exported to avoid code duplication.

Cheers, Bob

rpolicastro avatar Jan 22 '21 18:01 rpolicastro