shift_anchor {seqsetvis} | R Documentation |
orients the relative position of x's zero value and extends ranges to be contiguous
shift_anchor(score_dt, window_size, anchor)
score_dt |
data.table, GRanges() sufficient |
window_size |
numeric, window size used to generate socre_dt |
anchor |
character, one of c("center", "center_unstranded", "left", "left_unstranded") |
score_dt with x values shifted appropriately and start and end extended to make ranges contiguous