Merge by Range in R – Applying Loops

The GenomicRanges package in Bioconductor is designed for this type of operation. Read your data in with, e.g., read.delim so that con <- textConnection(“SNP BP rs064 12292 rs319 345367 rs285 700042″) snps <- read.delim(con, head=TRUE, sep=””) con <- textConnection(“Gene BP_start BP_end E613 345344 363401 E92 694501 705408 E49 362370 368340”) ## missing trailing digit on … Read more