genomation
genomation copied to clipboard
ScoreMatrix returns matrix with wrong dimensions
Example code:
gr1 <- GRanges("a", IRanges(2:10, 3:11))
gr2 <- GRanges("a", IRanges(1, 10))
ScoreMatrix(gr1, gr2)
Expected result: 1x10 ScoreMatrix with data: 0 1 2 2 2 2 2 2 2 2
Observed result: 10x1 ScoreMatrix. The content is correct when transposed.