Hi, I am trying to apply this problem to a data frame with variants so that I can say within which domain each variant is found.
> ranges
start end domain_name
1 1 3 beginning
2 4 6 middle1
3 7 8 middle2
4 9 11 end
> positions
ID position
1 a 0
2 b 1
3 c 2
4 d 3
5 e 4
6 f 5
7 g 6
8 h 7
9 i 8
10 j 9
11 k 10
12 l 11
13 m 12
14 n 13
I want to add a column to "positions", which will tell me which domain (and there could be multiple for a single variant...) each position is found in. Thanks!
Related posts: