The desired output would only overlap with the trans row corresponding to trans$transcript_name == "ENST00000370137.6".
Here, the overlap should be based on the range as well as the metadata columns:
intron$transcript_id
trans$transcript_name
R session information
Remember to include your full R session information.
options(width = 120)
sessioninfo::session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 4.3.2 (2023-10-31)
os macOS Sonoma 14.3
system x86_64, darwin20
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz America/Toronto
date 2024-02-08
rstudio 2023.06.1+524 Mountain Hydrangea (desktop)
pandoc NA
Feature request: add an argument to the
join_overlap_intersect
function that allows additional overlap based on metadata values.For some context, here is a hypothetical example: I have two GRanges objects, one for introns and one for transcripts.
I want to join these GRanges objects so I can annotate the
intron
GRanges withgene_name
metadata.However, when I use
join_overlap_left
, the range of theintron
row overlaps both the rows fromtrans
.The desired output would only overlap with the
trans
row corresponding totrans$transcript_name == "ENST00000370137.6"
.Here, the overlap should be based on the range as well as the metadata columns:
R session information
Remember to include your full R session information.