Skip to content

Introduce owning IdentificationData and native Parquet persistence - #10423

Draft
timosachsenberg wants to merge 90 commits into
developfrom
refactor/identificationdata-value-model
Draft

timosachsenberg wants to merge 90 commits into
developfrom
refactor/identificationdata-value-model

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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/PeptideHit to 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

  • IdentificationData holds 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.
  • The settings of a run (RunSettings) are the software and its version, the date, the SearchParameters and metadata. SearchParameters is now a class of its own (OpenMS/METADATA/SearchParameters.h); ProteinIdentification::SearchParameters remains as an alias.
  • The sources of a run (Run::getSources()) are its files, in order. A Source is 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 legacy spectra_data list and id_merge_index have no native counterpart, and the run settings cannot list spectra_data (spectra_data_raw is settings metadata).
  • The databases of a run (Run::getDatabases(); Database: path, version, taxonomy, metadata; cf. mzIdentML SearchDatabase) are its own records, so the search parameters in the settings leave db, db_version and taxonomy empty. SequenceEvidence (where a match occurs; cf. PeptideEvidence) and the optional DatabaseSequences (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 by DatabaseId, its index in the run. Run::qualify gives the QualifiedAccession (database path and accession) that compares across runs and datasets; inference results use it.
  • Runs have UUIDs; queries and matches have stable UInt64 IDs 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.
  • Only the run inside a dataset allocates IDs: runs are edited in place (getRun()) and Run is not assignable, so a stale copy cannot be written back over a run that allocated IDs meanwhile. Run::getRevision() counts edits.
  • Inference results store protein and group values once, with their score definitions (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

  • Scores are per-run columns (one per score definition, a row per match) instead of a vector in every match; a match keeps a 4-byte state tag and a 4-byte row. Scores are read with Run::getScores(match), Run::getScore() or a ScoreView, 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.
  • Name, formula, identifiers and adduct are MatchData::details (MoleculeDetails in an OptionalBox: 8 bytes, deep copies; an absent box equals empty details); most peptide candidates have none. SequenceEvidence has one-character flanks (0 if not known) and 32-bit positions; bundles still store strings and uint64 and reject values that do not fit. Encoding and TargetDecoy are 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 at d44413d871): loaded from .idparquet 275 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_decoy is 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

  • All runs with matches declare the same ordered 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.
  • Data that violates the contract is rejected with both definitions named and a hint to normalize first (PercolatorAdapter, IDPosteriorErrorProbability, IDScoreSwitcher). The model never splits runs or demotes scores.
  • Derived scores belong to the tool that computed them (ProteinIdentification::setScoreSoftware/getScoreSoftware/clearScoreSoftware, stored as ScoreSoftware:<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 (.idparquet directory)

  • .idparquet is the native format only. manifest.json (run descriptors with settings, sources and databases; score definitions, score column names, table slices) and shared tables queries, 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).
  • The tables can be queried without the manifest:
    • each row names its owner in a dictionary-encoded string column: run_uuid (queries, matches, database_sequences) or inference_identifier (inputs, proteins, groups);
    • score columns are named after their definitions: 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 unquoted MS:1002252 as an alias and treats names that differ only in case as equal.
  • IdentificationDataFile: owning load/store, loadRun, inspect (also returns the score column names), projected streaming scan, streaming subset export (filter), optional private Arrow thread pool (Options::threads).
  • Writes are staged in a sibling directory and renamed into place. Options::replace_existing replaces an existing native bundle and nothing else; FileHandler sets it, so tool reruns overwrite their output. Failed loads leave the destination unchanged.
  • The FileHandler overloads for ProteinIdentification/PeptideIdentification lists import and export through IdentificationDataAdapter, so every tool that writes .idparquet writes native bundles. Legacy loads of native bundles give each protein run a fresh identifier, like IdXMLFile. 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 an arrow::Table with the columns of matches.parquet (row code shared with IdentificationDataFile), run_uuid last 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 of IdentificationDataFile::scan().
  • applyPatch() edits matches from a table or record batch stream keyed by run_uuid and match_id: score columns named as in matchTable() (null or NaN removes a supplementary value; the primary score cannot be removed) and target_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_scores adds 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/.consensusparquet bundles of maps with native identification data add identifications/ (a native bundle) and identification_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 an int64 with the bits of the unique ID, like unique_id in the feature tables and feature_unique_id in psms.parquet, so the tables join in SQL without a cast (example in the developer documentation).
  • Dangling links and linked features without distinct unique IDs are rejected before anything is written. Bundles are staged and published when complete.

Conversion to and from the established classes

  • IdentificationDataAdapter::fromLegacy/toLegacy (strict by default; LossPolicy::ALLOW reports losses instead). FileHandler::loadIdentifications/storeIdentifications with IdentificationData read and write native bundles directly and other formats through the adapter.
  • Legacy → native → legacy round trips are exact for the golden outputs of IDMerger, PercolatorAdapter, ProteomicsLFQ and IsobaricWorkflow (21 idXML files, 17 consensus maps; 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.
  • Import turns a legacy run's spectra_data into its sources and puts each PSM in the source its id_merge_index names (else the only file, else an unknown source); export rebuilds both from the sources, writing id_merge_index for runs with several files. An empty spectra_data list 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 an id_merge_index that names its file. Search engine, version, date, search parameters and meta values become the run settings, and db/db_version/taxonomy a 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).
  • Import keeps a legacy protein run as inference result 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).
  • Without an inference result, the exported protein run takes the primary score's name and direction as its score type, unless import recorded another one (often empty, or the search engine score after rescoring) in the run settings as identification:legacy_protein_score_type and identification:legacy_protein_higher_score_better.
  • Legacy meta values that a field holds are stored once: the spectrum reference is the query's data_id, target_decoy of peptide and protein hits is the target_decoy field, and a protein hit's description is the database sequence's description. Export writes them back; a value it would write differently (another spelling or value type) stays metadata.
  • Inference over several runs is exported as one merged protein run, as IDMerger creates it, with id_merge_index per 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 as identification:inference:* metadata.
  • Every peptide identification needs its protein run: the adapter rejects one without it with the message of develop's ProteinRunReferences ([FEATURE,FIX] Every PeptideIdentification needs its ProteinIdentification run #10475).

Tools

  • Removed: .oms (OMSFile, OMSFileLoad, OMSFileStore) and JSONExporter. Loading a .oms file reports that it must be converted with OpenMS 3.6 (IDFileConverter, FileConverter).
  • IDMerger and MapAlignerIdentification merge/align native bundles in the owning model when all inputs are native.
  • NucleicAcidSearchEngine: -db_out, -digest_out and -digest use native bundles; a stored digest carries database, missed cleavages and enzyme; reported database sequences are those with hits after FDR; idXML output keeps spectra_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.
  • AccurateMassSearch: -out_annotation *.featureparquet for 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:

pyOpenMS

  • Bindings for the model, IdentificationDataFile, IdentificationDataAdapter, IdentificationDataInference and FileHandler.loadIdentificationData/storeIdentificationData, with the C++ method names (camelCase).
  • Getters return copies. Runs are edited through IdentificationData.run_view() handles (also returned by addRun; looked up by UUID, KeyError once the run is gone); map identification data through FeatureMap/ConsensusMap.identification_data_view().
  • Value types take their field names as constructor keywords (ID.MatchData(representation="LVNELTEFAK", charge=2)), records with metadata also metadata={...}; unknown keywords and wrong types raise TypeError. MatchData.name/formula/identifiers/adduct stay (backed by details, also exposed as MatchData.details), and flanks stay strings. Run.getScores(match) and Run.getRevision() replace Match.getScores().
  • All value types compare by value and print their fields. Match, Identification and Source compare ID, payload, scores and candidates. Mutable values are unhashable; IDs (including DatabaseId), references, MoleculeIdentity and QualifiedAccession hash by value. AMSE_AdductInfo is also exported as AdductInfo.
  • Arrow: IdentificationData.to_arrow(columns=None), __arrow_c_stream__, revisions() and apply_patch(patch, add_scores, expected_revisions), which takes pyarrow tables and readers, pandas frames (without their index) or any Arrow stream and raises ValueError for an invalid patch. IdentificationDataFile.psm_table() returns a flat PSM table (pyarrow) from a native bundle for code that read psms.parquet.
  • Native algorithm entry points: FalseDiscoveryRate.applyToObservationMatches, IDFilter.keepBestMatchPerObservation/filterObservationMatchesByScore/removeDecoys, MapAlignmentAlgorithmIdentification.align/setReference for datasets, IdentificationDataConverter.exportMzTab and importFeatureIDs/exportFeatureIDs/importConsensusIDs/exportConsensusIDs (IDMapper's copies to links and back).
  • Predicate callbacks accept any truth value; native I/O releases the GIL.

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 before load() 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.cpp using std::inserter without including <iterator>, which broke the libc++ build once develop dropped <ranges> from StringUtils.h (develop still gets <iterator> through the old model's IDDataContainer.h).

Changed test data and expected outputs

Each difference was checked before an expected file was changed:

  • IDPosteriorErrorProbability/FalseDiscoveryRate idXML outputs: only the two ScoreSoftware UserParams are added (also to FalseDiscoveryRate_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_8 inputs are native bundles generated from share/OpenMS/examples/BSA/BSA3_OMSSA.idXML and BSA2_OMSSA.idXML; IDMerger_6_output.idXML equals IDMerger on the two idXML files, apart from the legacy file_origin annotations.
  • MzTabMFile_input_1.featureparquet replaces MzTabMFile_input_1.oms (converted with the 3.6 loader); MzTabMFile_output_1.mztab has the InChI column again.
  • AccurateMassSearchEngine mzTab-M outputs: charge and theoretical m/z of evidence rows, no evidence rows for unmatched masses.
  • AccurateMassSearch_6_output.featureXML, NucleicAcidSearchEngine_11_out.idXML: score type and round-trip parameters of the owning model; the protein run of NucleicAcidSearchEngine_11_out.idXML has the score type of the primary score (hyperscore).
  • The run UUID columns and named score columns changed only those columns and the manifest of the native test bundles (compared table by table; UUIDs and record IDs unchanged).
  • MzTabMFile_input_1.featureparquet/identification_links.parquet: feature_unique_id converted from uint64 to int64 bit for bit, other columns unchanged. With uint64, a join with features.parquet lost every feature with an ID ≥ 2^63 (172 of 395 links); now all 83 linked IDs are found.
  • IDFileConverter_34 and the JSONExporter tests are removed with the format.
  • The manifests of IDMerger_6_input1/2.idparquet and MzTabMFile_input_1.featureparquet drop the primary_files key of their sources, and the latter the run spectra_data that its source already names.
  • The same bundles in the database layout: the manifests have settings instead of processing and list the database that the search parameters named under databases; parents.parquet becomes database_sequences.parquet with a database index instead of the database path; the evidence column of matches.parquet becomes sequence_evidence with a database index; the inference score is protein_score. All other columns are unchanged (compared column by column).
  • NucleicAcidSearchEngine_11_out.idXML: the spectra_data and spectra_data_raw UserParams 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.
  • Native fixtures replace the 3.6 bundles: IDMerger_idparquet_input1/2, IDRipper_4_input (now generated from IDRipper_4_input.idXML with IDFileConverter; the Python generator is removed) and PercolatorAdapter_idparquet_in. The ParquetDiff tests use the former psms.parquet files as plain fixtures (ParquetDiff_input1/2.parquet); IDRipper_idparquet rips the legacy merge of IDMerger_1; the OpenNuXL test checks matches.parquet and the manifest; NASEDigestion_test and the pyOpenMS bedRMod test read native bundles instead of .oms.
  • IDMerger_idparquet_output.idXML: the native merge adds no file_origin; otherwise equal to IDMerger_1_output. IDRipper_idparquet_0/1.idXML: no empty spectra_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's PercolatorAdapter_1_inproc_out.idXML).

The PR adds no CHANGELOG entries (they are generated weekly from the merged pull requests).

Validation

At 888e255979 (develop up to 600c54806e):

  • CI: all jobs passed on this head: build-and-test on Ubuntu (g++, clang++, ARM), macOS and Windows; the pyOpenMS wheels on all platforms, including the 16 test-wheels jobs that run the full pyOpenMS suite; build-sphinx, cppcheck and header-set-compatibility. (On the merge 32a2918671, the macOS wheel build had stopped at the missing <iterator> include; see Fixed during review.)
  • libc++: all 1,721 own translation units (library, pyOpenMS, TOPP tools, class tests) compile with clang 18 and libc++ in C++23 mode (syntax check on Linux).
  • Local (Linux, GCC, Release, without OpenTIMS and Thermo RAW, Arrow 26, libxml2 2.14, with the third-party search engines): all 3,442 class, TOPP, UTILS and pyOpenMS tests pass (pyOpenMS unit, docstring, integration and feature suites; run at 32a2918671, which differs only by the two includes).
  • The 309 idXML files of the test data (checked at 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, and EntrapmentEvaluator_1/2_input.idXML and FalseDiscoveryRate_8_output.idXML also come back unchanged through a native bundle (checked at 016b0fa220).

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 (at 062a5fae3e) and the installed-consumer tests (at 1ff2ef9ec8). GUI tests were not run locally.

Performance (Release build, GCC, Linux, warm file cache; code of e8cb83bf36): run_legacy_comparison.py on the synthetic modified-peptide data of IdentificationDataLegacyBenchmark, medians of four reads, each in a fresh process; every read reproduced the count, content and score digests.

PSMs × runs idXML read native read, 1 / 4 Arrow threads size idXML / native peak RSS reading idXML / native
1,000,000 × 1 22.1 s 5.6 / 5.4 s 557 / 14 MiB 846 / 753 MiB
1,000,000 × 1,000 24.8 s 6.7 / 6.1 s 590 / 15 MiB 943 / 666 MiB
100,000 × 1 2.45 s 1.30 / 0.55 s 56 / 1.4 MiB 125 / 206 MiB

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

  1. API and format review. The PR stays a draft until the model API, the native layout (manifest, tables, key and score columns) and the pyOpenMS API are reviewed. The native format is unreleased, so schema_version 1 can still change.

Decided:

  • No compatibility with OpenMS 3.6 in either direction: the 3.6 four-table .idparquet layout is not read, and 3.6 does not need to read the new bundles.
  • Score column names follow the simple rule, also for CamelCase definition names (MassErrorPPMScore → score_masserrorppmscore), so names stay predictable (no XCorr → score_x_corr).
  • Feature links stay in identification_links.parquet rather 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).
  • Arrow patches: revision checks are opt-in; patches edit match scores and target/decoy state, not queries.

Not part of this PR

  1. Moving the users of PeptideIdentification/PeptideHit. About 110 files in src/openms and src/topp still read and write identifications of maps as PeptideIdentification lists (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 from PeptideIdentification and PeptideHit works.

Known limitation

  • Publishing a bundle checks the destination, then renames. A concurrent writer can only make the rename fail, because a non-empty directory is never replaced.

🤖 Generated with Claude Code

https://claude.ai/code/session_016xnFadCoaM17hdWNxWFW2o

timosachsenberg and others added 29 commits October 5, 2026 19:09
…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
…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
…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

timosachsenberg commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

CI: build-and-test (windows-2025, cl.exe) on dc53a94f88 failed in two tests (all other jobs on that head passed).

  1. IdentificationDataRoundTrip_test: remove_all() of a bundle right after IdentificationDataFile::load() threw "The process cannot access the file because it is being used by another process". The test passed on Windows on every earlier head. load() closes all Parquet files of the bundle before it returns (an strace of IDFileConverter on Linux shows all six files closed before the output is opened), and each round trip uses its own temporary name. The handle therefore belonged to another process, e.g. a virus scanner opening freshly written files. 1a0b13de81 makes the test retry the removal for up to five seconds before it fails.
  2. TOPP_ProSE_12_pin_rescore_idXML_out (percolator_score -0.971314 vs. -0.982471 at line 1869, ratio 1.0115 > 1.01): not this PR's. The test was added by develop's [FIX] ProSE: FDR:protein in single-file searchWithModificationAnalysis(); -out_pin before any FDR filter #10492 today and compares the idXML of ProSE -rescore -out_pin with that of TOPP_ProSE_11_rescore. Both files come from the same binary in the same run, and this PR changes none of ProSE, Percolator, PercolatorInfile or IdXMLFile. Ubuntu (g++, clang++) and macOS pass it on the same head. There is no fix on develop yet. The push of 1a0b13de81 runs it again.

Update (Windows on 4aaef9cfbd): IdentificationDataRoundTrip_test passed. TOPP_ProSE_12_pin_rescore_idXML_out failed again, now at line 21589 (-0.94393 vs. -0.953936). The two rescoring runs differ on Windows from run to run, so the in-process Percolator rescoring is not reproducible there; on Linux and macOS it is. This belongs to develop (#10492's test exposes it) and needs a fix there, not in this PR.

Resolved: develop's b3edef02ec makes the test compare the FileInfo hit counts of the two -rescore runs instead of their Percolator scores. It is merged here in d4c782e045, and build-and-test (windows-2025, cl.exe) passes on that head.


Generated by Claude Code

…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
…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 timosachsenberg left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 timosachsenberg left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

claude added 10 commits October 25, 2026 12:52
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
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
…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

This branch has not been deployed

No deployments
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.

3 participants