tidyomics / plyranges

A grammar of genomic data transformation
https://tidyomics.github.io/plyranges/
137 stars 19 forks source link

Question about usability #87

Closed tonperre closed 3 years ago

tonperre commented 3 years ago

Hi,

I just wondered how to use Plyranges to combine two datasets (one with the peaks, one with the intervals I want to compute the peaks in) to get the average peak score per interval I tried with join_overlap but I have the feeling that it makes duplicated regarding the strands ?

Best

sa-lee commented 3 years ago

If you want the overlaps to account for strand, use the join_overlap_*_directed family of functions.

sa-lee commented 3 years ago

Also we have an example of doing something similar to this in our fluentGenomics workflowhttps://bioconductor.org/packages/3.13/workflows/vignettes/fluentGenomics/inst/doc/fluentGenomics.html