Repository navigation
Introduce owning IdentificationData and native Parquet persistence - #10423
timosachsenberg wants to merge 90 commits into
Conversation
…scores Share row groups across compatible runs and inference results, preserve ownership through checked slices, and remove per-record writer copies. Add atomic dataset score selection and regression coverage; include matched Release benchmarks against legacy formats.
Replace the separate group_members table with an ordered list of alias/identity structs in each group row. Preserve duplicates, empty groups and group-only aliases, and enforce record-size limits across the full group payload.
…ading Move decoded payloads into their owners, consolidate validation, and bind column and metadata lookups once per batch. Add private per-operation worker pools with serial defaults and transactional error handling. Archive Release worker-count benchmarks and diagnose owning-load memory.
Migrate quantitative maps, filtering, FDR, alignment, RNA digestion/search, accurate-mass search, converters and bindings to owning records and stable IDs. Remove the reference graph. Store OMS schema 6 using the native typed tables and read compatible released SQLite schemas directly into owning values. Preserve quantitative metadata and links, support explicit scoreless catalogs, report compatibility-export losses and enforce the common PSM score contract. Validate with 21 C++ suites, 20 Python regressions and tool/I/O smoke checks.
Use explicit JSON conversions, stage atomic edits when payload moves may throw, and avoid Clang 18's dependent-requires crash in recursive feature traversal. Resolve the Python logging default at call time to remove the cross-module enum registration dependency. Validated with the strict Release core build, 21 C++ suites, 6,619 passing Python tests, Clang 18 before/after reproductions and allocation-failure rollback checks.
Capture the observation ID explicitly by value so Clang 18 can compile the released-OMS compatibility reader with OpenMP enabled. All 46 non-deleted C++ translation units changed in the PR pass Clang 18 syntax compilation with OpenMP. The relinked Release core passes 21 focused C++ suites and 23 owning-model Python regressions.
Replace the unreleased embedded-Parquet layout with typed SQLite rows, common score columns and ordered inference/metadata children. Preserve released OMS readers and quantitative links. Intern metadata names, stream child-table reads, and retain exact exceptional numeric values. Add SQL query/edit and complete round-trip regressions. Document Release performance and memory against the previous implementation.
…ontract Posterior error probabilities and q-values were attributed to the search engine on idXML import, so PEPs computed by IDPosteriorErrorProbability for a Comet and an MS-GF+ search had different score definitions and could not be combined. ProteinIdentification now records the producer of a derived PSM score (setScoreSoftware/getScoreSoftware/clearScoreSoftware, stored as ScoreSoftware:<score type> search parameters) without touching the search engine that ConsensusID, PeptideIndexer and the PEP model rely on. IDPosteriorErrorProbability and FalseDiscoveryRate record themselves; PercolatorAdapter and ConsensusID, which become the search engine, clear the records. IdentificationDataAdapter and IdentificationDataConverter use the recorded producer and write it back on export. The dataset-wide score contract stays strict: data with differing score definitions is rejected with both definitions named and a hint to normalize scores first (PercolatorAdapter, IDPosteriorErrorProbability, IDScoreSwitcher). Scoreless sequence catalogs (identification:catalog=true) are exempt. IdentificationData: - merge() appends to the run deque, so references to existing runs stay valid, and changes nothing when it rejects the input (self-merge is a no-op, repeated merges do not duplicate inference results). - Lazily built lookup indexes use double-checked locking, so concurrent const lookups are safe. IdentificationDataConverter exports parent coverage only as the ProteinHit coverage attribute, no longer also as a "coverage" UserParam. Expected idXML outputs of IDPosteriorErrorProbability and FalseDiscoveryRate gain the two ScoreSoftware UserParams; nothing else changes in them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
- Scoreless catalog runs share the matches table with scored runs: their score columns are written as nulls, and reading a run with fewer score definitions accepts (only) null values in the extra columns. Previously such datasets could not be stored. - Options::replace_existing replaces an existing native bundle (and nothing else) when the new one is published; a failed publication restores it. - File system errors are reported with the path (error_code overloads, no std::filesystem exceptions escaping as unrelated types); renames retry briefly for transient Windows sharing violations. - JSON validation is iterative, so deeply nested metadata cannot overflow the stack, and also validates object keys. - Row group sizes from Parquet metadata are checked for negative values and overflow, empty row groups are skipped, and a decoded row group whose length disagrees with its metadata is rejected instead of aborting inside Arrow. - Arrow >= 24 uses the Result overload of ReadRowGroup. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
… Parquet The OpenMS SQLite format (.oms) is removed: OMSFile, its loader/store and JSONExporter are gone. FileTypes::OMS remains recognized so that FileHandler reports that .oms files have to be converted with OpenMS 3.6. Where tools used .oms for owning identification data, they now use native .idparquet bundles (FileHandler sets replace_existing, so reruns overwrite): - IDMerger and MapAlignerIdentification merge/align native bundles in the owning model when all inputs are native. - NucleicAcidSearchEngine writes -db_out/-digest_out and reads -digest as native bundles. The digest carries the digestion settings (database, missed cleavages, enzyme) into later searches, reported parents are again restricted to those with hits after FDR filtering, and the idXML output keeps spectra_data_raw. - AccurateMassSearch writes ID-format annotations as .featureparquet. .featureparquet and .consensusparquet bundles now carry a map's owning IdentificationData: identifications/ is a native bundle, and identification_links.parquet holds one row per feature link (primary molecule, query or match), keyed by feature unique ID like psms.parquet. Dangling links and linked features without distinct valid unique IDs are rejected before anything is written. Bundles are written to a sibling staging directory and published when complete; an existing bundle of the same kind or an empty directory is replaced, other paths are left alone. Maps without native identification data write neither part, and OpenMS 3.6 reads the extended bundles. AccurateMassSearch (ID format): - Unmatched masses (keep_unidentified_masses) are queries without candidates instead of matches with NaN primary scores, which the model rejects; their features have no mzTab-M evidence rows. - Negative-mode candidates take the signed charge of their adduct, which previously contradicted the adduct and was rejected. - Formulas keep the canonical EmpiricalFormula element order, as before. - mzTab-M exports InChI from "inchi_key" in the inchi column only (not as an extra optional column). Test data: - IDMerger_6/MapAlignerIdentification_8 inputs are native bundles generated from the BSA2/BSA3 OMSSA idXML files. The merged result equals IDMerger on the two idXML files (except the legacy "file_origin" annotations); the expected output now reflects that instead of the old OMS conversion. - MzTabMFile_input_1.featureparquet replaces MzTabMFile_input_1.oms (converted with the 3.6 loader, InChI kept as "inchi_key"); MzTabMFile_output_1.mztab has the InChI column again. - AccurateMassSearchEngine mzTab-M outputs: evidence rows report the adduct's ion charge and theoretical m/z (previously 0 and the neutral mass), and unmatched masses have no evidence rows. Nothing else changes. - AccurateMassSearch_6 featureXML and NucleicAcidSearchEngine idXML outputs include the score type and the round-trip parameters of the owning model (identification:*, target_decoy, digestion settings, parent descriptions). pyOpenMS: OMSFile is gone. ID handles and references hash by value, predicate callbacks accept any truth value, and native I/O releases the GIL. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
- doc/openms/docs/manual/develop/identification-data.md replaces the design, validation and legacy-comparison notes with one developer page: model, score contract and its normalization, native bundles, feature/consensus map persistence, conversion and migration from .oms. - CHANGELOG: removed .oms format (convert with OpenMS 3.6), native map persistence, score producers, tool changes and pyOpenMS additions. - ExternalCode.doxygen no longer describes IDDataContainer. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
…vationMatches The @PARAM names still referred to the removed reference-graph signature, which made Doxygen_Warning_test fail. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
…rings identification_links.parquet now writes run_uuid as dictionary<int32, string> (one entry per run) and stores the Arrow schema, so readers get the dictionary type back. This is the convention for every table that carries run UUIDs, including the planned Arrow export. Plain string columns and dictionaries with other index widths (e.g. from pandas categoricals) are still accepted on input; link batches are read without concatenating dictionary chunks. The links file of MzTabMFile_input_1.featureparquet was rewritten by the current writer; all other tables of the bundle are unchanged (compared table by table). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
A run copied out of a dataset could be written back with replaceRun or Run::operator= after both the copy and the live run had allocated IDs, so the same match ID named two different payloads and feature links resolved to the wrong one (review finding 5). Only the run inside a dataset allocates IDs now: replaceRun is removed and Run is not assignable (copy and move construction remain). The dataset's own assignment uses copy-and-swap and is unaffected. pyOpenMS: - Getters still return copies. Runs are edited through RunView handles: IdentificationData.run_view(identifier) / run_view_by_uuid(uuid), also returned by addRun. A view looks its run up by UUID on every call, so it cannot dangle; it raises KeyError once the run is gone and keeps the dataset alive. view.copy() returns an owned snapshot. - FeatureMap/ConsensusMap.identification_data_view() gives live access to a map's identification data, so its runs can be edited without replacing the whole dataset. - The identification bindings use the C++ method names (camelCase) like the rest of pyOpenMS: e.g. addRun, getRuns, addMatch, setPrimaryScore, IdentificationDataAdapter.toLegacy, FileHandler.loadIdentificationData and storeIdentificationData. Struct fields keep their C++ member names; the aliasing accessors keep the _view suffix (OWNERSHIP.md). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
Legacy export of an inference result over several runs (review finding 8):
- Permissive export wrote the PSMs of every input run under the inference
result's protein run, which carries the search settings and file list of
the first run only. Run B's PSMs therefore claimed run A's settings and
lost their file.
- Strict export always threw on results of IdentificationDataInference,
because their protein, group and input score definitions had no legacy
representation.
Export now writes pooled inference the way the legacy model represents it:
one merged protein run, as IDMerger creates it, that lists the primary MS
files of all input runs; each PSM carries id_merge_index for its file. A run
joins only if its search engine and settings are mergeable by the legacy
rules (SearchParameters::mergeable). Mergeable but different settings are a
reported loss; a run that cannot join is exported as its own protein run
without the inference result. Runs without primary MS files cannot be told
apart in a merged run and are a reported loss, as are parents from several
databases.
The score definitions of an inference result are stored as
identification:inference:{parent,group,input}_score:* metadata of its legacy
protein run. Import restores them and removes the metadata, so bridge output
survives a strict idXML round trip.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
…ifier The shared tables of a native bundle recorded the owner of each row as an integer index into manifest.json (run_id, inference_id), so the Parquet files could not be queried without the manifest, and an index silently named a different run after reordering. The owner columns now carry stable keys: - queries, matches, parents: run_uuid - inputs, proteins, groups: inference_identifier (unique within a dataset) Both are dictionary<int32, string>, the convention for run UUID columns (identification_links.parquet), and inputs.run_uuid uses it as well. The manifest's table slices name their owner with the same string, and readers still check every row of a slice against it. Plain string columns from other writers are accepted on input; the links reader now uses the same helpers. Test data: the IDMerger_6 inputs and MzTabMFile_input_1.featureparquet/ identifications were converted in their key columns only and then written by the new writer. All other columns are identical to the previous files (compared table by table), and UUIDs and record IDs are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
matches.parquet named its score columns score_0, score_1, ... by position, so a SQL or DataFrame user needed manifest.json to know what a column held, and a query over several bundles silently combined different scores that shared a position. Score columns are now named after their definitions: "score_" plus the definition name in lower case, with every character other than ASCII letters and digits replaced by '_' (q-value -> score_q_value, MS:1002252 -> score_ms_1002252). Definitions that share a name get their producer appended (score_pep_idposteriorerrorprobability, score_pep_percolator), then a number. The names need no quoting in SQL. In DuckDB an unquoted MS:1002252 is read as an alias followed by a number, and names that differ only in case collide; lower-case names avoid both. The manifest records the names (score_columns, in score schema order); readers locate scores by them and reject empty or duplicate names and names of fixed columns. IdentificationDataFile::inspect returns them per run (RunDescriptor::score_columns, also in pyOpenMS). Test data: the IDMerger_6 inputs and MzTabMFile_input_1.featureparquet/ identifications differ only in the score column names and the new manifest entry (compared table by table). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
…ndles OpenMS 3.6 does not need to read the new bundles, and files in the 3.6 four-table .idparquet layout will not be read once .idparquet is written natively only. The CHANGELOG and the developer page no longer promise that 3.6 reads extended feature/consensus bundles. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
…tionDataFile_test The score column test kept the Parquet file open until the end of the section and then removed the bundle directory. Windows cannot remove an open file, so the section failed there (build-and-test windows-2025 on 45cf351; the other platforms passed). The file is now read in its own scope. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
Building identification records in Python took one statement per field, e.g.
three lines for a QualifiedAccession and six for the references and primary
ID of a feature. Every value type with bound fields now also takes its field
names as constructor keywords:
ID.MatchData(representation="LVNELTEFAK", charge=2,
parent_evidence=[ID.ParentEvidence(parent=albumin, start=65)])
Omitted fields keep their defaults. Unknown keywords and values of the wrong
type raise TypeError naming the keyword; the value is only placed once every
argument was accepted. The constructor is added after all fields of a class
are bound, so help() and the generated stubs list the keywords.
The pyOpenMS user guide shows the construction for peptide, oligonucleotide
and compound matches.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
…on values; int64 link keys
pyOpenMS identification value types:
- All value types compare by value: types with a C++ operator== use it, Match,
Identification and SourceBlock compare ID, payload, scores and candidates (the
inherited payload comparison ignored them), and options without a C++ comparison
compare field by field. Mutable values are unhashable instead of inheriting an
identity hash (or the metadata-only hash of MetaInfoInterface); IDs, references,
MoleculeIdentity and QualifiedAccession hash by value.
- Records with metadata take metadata={name: value}; MetaInfoInterface-valued
fields (ScoreDefinition.parameters) accept a dict.
- Field-by-field __repr__ for value types, and summaries for Run, RunView (also
after the run was removed) and IdentificationData. RunViews of the same run of the
same dataset object compare equal.
- AMSE_AdductInfo is also exported as AdductInfo (stub pattern entry), compares with
==/!=, hashes by value and has a repr.
Map bundles: identification_links.parquet stored feature_unique_id as uint64, while
features.parquet (unique_id) and psms.parquet (feature_unique_id) store unique IDs as
int64 with the same bits. A SQL join lost every feature with an ID >= 2^63 (172 of
395 links in MzTabMFile_input_1). The link table now uses int64 like the feature
tables; the fixture's column was converted bit for bit (other columns unchanged, all
83 linked IDs now found in features.parquet), and FeatureMapArrowIO_test checks a
high-bit ID. The developer documentation gains a DuckDB join example.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
Resolves the CHANGELOG conflict (both library entries kept). The conflict had stopped the pull_request workflows since e7d91c0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o
… regex, #10567 negative-mode ion mobility) #10568 adds a test that a reference set before align() keys adducted oligonucleotide matches with their adduct; it is ported to the owning model (an oligonucleotide run whose matches carry the sodium adduct of the ion, as NucleicAcidSearchEngine stores it). Without the fix it fails here too (0 instead of 5 alignment points). Conflict: CHANGELOG (both entries kept; the #10568 entry speaks of identification data input instead of .oms, which this branch removes). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
… names, #10584 CHANGELOG) Only the CHANGELOG conflicted: develop consolidated its entries (#10584), this branch keeps its own next to them. NucleicAcidSearchEngine copies the two new FLASH precursor annotations (flash_precursor_parent_peaks, flash_precursor_parent_queries) to the matches of the owning model, as it does the others; the new NASEDigestion tests cover RNAPrecursorCorrector only and need no port. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
…ersion, #10583, #10492, #10525, #10524, #10346, #9782) Conflicts in ConversionHelper and its test: develop removes MapConversion::convert(PeakMap -> ConsensusMap) and moves its peak selection tests to MapAlignmentAlgorithmPoseClustering_test; this branch keeps the identification data handling of the remaining conversions (convertIdentifications() and its test section). FileConverter: develop's comment about OMS input is dropped, as this branch removes .oms. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
#10412) No conflicts. #10576 replaces the shared better_ comparison of the peptide identification paths of MapAlignmentAlgorithmIdentification with the score direction of each identification; the identification data path of this branch takes the direction from the score definition and is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
…indows build-and-test (windows-2025) on dc53a94 failed in throughBundle(): remove_all() of the bundle right after IdentificationDataFile::load() threw "The process cannot access the file because it is being used by another process". The same test passed on Windows on every earlier head. load() closes every Parquet file of the bundle before it returns (an strace of IDFileConverter shows all six files closed before the output is opened), and each round trip uses its own temporary name, so the handle belonged to another process, e.g. a virus scanner that opens freshly written files. The test now retries the removal for up to five seconds before it fails. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
|
CI:
Update (Windows on Resolved: develop's Generated by Claude Code |
…nts) Only the CHANGELOG conflicted; both sides are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
…s hit counts with -rescore) No conflicts. The ProSE Test 12 change fixes the Windows failure of TOPP_ProSE_12_pin_rescore_idXML_out, which compared the Percolator scores of two -rescore runs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
…zation, #10587 MS1LabeledWorkflow, #10545 Bruker .d reader) Only CHANGELOG conflicted; both sides are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Only CHANGELOG conflicted; both sides are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
…lection, #10600 pyOpenMS docstrings) Conflicts: - FileHandler.cpp: the include list (this branch sorts it); develop's new IONMOBILITY/IMTypes.h include is added. - bind_analysis/chemistry/kernel/processing.cpp: develop corrected the docstrings and nested ConsensusFeature.Ratio, this branch had reformatted the same blocks. Develop's blocks are taken; this branch's additions are kept (RNaseDigestion.digest(run), the IdentificationData methods of FeatureMap, the native IDFilter entry points) and get docstrings. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
timosachsenberg
left a comment
There was a problem hiding this comment.
Reviewed the owning Run/IdentificationData copy and move paths, score-view ownership checks, filtering/merge commit boundaries and native Parquet staging/load boundaries at c3b2a03. No new substantive finding in those core paths. Existing build and wheel workflows passed. This is a scoped review of the data model and persistence core; I did not locally rebuild OpenMS or exhaustively exercise every tool, legacy-format conversion and Python adapter in this broad migration.
…#10301, #10611, #10606, #10608, #10609, #10617, #10610, #10578 ProSE Percolator rescoring, #10628) Only CHANGELOG conflicted; both entries are kept. Develop's changes to FalseDiscoveryRate, IDScoreGetterSetter, ConsensusMapMergerAlgorithm, FileInfo and ProSE work on the established classes, which this branch keeps as they are. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
ConsensusID.cpp, which this branch had changed to clear the score software record, is removed with the tool (#10619); ProcessingStep.h, which develop changed in a comment, stays removed with the reference graph. PercolatorAdapter is now the only tool that records itself as search engine and clears score software records (CHANGELOG and identification-data.md updated). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
…#10677, ...) Conflicts: - ConsensusMap::appendColumns: develop shifts the map indices of match-between-runs transfers (#10672); the identification data of the branch keeps its own map index shift. - FileTypes: .raw is compressed-readable (#10647); .oms stays a removed format. - CHANGELOG: both entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
CHANGELOG entries are generated weekly from the merged pull requests (.github/workflows/changelog-sync.md); pull requests no longer add them. The PR description lists the changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
# Conflicts: # src/tests/class_tests/openms/source/FeatureMapArrowIO_test.cpp
… of develop The four idXML inputs and two consensusXML outputs that develop added for IsobaricWorkflow (#10620, #10616) join the native round-trip gate. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
timosachsenberg
left a comment
There was a problem hiding this comment.
Reviewed the changes since the previous review at c3b2a03, including integration with the merged develop changes and the additional IsobaricWorkflow round-trip fixtures, through b02579b. No additional substantive finding. Build, wheel, and documentation CI passed. This is an incremental source review, not a fresh exhaustive review of all 287 files.
Conflict in src/topp/FalseDiscoveryRate.cpp: develop's class-specific q-values (-PSM_class, ClassFDR::raiseToClassQValues) run after fdr.apply, followed by the score software recording of this PR. FalseDiscoveryRate_8_output.idXML (new in develop) gets the two ScoreSoftware user parameters the FDR tool records on this branch, like the other FalseDiscoveryRate outputs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Conflict in PercolatorAdapter_idparquet_out.idXML: develop's in-process Percolator fix (#10721, pi0 only for mix-max) changes the q-values and PEPs; this branch's expected output for the native input bundle is regenerated with the merged code. Compared with develop's expected output for idXML input (PercolatorAdapter_1_inproc_out.idXML), the 40 PSMs have the same hits, scores, RT, m/z and meta values (within 1e-12), as before. THREAD_SAFETY.md: the GIL inventory of develop (#10747) counts this branch's bindings: no OMSFile, GIL-releasing identification data load and store in FileHandler and the match table and patches of identification data in arrow_zerocopy (85 sites, two call guards). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
…data fields once per record Run::importMatch reserved exactly one more row in every score column for each match, so every match copied all columns of its run: loading, importing or building a run with n matches took O(n^2) time (one run of 200,000 matches: 30 s to load, now 1.5 s). The columns now double when they are full; load and import end with shrinkToFit(), so the memory of a loaded dataset is unchanged. readMetadata looked up the child arrays of the metadata struct eight times per value, and StructArray::field() loads a shared pointer atomically on every call. The arrays are now looked up once per record, and duplicate names are detected with metaValueExists() instead of a set (CPU time of loading 268,000 PSMs with 15 metadata values each: -30%). The identification data benchmark passes the flanks of its synthetic evidence as characters, so it compiles again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Conflicts: - FileHandler.cpp: the includes take develop's MzPeakFile.h and drop QcMLFile.h (qcML removed in #10736); OMSFile.h and PSMArrowIO.h stay removed. - FileConverter.cpp: mzPeak input and output (#10771) without the "oms" formats, which this branch removes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Conflicts: - AppliedProcessingStep.h, DBSearchParam.h, ProcessingStep.h, ScoredProcessingResult.h (and the .cpp files #10842 split off them, METADATA/ID/sources.cmake): stay removed with the old model. - IDPosteriorErrorProbability (#10801): the derived score records its producer (ScoreSoftware) in the runs whose identifications get the PEP, i.e. the runs with an updated hit, or all runs with -ignore_bad_data. - PercolatorAdapter (#10843): the runs are marked by Percolator::markRescoredRuns(), shared with ProSE and OpenNuXL, which now also clears the score software record, since Percolator produces the PSM scores then; its class test checks that. Expected outputs: develop's new IDPosteriorErrorProbability outputs (tests 9-22) get the two ScoreSoftware UserParams, as the existing ones; the outputs equal them otherwise (checked line by line). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
std::set_intersection/std::inserter came in transitively, last through <ranges> in StringUtils.h, which develop dropped (the old model's IDDataContainer.h still provides <iterator> there via Boost.MultiIndex). Fixes the libc++ build (macOS: "no member named 'inserter' in namespace 'std'"). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Goal
Replace the reference-based identification model (
IDDataContainer,ObservationMatch, …) with an owning model that can be filtered, edited and copied without maintaining a graph of references, and give it a native Parquet format that tools, Python and SQL engines can read directly. Feature and consensus maps keep their native identification data in their Parquet bundles. The OpenMS SQLite format (.oms) and JSONExporter are removed.This PR replaces the old model and its users. It does not move the code that works on
PeptideIdentification/PeptideHitto the owning model (see To do).Developer documentation:
identification-data.md. Tutorial with 14 common processing steps (C++ and pyOpenMS, established classes vs.IdentificationData): comment. Review guide (reading order and the decisions that need a reviewer's judgement): comment.Done
Model
IdentificationDataholds runs and independent inference results. A run has its settings, one molecule kind (peptide, oligonucleotide, compound), its sources, its databases, optional database sequences, queries and matches. Matches hold a molecular string with an explicit encoding, charge, optional molecule details (name, formula, identifiers, adduct), sequence evidence, peak annotations and metadata; their scores are columns of the run.RunSettings) are the software and its version, the date, theSearchParametersand metadata.SearchParametersis now a class of its own (OpenMS/METADATA/SearchParameters.h);ProteinIdentification::SearchParametersremains as an alias.Run::getSources()) are its files, in order. ASourceis one file (SourceFile) with the identifications from it; a file may appear twice, a file without identifications keeps its source, and an empty path is an unknown file. So the legacyspectra_datalist andid_merge_indexhave no native counterpart, and the run settings cannot listspectra_data(spectra_data_rawis settings metadata).Run::getDatabases();Database: path, version, taxonomy, metadata; cf. mzIdentMLSearchDatabase) are its own records, so the search parameters in the settings leavedb,db_versionandtaxonomyempty.SequenceEvidence(where a match occurs; cf.PeptideEvidence) and the optionalDatabaseSequences (the entries of the databases, e.g. proteins with their target/decoy state; cf.DBSequence; constructible as{db, accession, TargetDecoy::TARGET}) refer to a database byDatabaseId, its index in the run.Run::qualifygives theQualifiedAccession(database path and accession) that compares across runs and datasets; inference results use it.UInt64IDs that survive copies, filtering and persistence and are never reused. Features refer to them by value (QueryReference,MatchReference), so copying a map needs no reference translation.getRun()) andRunis not assignable, so a stale copy cannot be written back over a run that allocated IDs meanwhile.Run::getRevision()counts edits.protein_score,group_score) and run-level provenance (no per-PSM assignments).merge()appends runs, keeps references to existing runs valid and changes nothing when it rejects the input. Concurrent const lookups are safe.Memory
Run::getScores(match),Run::getScore()or aScoreView, which shares ownership of the columns (it cannot dangle) and rejects matches of another state of the run (after adding a score, filtering or copying) instead of reading another match's value. Filtering compacts the columns before it commits, so it stays all or nothing.Match::getScores()/getScoreValues()are removed.MatchData::details(MoleculeDetailsin anOptionalBox: 8 bytes, deep copies; an absent box equals empty details); most peptide candidates have none.SequenceEvidencehas one-character flanks (0 if not known) and 32-bit positions; bundles still store strings anduint64and reject values that do not fit.EncodingandTargetDecoyare one byte.sizeof(Match)376 → 136 bytes (PeptideHit: 120),sizeof(SequenceEvidence)136 → 64 (PeptideEvidence: 48). Heap in use for a synthetic 268,000-PSM idXML (4 runs, 16 meta values per PSM, 20,000 proteins with sequences per run; measured atd44413d871): loaded from.idparquet275 MiB, imported from idXML 304 MiB; the established classes take 409 MiB (before the memory work, the owning model took 407 and 430 MiB). Of the 275 MiB, the metadata of the matches (15 values per match;target_decoyis a field) take 114 MiB, match and query records with their strings and the score column 73 MiB, database sequences 54 MiB and sequence evidence 33 MiB; the ID lookup indexes, built on the first lookup, add 29 MiB. Earlier, on 268,154 real Tide PSMs (four runs from the mokapot test data, 16 meta values per PSM, 92,690 proteins), storing legacy duplicates once and releasing load slack (Run::shrinkToFit()) had brought the owning model from 538 to 297 MiB loaded from.idparquet(established classes: 384 MiB).Score contract
ScoreDefinitions (name, direction, scope, producing software and version, parameters, calibration, aggregation) and the same primary score. Primary values are required, supplementary values may be missing. Scoreless sequence catalogs (identification:catalog=true) are exempt.ProteinIdentification::setScoreSoftware/getScoreSoftware/clearScoreSoftware, stored asScoreSoftware:<score type>). IDPosteriorErrorProbability and FalseDiscoveryRate record themselves;Percolator::markRescoredRuns(), with which PercolatorAdapter, ProSE and OpenNuXL make Percolator the search engine of the runs they rescored, clears the record. PEPs of one IDPosteriorErrorProbability version on Comet and MS-GF+ searches therefore share one definition.Native format (
.idparquetdirectory).idparquetis the native format only.manifest.json(run descriptors with settings, sources and databases; score definitions, score column names, table slices) and shared tablesqueries,matches,database_sequences,inputs,proteins,groups. Runs and inference results share files and row groups. Evidence and database sequences store the index of their database (uint32).run_uuid(queries, matches, database_sequences) orinference_identifier(inputs, proteins, groups);score_plus the lower-cased name, other characters than ASCII letters and digits replaced by_(q-value→score_q_value); shared names get the producer appended (score_pep_percolator), then a number. These names need no quoting in DuckDB, which reads an unquotedMS:1002252as an alias and treats names that differ only in case as equal.IdentificationDataFile: owningload/store,loadRun,inspect(also returns the score column names), projected streamingscan, streaming subset export (filter), optional private Arrow thread pool (Options::threads).Options::replace_existingreplaces an existing native bundle and nothing else;FileHandlersets it, so tool reruns overwrite their output. Failed loads leave the destination unchanged.FileHandleroverloads forProteinIdentification/PeptideIdentificationlists import and export throughIdentificationDataAdapter, so every tool that writes.idparquetwrites native bundles. Legacy loads of native bundles give each protein run a fresh identifier, likeIdXMLFile. Removed: the four-table layout of OpenMS 3.6 (psms,proteins,protein_groups,search_params;PSMArrowIO). It is not read; loading one names the release that converts it (IDFileConverter of OpenMS 3.6, to idXML).Arrow access
IdentificationDataArrow::matchTable()returns the matches as anarrow::Tablewith the columns ofmatches.parquet(row code shared withIdentificationDataFile),run_uuidlast as a dictionary-encoded string. The schema metadata holds the score definitions and metadata descriptors (JSON, as in the manifest), the primary score and the run revisions. An overload takes the projection ofIdentificationDataFile::scan().applyPatch()edits matches from a table or record batch stream keyed byrun_uuidandmatch_id: score columns named as inmatchTable()(null or NaN removes a supplementary value; the primary score cannot be removed) andtarget_decoy. Every key and value is checked first; the patched runs are edited as copies and swapped in, so a patch applies completely or not at all, and runs stay in place.PatchOptions::add_scoresadds score definitions to every scored run first (one ordered schema remains), e.g. for rescoring output. Revision checks are opt-in (PatchOptions::expected_revisions), because tables that went through pandas or polars lose the schema metadata. Keys may be strings, large strings, string views or dictionaries, and any integer type.Feature and consensus maps
.featureparquet/.consensusparquetbundles of maps with native identification data addidentifications/(a native bundle) andidentification_links.parquet(one row per primary/query/match link, keyed by feature unique ID; subordinates included). The feature tables themselves are unchanged. The link key is anint64with the bits of the unique ID, likeunique_idin the feature tables andfeature_unique_idinpsms.parquet, so the tables join in SQL without a cast (example in the developer documentation).Conversion to and from the established classes
IdentificationDataAdapter::fromLegacy/toLegacy(strict by default;LossPolicy::ALLOWreports losses instead).FileHandler::loadIdentifications/storeIdentificationswithIdentificationDataread and write native bundles directly and other formats through the adapter.IdentificationDataRoundTrip_test), and for all 294 of the 309 idXML files of the test data that import; the other 15 are rejected with the reason (12 with differing PSM score definitions, 2 with an evidence start after its end, 1 with an empty molecular representation). For this, import creates the runs in the order of the protein runs and numbers queries in legacy order across runs; export writes peptide identifications by query ID (run by run if runs share IDs, e.g. after a merge), and map associations follow query IDs. Runs that share a legacy protein identifier with different contents (e.g. split, then merged) are exported under their own names.spectra_datainto its sources and puts each PSM in the source itsid_merge_indexnames (else the only file, else an unknown source); export rebuilds both from the sources, writingid_merge_indexfor runs with several files. An emptyspectra_datalist names no files, as no list ([FIX] ProteinIdentification: an empty file list ('spectra_data') is not stored #10548), so the run settings keep none, and a single-file run keeps anid_merge_indexthat names its file. Search engine, version, date, search parameters and meta values become the run settings, anddb/db_version/taxonomya database of the run; export puts the first database back into the search parameters and reports a run with several databases as a loss. Peptide and RNA/compound conversion share these rules (IdentificationDataAdapter::settingsFromLegacy,databaseFromLegacy,settingsToLegacy,addLegacySources,legacySource,legacyFiles).legacy:<run>only if export cannot rebuild it exactly from the run's settings and database sequences: search engine output (proteins without scores) needs none; protein scores, groups or coverage do. Its hits keep only inference values and the target/decoy state; sequence, description and metadata are stored once in the database sequences (IdentificationDataAdapter::proteinHits()completes them on export).identification:legacy_protein_score_typeandidentification:legacy_protein_higher_score_better.data_id,target_decoyof peptide and protein hits is thetarget_decoyfield, and a protein hit's description is the database sequence'sdescription. Export writes them back; a value it would write differently (another spelling or value type) stays metadata.id_merge_indexper PSM, if the runs' search settings are mergeable (SearchParameters::mergeable); a run that cannot join is exported as its own protein run without the inference result. Inference score definitions survive the round trip asidentification:inference:*metadata.ProteinRunReferences([FEATURE,FIX] Every PeptideIdentification needs its ProteinIdentification run #10475).Tools
.oms(OMSFile,OMSFileLoad,OMSFileStore) and JSONExporter. Loading a.omsfile reports that it must be converted with OpenMS 3.6 (IDFileConverter, FileConverter).-db_out,-digest_outand-digestuse native bundles; a stored digest carries database, missed cleavages and enzyme; reported database sequences are those with hits after FDR; idXML output keepsspectra_data_raw. The modification-aware digestion of develop (Complete modification-aware RNA digestion and terminal candidates #10517) works on the run's database sequences: internal fixed modifications are applied before the cleavage, cleavage-blocking variable modifications are placed during it (evidence refers to the unmodified database sequence), and a stored digest is classified with the enzyme it records.-out_annotation *.featureparquetfor the ID format. Unmatched masses are queries without candidates; negative-mode matches take the signed adduct charge. mzTab-M evidence rows report the ion charge and theoretical m/z (previously 0 and the neutral mass).Develop changes in the owning model
Develop's changes to the code this PR replaces are ported:
IDFilter::filterObservationMatchesByScore()checks every stored value of the score before removing anything and throwsException::InvalidValuefor non-finite values and for PSM- or peptide-level q-values outside [0, 1] (develop's three test sections rewritten for the owning model).MVH scoreorhyperscore).BedRModFilereads the oligonucleotide runs (the sequence evidence of a match gives its parent mappings, decoy database sequences are skipped, uncatalogued ones count as target, and an observation is a spectrum of a file);IdentificationDataConverter::exportMzTab()exports given query and match metadata keys asopt_global_<key>columns and the adduct asopt_global_adduct(also in pyOpenMS). Develop'sOMSFileand minimalIdentificationDatabindings are not taken.Glu-C) because ProteaseDB indexes synonyms only as written #10571/[FIX] DigestionEnzymeDB: find names and synonyms ignoring case and separators (#10571) #10574/[CLEANUP] Enzymes: drop redundant synonyms; pepXML: drop toLower, document enzyme precedence #10579: NucleicAcidSearchEngine storesprecursor_percentageon the query and theflash_precursor_*/flash_precursor_parent_*values on the matches.MapAlignmentAlgorithmIdentification::setReference()uses an oligonucleotide run whose matches carry the sodium adduct of the ion (it fails without the fix).RNaseDigestion.digest(run), the identification data methods of the maps, the native IDFilter entry points) have docstrings in the same form and pass develop's docstring and signature tests.Percolator::markRescoredRuns(), which records Percolator as the search engine and clears the score software record (Percolator_testchecks that).-PSM_classraises the PSM q-values to the class q-values before the tool records itself as the producer of the q-values.src/pyOpenMS/THREAD_SAFETY.mdcounts this branch's bindings: noOMSFile, and identification data load/store (FileHandler) and the Arrow match table and patches release the GIL (85 sites).-out/-out_mergedwith an.idparquetname write through theFileHandleroverloads, so as native bundles; develop'sProSE_20tests (the bundles, converted to idXML, give the FileInfo summary of the idXML output) pass unchanged.omsformats, which this PR removes.-ignore_bad_data).pyOpenMS
IdentificationDataFile,IdentificationDataAdapter,IdentificationDataInferenceandFileHandler.loadIdentificationData/storeIdentificationData, with the C++ method names (camelCase).IdentificationData.run_view()handles (also returned byaddRun; looked up by UUID,KeyErroronce the run is gone); map identification data throughFeatureMap/ConsensusMap.identification_data_view().ID.MatchData(representation="LVNELTEFAK", charge=2)), records with metadata alsometadata={...}; unknown keywords and wrong types raiseTypeError.MatchData.name/formula/identifiers/adductstay (backed bydetails, also exposed asMatchData.details), and flanks stay strings.Run.getScores(match)andRun.getRevision()replaceMatch.getScores().Match,IdentificationandSourcecompare ID, payload, scores and candidates. Mutable values are unhashable; IDs (includingDatabaseId), references,MoleculeIdentityandQualifiedAccessionhash by value.AMSE_AdductInfois also exported asAdductInfo.IdentificationData.to_arrow(columns=None),__arrow_c_stream__,revisions()andapply_patch(patch, add_scores, expected_revisions), which takes pyarrow tables and readers, pandas frames (without their index) or any Arrow stream and raisesValueErrorfor an invalid patch.IdentificationDataFile.psm_table()returns a flat PSM table (pyarrow) from a native bundle for code that readpsms.parquet.FalseDiscoveryRate.applyToObservationMatches,IDFilter.keepBestMatchPerObservation/filterObservationMatchesByScore/removeDecoys,MapAlignmentAlgorithmIdentification.align/setReferencefor datasets,IdentificationDataConverter.exportMzTabandimportFeatureIDs/exportFeatureIDs/importConsensusIDs/exportConsensusIDs(IDMapper's copies to links and back).Fixed during review
Use-after-free in the generic idXML importer; AccurateMassSearch failing on unmatched masses and in negative mode; an unsynchronised lazily built lookup index; scoreless catalog runs that could not be stored next to scored runs; stale run copies reusing IDs; pooled inference attached to another run's search settings in legacy export (and strict export always rejecting inference results); native I/O hardening (iterative JSON validation, row-group checks, file system errors, Arrow 24 API); InChI missing from mzTab-M output; a test that removed a bundle while a Parquet file was still open (failed on Windows), and
IdentificationDataRoundTrip_test, which retries the removal of its bundle for up to 5 s because Windows refused it once although the loader closes every file beforeload()returns; quadratic copying of the score columns when matches are added (each match reserved exactly one more row, so loading, importing or building a run with n matches took O(n²) time: 30 s instead of 1.5 s to load one run of 200,000 matches);PeptideIdentification.cppusingstd::inserterwithout including<iterator>, which broke the libc++ build once develop dropped<ranges>fromStringUtils.h(develop still gets<iterator>through the old model'sIDDataContainer.h).Changed test data and expected outputs
Each difference was checked before an expected file was changed:
ScoreSoftwareUserParams are added (also toFalseDiscoveryRate_8_output.idXML, which develop added with-PSM_class, and to the outputs of the IDPosteriorErrorProbability tests 9–22 of [FEATURE] IDPosteriorErrorProbability: use target/decoy information, robust PEP estimation across score types #10801, which equal the tool's output otherwise, line by line).IDMerger_6/MapAlignerIdentification_8inputs are native bundles generated fromshare/OpenMS/examples/BSA/BSA3_OMSSA.idXMLandBSA2_OMSSA.idXML;IDMerger_6_output.idXMLequals IDMerger on the two idXML files, apart from the legacyfile_originannotations.MzTabMFile_input_1.featureparquetreplacesMzTabMFile_input_1.oms(converted with the 3.6 loader);MzTabMFile_output_1.mztabhas the InChI column again.AccurateMassSearch_6_output.featureXML,NucleicAcidSearchEngine_11_out.idXML: score type and round-trip parameters of the owning model; the protein run ofNucleicAcidSearchEngine_11_out.idXMLhas the score type of the primary score (hyperscore).MzTabMFile_input_1.featureparquet/identification_links.parquet:feature_unique_idconverted fromuint64toint64bit for bit, other columns unchanged. Withuint64, a join withfeatures.parquetlost every feature with an ID ≥ 2^63 (172 of 395 links); now all 83 linked IDs are found.IDFileConverter_34and the JSONExporter tests are removed with the format.IDMerger_6_input1/2.idparquetandMzTabMFile_input_1.featureparquetdrop theprimary_fileskey of their sources, and the latter the runspectra_datathat its source already names.settingsinstead ofprocessingand list the database that the search parameters named underdatabases;parents.parquetbecomesdatabase_sequences.parquetwith adatabaseindex instead of the database path; the evidence column ofmatches.parquetbecomessequence_evidencewith a database index; the inference score isprotein_score. All other columns are unchanged (compared column by column).NucleicAcidSearchEngine_11_out.idXML: thespectra_dataandspectra_data_rawUserParams swap places. idXML writes meta values in the order their names were first registered, and NASE now sets the raw files before the export adds the mzML; the values are unchanged.IDMerger_idparquet_input1/2,IDRipper_4_input(now generated fromIDRipper_4_input.idXMLwith IDFileConverter; the Python generator is removed) andPercolatorAdapter_idparquet_in. The ParquetDiff tests use the formerpsms.parquetfiles as plain fixtures (ParquetDiff_input1/2.parquet);IDRipper_idparquetrips the legacy merge of IDMerger_1; the OpenNuXL test checksmatches.parquetand the manifest;NASEDigestion_testand the pyOpenMS bedRMod test read native bundles instead of.oms.IDMerger_idparquet_output.idXML: the native merge adds nofile_origin; otherwise equal toIDMerger_1_output.IDRipper_idparquet_0/1.idXML: no emptyspectra_data, which the 3.6 loader added.PercolatorAdapter_idparquet_out.idXML: equal to the output for idXML input apart from the date, last-digit PEP noise and the order of UserParams (regenerated after develop's in-process Percolator fix [FIX] In-process Percolator: use pi0 only for mix-max, as the executable #10721; its 40 PSMs have the scores of develop'sPercolatorAdapter_1_inproc_out.idXML).The PR adds no CHANGELOG entries (they are generated weekly from the merged pull requests).
Validation
At
888e255979(develop up to600c54806e):test-wheelsjobs that run the full pyOpenMS suite; build-sphinx, cppcheck and header-set-compatibility. (On the merge32a2918671, the macOS wheel build had stopped at the missing<iterator>include; see Fixed during review.)32a2918671, which differs only by the two includes).1e45ca0431): the 294 that import come back unchanged from a legacy → native → legacy round trip (compared by value); the other 15 are rejected with the reasons given above. Of the idXML files that develop added since, the IsobaricWorkflow inputs are in the round-trip gate, andEntrapmentEvaluator_1/2_input.idXMLandFalseDiscoveryRate_8_output.idXMLalso come back unchanged through a native bundle (checked at016b0fa220).Checked earlier and not repeated since: the tutorial programs (at
e17704a016: each legacy/native pair does the same work and prints the same values in C++ and Python, reviewed pair by pair against the code and the output), the user-guide examples (at062a5fae3e) and the installed-consumer tests (at1ff2ef9ec8). GUI tests were not run locally.Performance (Release build, GCC, Linux, warm file cache; code of
e8cb83bf36):run_legacy_comparison.pyon the synthetic modified-peptide data ofIdentificationDataLegacyBenchmark, medians of four reads, each in a fresh process; every read reproduced the count, content and score digests.Writing 1,000,000 × 1 takes 9.7 s as idXML and 6.6 s natively, plus 11.4 s to import from the established classes (peak RSS 1.5 GiB with both representations resident). The 268,000-PSM idXML of the memory measurement (16 meta values per PSM) reads in 16.7 s; its native bundle loads in 4.3 s, most of it the metadata of the matches. The benchmark programs are in
tools/benchmarks/identification_data.To do
Open decisions
schema_version1 can still change.Decided:
.idparquetlayout is not read, and 3.6 does not need to read the new bundles.MassErrorPPMScore→score_masserrorppmscore), so names stay predictable (noXCorr→score_x_corr).identification_links.parquetrather than in columns of the feature tables. List columns for query/match links load about 30× slower into pandas, and moving only the primary ID into the feature tables would spread the map identification code over three modules and the stored identification data over three files, for about 25% on a single DuckDB query (measured on 1 million synthetic features).Not part of this PR
PeptideIdentification/PeptideHit. About 110 files insrc/openmsandsrc/toppstill read and write identifications of maps asPeptideIdentificationlists (getPeptideIdentifications()/getUnassignedPeptideIdentifications()). This PR keeps them as they are. A separate branch,refactor/identificationdata-native-followups, moves them to the owning model to check whether a complete move away fromPeptideIdentificationandPeptideHitworks.Known limitation
🤖 Generated with Claude Code
https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o