Repository navigation
Topp quality control - #38
Merged
Merged
Conversation
cbielow
reviewed
Mar 20, 2019
| { | ||
| public: | ||
| // Constructors | ||
| Status() |
cbielow
reviewed
Mar 20, 2019
| } | ||
| Status& operator=(const Status& stat) = default; | ||
| // Bitwise operators | ||
| Status operator&(const Requires& req) |
Owner
There was a problem hiding this comment.
add const, since the function does not modify the object
cbielow
reviewed
Mar 20, 2019
| return *this; | ||
| } | ||
| // Check if input status fulfills requirement status | ||
| bool isSupersetOff(const Status& stat) |
cbielow
reviewed
Mar 20, 2019
| private: | ||
| UInt64 value_; | ||
| }; | ||
| // Return requirements ! |
Owner
There was a problem hiding this comment.
/**
@brief Returns the input data requirements of the compute(...) function
**/
cbielow
reviewed
Mar 20, 2019
| private: | ||
| void updateStatus_(QCBase::Status& status, UInt64& number_exps, const StringList& files, const String& port, const QCBase::Requires& req) | ||
| { | ||
| if (!files.empty()) |
Owner
There was a problem hiding this comment.
document a little?
// since files are optional, leave when not provided by user
...
Owner
There was a problem hiding this comment.
suggestion: inverse conditon and be done (no block)
if (files.empty) return;
cbielow
reviewed
Mar 20, 2019
| cerr << port + ": invalid number of files. Expected were " << number_exps << ".\n"; | ||
| exit(ILLEGAL_PARAMETERS); | ||
| } | ||
| else |
Owner
There was a problem hiding this comment.
suggestion: remove else line, to make clear that is always executed when nothing went wrong
cbielow
reviewed
Mar 20, 2019
| ProteinResolver | ||
| PTModel | ||
| PTPredict | ||
| QualityControl |
Owner
There was a problem hiding this comment.
no tabs.
set IDE to replace every tab with 2 spaces
cbielow
reviewed
Mar 20, 2019
| // it gets automatically called on tool execution | ||
| void registerOptionsAndFlags_() override | ||
| { | ||
| registerInputFileList_("in_raw","<file>",ListUtils::create<String>(""),"MzML input", false); |
cbielow
reviewed
Mar 20, 2019
| void registerOptionsAndFlags_() override | ||
| { | ||
| registerInputFileList_("in_raw","<file>",ListUtils::create<String>(""),"MzML input", false); | ||
| setValidFormats_("in_raw", ListUtils::create<String>("mzML")); |
cbielow
pushed a commit
that referenced
this pull request
Aug 26, 2026
…MS#9767 audit (OpenMS#9790) Fixes 14 of the "no-doubt, easy" defects catalogued in the implementation- consistency audit OpenMS#9767. Each fix is small and localized, ships with a focused regression test that fails (crash/hang/assert) before and passes after, and preserves behavior on valid inputs (only the buggy edge cases change). The set was reviewed with Codex and CodeRabbit; their findings are incorporated below. Boundary / crash / underflow: - #4 QTClusterFinder / FeatureGroupingAlgorithmKD: guard the empty mass range so feature-empty input maps don't dereference front()/back()/size()-1. The guards run before the linking work: KD calls postprocess_() first so per-map protein/unassigned-peptide IDs survive; QT returns before the single-partition branch, whose setParameters_() otherwise throws on the empty maps' invalid max m/z (the <2-maps case is validated by the caller). - #5 TheoreticalSpectrumGenerator: internal-fragment loop bound underflowed for peptides shorter than 4 (l < size-1-2) -> use additive l+3 < size. - #18 MzTab nextPSMRow (both streams): empty hit list underflowed size()-1 and looped forever with export_all_psms -> use current_psm_idx_+1 >= size(). - #30 OMSSACSVFile::load: bound the quote-skipping scan by line.end(). Correctness (wrong field / sentinel / flag): - #3 IDScoreGetterSetter::addToPeptideScoreMap_: the try_emplace "inserted" flag was misused, so a duplicated sequence never kept a later better score. Now updates BOTH the score and its target/decoy label, and resolves equal-score target/decoy ties to the target (matching getPickedProteinScores_), so the peptide-level representative is deterministic and input-order independent. - #6 MRMFeatureFilter: group retention_time_u %RSD read the _l mean/variance. - #12 ConsensusFeature range max sentinel minPositive() -> minNegative(). - #35 TIC::Result::operator== now includes relative_intensities. Serialization round-trip: - #17 Base64::decodeStrings: keep length-1 segments (dropped single-char strings). Also updates the malformed "====" corrupted-input expectation (now decodes to one placeholder byte instead of being silently dropped). - #19 ArrowIOHelpers: parse int meta with stoll -> SignedSize (was 32-bit). - #20 FeatureMapArrowIO::importPSMsFromArrow: group PSM rows by P_ID value, not by row adjacency (matches QPXFile/ConsensusMapArrowIO). Stale-state on reload / clear: - #27 QcMLFile::load: also clear derived run_/set_Name_ID_map_. - #32 CalibrationData::clear: also clear groups_. - #33 KDTreeFeatureMaps: init num_maps_{0}; clear() also clears rt_ cache. Not included: #1 (=OpenMS#9488 PROC-23, already in open PR OpenMS#9616); #2 (correct but the pooled split-charge FDR path has order-dependent side effects that preclude a clean regression test in isolation); #7 (percentile index -- verified NOT a bug: the "-1" is part of the double expression, so the negative value truncates to 0, no underflow); #38 (TOPP-tool aux-array desync, needs a CLI test). Remaining audit items need an API/deprecate decision. Co-authored-by: Claude Opus 4.8 (1M context) <[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.
includes changed base class
and
adjusted QCTOPPTool