[BioC] iranges
Valerie Obenchain
vobencha at fhcrc.org
Fri Aug 8 17:28:54 CEST 2014
Did you provide 'start', 'end' and 'width' and get a confusing answer?
If yes, please show your example.
Thanks.
Valerie
On 08/08/2014 08:23 AM, Valerie Obenchain wrote:
> Hi Carol,
>
> The 'end' is the end of the range. When you specify ranges with 'end'
> and 'width' the range will always end at the 'end' value.
>
> > IRanges(end = 10, width = c(5, 10))
> IRanges of length 2
> start end width
> [1] 6 10 5
> [2] 1 10 10
>
>
> Similar reasoning for 'start' and 'width':
>
> > IRanges(start = 10, width = c(5, 10))
> IRanges of length 2
> start end width
> [1] 10 14 5
> [2] 10 19 10
>
>
> Valerie
>
>
>
> On 08/08/2014 01:29 AM, carol white wrote:
>> Hi,
>> How does width with start and end in IRanges work? I thought that if I
>> use the end with a width, then the sequence from the end with the
>> length of width is taken. However, in my case when I use width for ex
>> 20 and 10, the corresponding sequences with the length 20 and 10 are
>> not the same from the end but from the beginning. Did I misunderstood
>> some thing?
>>
>> Regards,
>>
>> Carol
>> [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> Bioconductor mailing list
>> Bioconductor at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/bioconductor
>> Search the archives:
>> http://news.gmane.org/gmane.science.biology.informatics.conductor
>>
>
>
--
Valerie Obenchain
Program in Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, Seattle, WA 98109
Email: vobencha at fhcrc.org
Phone: (206) 667-3158
More information about the Bioconductor
mailing list