Entering edit mode
joseph
▴
330
@joseph-1270
Last seen 10.2 years ago
Hello
I have an IRanges object ir1:
ir1 <- IRanges(c(100,500), c(200,600))
> ir1
IRanges of length 2
start end width
[1] 100 200 101
[2] 500 600 101
can you please show me how to use flank() to create a second IRanges
object ir2
with coordinates that are 50 upstream of ir1 'start' and 20 downstream
of the
same ir1 'start'?
ir2 should look like this:
start end width
[1] 50 120 71
[2] 450 520 71
Thanks
joseph
[[alternative HTML version deleted]]