Skip to content
Prev 16102 / 21307 Next

[Bioc-devel] How to speed up GRange comparision

Hi Herve,

Thank you for your answer. pcompare works fine for me. Here my solution:

query <- GRanges(rep("chr1", 4), IRanges(c(1, 5, 9, 20), c(2, 6, 10, 22)))
subject <- GRanges(rep("chr1",4), IRanges(c(3, 1, 1, 15), c(4, 2, 2, 21)))
out <- vector("numeric", length(query))
out[(which(abs(pcompare(query, subject))<5))] <- 1
out

Carey was right that this here is off list. Next time I will pose my 
question on support.bioconductor.org <http://support.bioconductor.org>.

Best,

Tobias

Am 29.01.20 um 18:02 schrieb Pages, Herve: