Error with PlotSpatialEnrichment for specific binWidth/posMax combinations #8
Closed
Description
Reproducible minimal example:
library(RNAModR)
library(magrittr)
m1A <- system.file("extdata", "MeRIPseq_m1A_Dominissini2016_hg38.bed", package = "RNAModR") %>%
ReadBED() %>%
SmartMap(id = "m1A", refGenome = "hg38") %>%
FilterTxLoc(filter = c("5'UTR", "CDS", "3'UTR"))
null <- GenerateNull(m1A, method = "ntAbund", nt = "A")
PlotSpatialEnrichment(m5C, null, binWidth = 100, posMax = 400)
Error in seq.default(1, length(x1), deltaIdx) : invalid '(to - from)/by'
The following works
PlotSpatialEnrichment(m5C, null, binWidth = 80, posMax = 400)