Skip to content
Snippets Groups Projects
Commit 8916a913 authored by Sascha Meiers's avatar Sascha Meiers
Browse files

solve off-by-one error in segment breakpoint. Those are reported in 0-based coordinates

parent 9dd6405d
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ mosaiClassifierPrepare <- function(counts, info, strand, segs, normVector = NULL
segs[, from := data.table::shift(bps,fill = 0) + 1, by = chrom]
# rename the "bps" column to "to"
segs[, `:=`(to = bps, bps = NULL, k = NULL)]
segs[, `:=`(to = bps + 1, bps = NULL, k = NULL)]
# Add coordinates
addPositions(segs, counts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment