Hello,
I need your help. I want to compare two dataframes with genomic features like this:
More precisely, frame 2 compared to frame 1
chr start end name chr start end name
1 2 5 A 1 1 3 AA
2 10 15 B 2 9 16 BB
3 27 30 C 3 28 29 CC
As a result I want this:
Completely overlapping:
chr start end name chr start end name 2 10 15 B 2 9 16 BB
Partial overlap:
chr start end name chr start end name 1 2 5 A 1 1 3 AA
and within the range:
chr start end name chr start end name 3 27 30 C 3 28 29 CC
Are the R packages IRanges
and GenomicRanges
suitable for such analysis? Or do I have to write some > < commands?
Extremely useful add-on
http://faculty.ucr.edu/~tgirke/Documents/R_BioCond/My_R_Scripts/rangeoverlapper.R
How do I find out intergenic locations?
check the
valr
packageNot sure if this is new in IRanges but I tested using
type='any'
and it also gave me ranges from the query that were completely within the subject.