GenomicRanges cheat sheet
1
0
Entering edit mode
@chiragparsania-13271
Last seen 8 days ago
Australia

Every time I want to use ranges-related functions from the package GenomicRanges I need to explore docs again and again. Is this common to everyone? What's the best way to remember what GRanges functions (e.g. shift, reduce, join, disjoin, intersect, etc.) do? Like does anyone know if there's any pictorial representation or cheat sheet to remember GRanges functions? I have found one (attached here) in the package documentation. Any better than this?

GenomicRanges • 166 views
1
Entering edit mode
@mikelove
Last seen 1 hour ago
United States

Not pictoral, but I wrote up this table a while ago for quick reference:

I often now use and teach plyranges, as students are familiar with dplyr and the language adapts easily, including grouping and summarization.

https://sa-lee.github.io/plyranges/articles/an-introduction.html#arithmetic-on-ranges-1

shift(x, 5) is: shift_right(x, 5) or _upstream and _downstream can be used to move with respect to strand. The vignette above has more examples. Anchoring various points in the range and mutating the width is easy to write and read in my opinion.

0
Entering edit mode

Thanks, Love. Good to know about plyranges. I will play with that.