Skip to content

Commit

Permalink
avoiding making same indexing mistake as I jusst fixed a few lines be…
Browse files Browse the repository at this point in the history
…low (1:0)
  • Loading branch information
Petr Smirnov committed May 26, 2023
1 parent 8264277 commit d54ec74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/plotting/plot-sv-calls_dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ if (!is.null(f_segments)) {


seg <-
merge(seg, bins[, .N, by = chrom][, .(chrom, N = c(0, cumsum(N)[1:(.N - 1)]))], by = "chrom")
merge(seg, bins[, .N, by = chrom][, .(chrom, N = c(0, cumsum(N)[- .N]))], by = "chrom")

# print(c(1, bps[1:(.N - 1)] + 1))
# print(bps)
Expand Down

0 comments on commit d54ec74

Please sign in to comment.