Hi all,
I am working on a way to find sense/antisense encoded transcripts and the amount of overlap they have.
One final piece of code I cant get together: I have a two dataframes (GRanges) with EnsT ids and start and end position of each transcript, both for sense and antisene encoded transcript. From this I want to calculate the amount of overlap of the two corresponding sense/antisense transcripts that are in the same row.
Here comes the issue: findOverlaps searches all the data of a GRanges object, instead I need it to only search for overlap in the same row number for both GRanges object. Probably easy to do, but cant find a solution in the Documentation.
Thanks beforehand!
RG
0 answers
No answers yet.
Log in to answer this question.
It would help to paste some sample data and to show the result that you want.
data and part of script I am running:
... ... ... .
Thanks! - if I just run findOverlaps with the default, I believe that it does what you need, no?
If It's not quite what you need, then just do some extra filtering on the olaps2 object, like:
This will show just the overlaps on the same row