Skip to content

onnx-infer: MS2 flat extraction decodes summed N-terminal + residue deltas - #146

Merged
ypriverol merged 1 commit into
mainfrom
onnx-infer/ms2-summed-delta
Oct 14, 2026
Merged

ypriverol merged 1 commit into
mainfrom
onnx-infer/ms2-summed-delta

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Problem: andes writes stacked N-terminal + residue mods as one summed delta (e.g. fixed carbamidomethyl-C plus N-terminal acetyl as C+99.03203). RT parsing decodes this via split_nterm_residue; ms2_extract_flats.parse_flat only used match_mass, so such rows were discarded as unmapped.

Fix: parse_flat falls back to the shared mod_composition.split_nterm_residue for a residue-1 delta (when no separate n-term delta is present).

Test: test_flats_decode_summed_nterm_plus_residue_delta uses the string from fixtures/andes_writer_peptides.tsv; asserts Acetyl(0)+Carbamidomethyl(1), row kept, C-terminal amidation still decodes, bad delta still None. RED before the fix, GREEN after. Full scripts pytest: 17 passed. No Rust changes.

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf357581-6d34-4464-b61d-7f36e772387c
📥 Commits

Reviewing files that changed from the base of the PR and between adc85d6 and 8ecabff.

📒 Files selected for processing: 2
  • crates/onnx-infer/scripts/student/ms2/ms2_extract_flats.py
  • crates/onnx-infer/scripts/student/ms2/test_ms2_extract.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ypriverol
ypriverol merged commit dea5ca9 into main Oct 14, 2026
5 checks passed
ypriverol added a commit that referenced this pull request Oct 14, 2026
…conflicts resolved in #147, whose squash dropped main from the history)
timosachsenberg pushed a commit that referenced this pull request Oct 14, 2026
Brings in #143 (positional-isomer collapse) and #146. Their new
Modification literals get the annotated_site_mass field.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YGVQwwWjsRmmTgxNhQS8jk
@ypriverol
ypriverol deleted the onnx-infer/ms2-summed-delta branch October 15, 2026 16:05
@ypriverol
ypriverol restored the onnx-infer/ms2-summed-delta branch October 21, 2026 06:48
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.

1 participant