Skip to content

dia: the PIN rows' MS1 intensity and cuts in ms1_intensity_cuts; add_to_pin 305 -> 270 lines - #544

Merged
ypriverol merged 1 commit into
mainfrom
refactor/add-to-pin
Nov 24, 2026
Merged

ypriverol merged 1 commit into
mainfrom
refactor/add-to-pin

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Part of the function-length work: add_to_pin (crates/andes/src/bin/andes/dia/llr.rs) goes from 305 to 270 lines.

The MS1-intensity block moves unchanged to ms1_intensity_cuts. That block computes each PIN row's highest MS1 peak within tolerance of its monoisotopic m/z, plus the per-run quartiles of the anchor rows' intensities that bin it. The new function rebuilds the two-line run lookup it uses. The function's line is dropped from fn_lines.tsv.

Verification: release build; tests pass in every crate; clippy is clean with both feature sets.

…y_cuts

add_to_pin was 305 lines. Its MS1-intensity block (each row's highest MS1
peak within tolerance of its monoisotopic m/z, and the per-run quartiles
of the anchor rows' intensities that bin it) moves unchanged to
ms1_intensity_cuts, which rebuilds the two-line run lookup it uses.
add_to_pin 305 -> 270 lines.
@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 Nov 24, 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 19 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e2bca9d5-f766-4382-bfcc-969555224372
Commits

Reviewing files that changed from the base of the PR and between e3f4705 and 91e51da.

Files ignored due to path filters: 1

  • crates/andes/tests/ratchets/fn_lines.tsv is excluded by !**/*.tsv
Files selected for processing: 1

  • crates/andes/src/bin/andes/dia/llr.rs
  • 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

@ypriverol
ypriverol merged commit f514fa5 into main Nov 24, 2026
6 checks passed
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