Repository navigation
Add error handling for file output operations in Biosaur2Algorithm - #8390
Merged
Merged
Conversation
5 tasks
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: timosachsenberg <[email protected]>
Copilot
AI
changed the title
[WIP] Draft implementation of Biosaur2 algorithm in OpenMS
Add error handling for file output operations in Biosaur2Algorithm
Nov 23, 2025
timosachsenberg
marked this pull request as ready for review
November 23, 2025 18:38
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
writeTSV()andwriteHills()methods inBiosaur2Algorithmopened output files without checking if the operation succeeded, causing silent failures when files couldn't be created due to permissions, invalid paths, or disk space issues.Changes
Exception.hinclude to support OpenMS exception handlingException::UnableToCreateFileon failureThis follows the established pattern used in other OpenMS file writing operations (e.g.,
PepXMLFile,ConsensusXMLFile).💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.