Skip to content

Option for strand-aware expand - #152

Draft
emdann wants to merge 7 commits into
open2c:mainfrom
emdann:strand-aware-expand
Draft

Option for strand-aware expand#152
emdann wants to merge 7 commits into
open2c:mainfrom
emdann:strand-aware-expand

Conversation

@emdann

Copy link
Copy Markdown

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

@nvictus

Copy link
Copy Markdown
Member

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
nvictusforce-pushed the main branch 2 times, most recently from 1875675 to b46897aCompareApril 21, 2024 21:18
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@emdann@nvictus