Skip to content
Prev 6976 / 21312 Next

[Bioc-devel] A quick check for matching seqnames/order needed for Views on RleList?

Excellent news - will save the universe many hours of misunderstandings and code sleuthing.


-----Original Message-----
From: Bioc-devel [mailto:bioc-devel-bounces at r-project.org] On Behalf Of Herv? Pag?s
Sent: Friday, February 20, 2015 8:35 PM
To: Kasper Daniel Hansen; Sean Davis
Cc: bioc-devel at r-project.org
Subject: Re: [Bioc-devel] A quick check for matching seqnames/order needed for Views on RleList?

Hi guys,

Agreed. This is addressed in IRanges 2.1.40. Now you get a warning:

   >  Views(RleList(b=21:24, a=11:16), RangesList(a=IRanges(2:3, 6), b=IRanges(1, 4)))
   RleViewsList of length 2
   names(2): a b
   Warning message:
   In RleViewsList(rleList = subject, rangesList = start) :
     'rleList' was reordered so that its names match the names on
     'rangesList'

or an error:

   >  Views(RleList(b=21:24, c=11:16), RangesList(a=IRanges(2:3, 6), b=IRanges(1, 4)))
   Error in RleViewsList(rleList = subject, rangesList = start) :
     when both 'rleList' and 'rangesList' have names, the set of names must
     be the same on each object

depending on the gravity of the situation.

Thanks for your feedback.
H.
On 02/20/2015 07:38 AM, Kasper Daniel Hansen wrote:
--
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319

_______________________________________________
Bioc-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel