[BioC] help with flank()
Vincent Carey
stvjc at channing.harvard.edu
Sat Oct 16 03:29:04 CEST 2010
it isn't clear to me that flank can do it directly. but
resize( shift(ir1, -50), width=71 )
does what you asked.
On Fri, Oct 15, 2010 at 7:48 PM, joseph <jdsandjd at yahoo.com> wrote:
> 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]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>
More information about the Bioconductor
mailing list