Skip to content

DIA study: finalize's transfer checks, rescoring and protein groups as functions; 286 -> 181 lines - #563

Merged
ypriverol merged 1 commit into
mainfrom
refactor/dia-study-finalize
Nov 25, 2026
Merged

ypriverol merged 1 commit into
mainfrom
refactor/dia-study-finalize

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

Splits finalize in crates/andes/src/bin/andes/dia/study.rs (286 -> 181 lines) under the 250-line budget, moving code without changing it:

  • check_transfer_tables: with cross-run transfer, each run's pass-2 table must come from the study's runs and current inputs.
  • rescore_settings: each run's stored rescoring settings.
  • rescore_run: Percolator on a run's precursor PIN, then the precursor-level q-values (per transfer class too when the table has the transfer column).
  • write_protein_groups: protein inference and <base>.pg.parquet.

The steps run in the same order with the same logs and errors. The DIA tests pass.

fn_lines.tsv: drops dia/study.rs::finalize.

@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 25, 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 30 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: f4315520-7d3c-4c83-b4b7-19be91e9d274
Commits

Reviewing files that changed from the base of the PR and between d210252 and e2adf6b.

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/study.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

…scoring and protein groups as functions; 286 -> 181 lines
@ypriverol
ypriverol force-pushed the refactor/dia-study-finalize branch from e17e61b to e2adf6b Compare November 25, 2026 12:53
@ypriverol
ypriverol merged commit c6cc2ef into main Nov 25, 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