bioframe icon indicating copy to clipboard operation
bioframe copied to clipboard

Option for strand-aware expand

Open emdann opened this issue 2 years ago • 1 comments

Following discussion with @ivirshup in #144, this is a proposed implementation for a strand-aware expand operation, adding the option direction_col.

emdann avatar May 07 '23 22:05 emdann

I migrated the strand-awareness logic to a new function bioframe.shift, basically following the proposal here.

Unlike expand, the semantics of shift always treats negative values as upstream and positive as downstream for both bounds of the ranges. expand itself could be deprecated.

nvictus avatar Apr 07 '24 15:04 nvictus