Re: [R] Intersection of two chromosomal ranges

2012-03-04 Thread Martin Morgan
On 03/04/2012 11:06 AM, Yadav Sapkota wrote: 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 i

[R] Intersection of two chromosomal ranges

2012-03-04 Thread Yadav Sapkota
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-15