Hi,

I want to merge multiple chromosomal regions based on their common
intersecting regions. I tried couple of things using while and if loops but
did not work out.

I would appreciate if anyone could provide me a small piece of code in R to
get the intersection of following example:

chr1: 100-150
chr1: 79-250
chr1: 100-175
chr1: 300-350

I want the intersection of all four regions as follow:
chr1: 100-150
chr1: 300-350

I have thousands of these regions (some overlap and some not).

Regards,
--Yadav

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to