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

Marcin Cieślik marcin.cieslik at gmail.com
Mon Dec 5 05:40:44 CET 2016


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]]



More information about the Bioc-devel mailing list