shift_anchor {seqsetvis} | R Documentation

## orients the relative position of x's zero value and extends ranges to be contiguous

### Description

orients the relative position of x's zero value and extends ranges to be contiguous

### Usage

    shift_anchor(score_dt, window_size, anchor)

### Arguments

`score_dt` | data.table, GRanges() sufficient
`window_size` | numeric, window size used to generate score_dt
`anchor` | character, one of c("center", "center_unstranded", "left", "left_unstranded")

### Value

score_dt with x values shifted appropriately and start and end extended to make ranges contiguous

[Package seqsetvis version 1.14.4 Index]