Skip to content

Fix read_dsrecord_from_json, which was not keeping names#414

Merged
manulera merged 1 commit intomasterfrom
fix-read_dsrecord_from_json
Mar 6, 2026
Merged

Fix read_dsrecord_from_json, which was not keeping names#414
manulera merged 1 commit intomasterfrom
fix-read_dsrecord_from_json

Conversation

@manulera
Copy link
Owner

@manulera manulera commented Mar 6, 2026

No description provided.

@manulera manulera requested a review from Copilot March 6, 2026 15:47
@manulera manulera merged commit 61a1acd into master Mar 6, 2026
11 checks passed
@manulera manulera deleted the fix-read_dsrecord_from_json branch March 6, 2026 15:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes read_dsrecord_from_json so that applying overhangs no longer drops metadata (notably the sequence name) when converting a TextFileSequence GenBank payload back into a Dseqrecord.

Changes:

  • Stop reconstructing a new Dseqrecord when overhangs are present; instead update the parsed record’s seq with the requested overhangs.
  • Preserve parsed GenBank metadata (e.g., name/annotations/features) by keeping the original Dseqrecord instance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

manulera added a commit that referenced this pull request Mar 6, 2026
manulera added a commit that referenced this pull request Mar 6, 2026
@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.07%. Comparing base (cee3e86) to head (ba180ec).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #414      +/-   ##
==========================================
- Coverage   97.07%   97.07%   -0.01%     
==========================================
  Files          31       31              
  Lines        1985     1984       -1     
==========================================
- Hits         1927     1926       -1     
  Misses         58       58              
Flag Coverage Δ
unittests 97.07% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to 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