[Bioc-devel] split on IRanges semantic change 3.3->3.4

Michael Lawrence lawrence.michael at gene.com
Mon Dec 5 18:32:26 CET 2016


Sorry about that. I pushed a fix to devel (2.9.14) and soon release. Btw,
it's not typically a good idea to use a real valued vector as a factor. In
this case, you could use %/% or better yet a partitioning, i.e., relist(ir,
PartitioningByEnd(seq(10, 100, 10))).

Michael


On Sun, Dec 4, 2016 at 8:40 PM, Marcin Cieślik <marcin.cieslik at gmail.com>
wrote:

> Dear All,
>
> I ran into the following change in behaviour between the 3.3 and 3.4
> Bioconductor releases.
>
> The following code returns TRUE for 3.3 and FALSE for 3.4
>
> library(GenomicRanges)
> ir <- IRanges(sample(100),sample(100)+100)
> ir2 <- unlist(split(ir, ceiling(1:100 / 10)))
> all(ir==ir2)
>
> The reason is lexicographic sorting of the result list from the split.
>
> Thanks!
>
> Yours,
> Marcin
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>

	[[alternative HTML version deleted]]



More information about the Bioc-devel mailing list