I've got two dataframes that look like this:
==fileA
LmjF.01 257506 257508 1
LmjF.01 257508 257509 2
LmjF.01 257509 257510 3
LmjF.01 257510 257511 4
LmjF.01 257511 257514 5
[...]
==fileB
LmjF.01 291121 291123 123
LmjF.01 291123 291125 122
LmjF.01 291125 291126 123
LmjF.01 291126 291128 122
LmjF.01 291128 291129 121
[...]
I would like to merge them into a single dataframe so that the first, second and third columns match in both sets, with the second and third columns being the start and end positions of the window of varying size that has the associated score in the fourth column. The fourth line is the one that I hope to have appended for each of them like so:
==fileM
LmjF.01 291121 291123 123 12
LmjF.01 291123 291125 122 43
LmjF.01 291125 291126 123 434
LmjF.01 291126 291128 122 342
LmjF.01 291128 291129 121 43
[...]
Any ideas how to do this window merging of both sets?