Entering edit mode
10.1 years ago
l0ka
▴
10
I have a file with SNPs positions and IDs:
chr pos dbsnp
1 909419 rs28548431
1 1120307 rs7539911
And another file with segments:
chr start end logR
1 62908 8165619 0.0518
1 8165719 10573304 -0.0406
I have to look for SNPs positions (in table 1) that span within each segment (given by start and end in table 2) and I should use R code.
Any suggestion?