-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Track config options, mimick sequence length clamping as implicitly done in hgvs py #206
base: main
Are you sure you want to change the base?
Conversation
df98033
to
25376fb
Compare
WalkthroughThe changes implement additional safety checks and configuration options across multiple modules. A new conditional block in sequence-alteration methods logs a warning and clamps the altered range to avoid out-of-bounds errors. The configuration structs in several modules now include new fields ( Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant AltSeqBuilder
participant Sequence
Caller->>AltSeqBuilder: call incorporate_delins(seq, range)
AltSeqBuilder->>AltSeqBuilder: Check if range end > seq.len()
alt Out-of-bound condition met
AltSeqBuilder->>AltSeqBuilder: Log warning and clamp range
end
AltSeqBuilder->>Sequence: call replace_range(valid_range)
Sequence-->>AltSeqBuilder: Updated sequence
AltSeqBuilder-->>Caller: Return updated sequence
sequenceDiagram
participant Mapper
participant Normalizer
Mapper->>Mapper: Prepare normalizer config (incl. shuffle_direction, window_size)
Mapper->>Normalizer: Initialize Normalizer with config
Normalizer-->>Mapper: Return Normalizer instance
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (7)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #206 +/- ##
==========================================
+ Coverage 92.40% 92.42% +0.01%
==========================================
Files 18 18
Lines 11455 11481 +26
==========================================
+ Hits 10585 10611 +26
Misses 870 870
|
del seq[start:end]
will implicitly clampend
tolen(seq)
, so we mimick that here. However, this needs more investigation in the future.Summary by CodeRabbit
New Features
Bug Fixes