Finding overlap in ranges with R

后端 未结 6 923
面向向阳花
面向向阳花 2020-12-01 05:13

I have two data.frames each with three columns: chrom, start & stop, let\'s call them rangesA and rangesB. For each row of rangesA, I\'m looking to find which (if any)

6条回答
  •  余生分开走
    2020-12-01 05:29

    RangesA and RangesB are clearly BED syntax, this can be done outside R in the command line with BEDtools, extremely fast and flexible with a dozen other options to work with genomic intervals. Then put the results back again into R.

    https://code.google.com/p/bedtools/

提交回复
热议问题