Skip to content

Add progress logging to Biosaur2 tool - #8392

Merged
timosachsenberg merged 2 commits into
biosaur2from
codex/move-thread-parameter-from-biosaur-algorithm
Nov 25, 2025
Merged

timosachsenberg merged 2 commits into
biosaur2from
codex/move-thread-parameter-from-biosaur-algorithm

Conversation

@timosachsenberg

Copy link
Copy Markdown
Contributor

Summary

  • add ProgressLogger/StopWatch instrumentation to the Biosaur2 TOPP tool
  • report timings for loading, feature finding, and writing outputs

Testing

  • not run (not requested)

Codex Task

@coderabbitai

coderabbitai Bot commented Nov 25, 2025 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/move-thread-parameter-from-biosaur-algorithm

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


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 and usage tips.

@timosachsenberg
timosachsenberg merged commit b93dc43 into biosaur2 Nov 25, 2025
@timosachsenberg
timosachsenberg deleted the codex/move-thread-parameter-from-biosaur-algorithm branch November 25, 2025 08:20
timosachsenberg added a commit that referenced this pull request Nov 28, 2025
…ation (#8385)

* added biosaur2 imp

* move to algo

* add more tests

* inital tests (probably still wrong)

* forgot files

* reuse median calculation

* test update

* doc

* Fix FAIMS drift time validation in Biosaur2Algorithm (#8387)

* Initial plan

* Fix FAIMS validation to only throw for true ion mobility

Co-authored-by: timosachsenberg <[email protected]>

* Refactor: extract shouldThrowForMissingIM helper method

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

* Replace hardcoded proton mass with Constants::PROTON_MASS_U (#8391)

* Initial plan

* Replace hardcoded proton mass with Constants::PROTON_MASS_U

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

* Add error handling for file output operations in Biosaur2Algorithm (#8390)

* Initial plan

* Add error handling for file output operations in writeTSV and writeHills

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

* Refactor Biosaur2Algorithm to follow FeatureFinderIdentification pattern and eliminate unnecessary MSExperiment copies (#8389)

* Initial plan

* Optimize MSExperiment copy to avoid unnecessary memory allocation

Only copy the input MSExperiment when modifications are actually needed (MS level filtering, profile mode, or TOF mode). Use a const reference to the input when no modifications are required, avoiding costly deep copies for large LC-MS datasets.

Co-authored-by: timosachsenberg <[email protected]>

* Refactor Biosaur2Algorithm to follow FeatureFinderIdentification pattern

- Add setMSData() methods (const& and &&) for copy/move semantics
- Add getMSData() methods for accessing internal MS data
- Store MS data as member variable ms_data_
- Update run() methods to work on internal data instead of taking MSExperiment parameter
- Update TOPP tool to load data directly into algorithm via getMSData()
- Update Python bindings to reflect new API
- Simplifies data flow and enables move semantics to avoid copies when loading data

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Co-authored-by: Timo Sachsenberg <[email protected]>

* Remove wrapping of nested classes in Biosaur2Algorithm.pxd (#8388)

* Initial plan

* Fix nested cdefs in Biosaur2Algorithm.pxd by moving to module level with qualified names

Co-authored-by: timosachsenberg <[email protected]>

* Remove wrapping of nested classes and methods that use them

Co-authored-by: timosachsenberg <[email protected]>

* Remove methods using unwrapped nested types (Hill, PeptideFeature)

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>
Co-authored-by: Timo Sachsenberg <[email protected]>

* closer to python implementation

* closer to python

* fix: put into neighboring bins

* rt apex check

* improve FAIMS support

* minor refactoring

* Add progress logging to Biosaur2 tool (#8392)

* Add progress logging to Biosaur2 tool

* Add timing logs for Biosaur2 subalgorithms

* add some output message

* speed up apex selection

* performance fix

* add doc

* reduce test size

* fix name (wrong in python)

* minor clarifications

* refactor out some functions

* fix non unique ID assignment

* simplify indexing code

* move debug code

* proper FAIMS parallelization

* greatly simplify FAIMS logic

* rename

* write out FAIMS_CV

* break complex functions down into smaller ones

* make avg calculation thread safe

* pasef seems to work

* minor corner case

* fix shift calculation

* Fix TOPP_Biosaur2 references to TOPP_FeatureFinderLFQ in documentation (#8397)

* Initial plan

* Fix tool name in TOPP.doxygen from TOPP_Biosaur2 to TOPP_FeatureFinderLFQ

Co-authored-by: timosachsenberg <[email protected]>

* Fix TOPP_Biosaur2 reference in Biosaur2Algorithm.h to TOPP_FeatureFinderLFQ

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

* fix simd (#8402)

* Initial plan

* Add /openmp:experimental flag for MSVC to support #pragma omp simd

Co-authored-by: timosachsenberg <[email protected]>

* Improve comments explaining /openmp:experimental as superset of /openmp

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant