Repository navigation
feat: native .idparquet identification format (#9225) - #9232
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughA new Arrow/Parquet-based persistence layer for OpenMS identification data is introduced. PSMArrowIO class provides methods to export/import PSM bundles as multi-file Parquet directories. The Arrow schema is enhanced to represent protein accessions as structured tuples containing accession and positional/flanking amino acid data. FileTypes::IDPARQUET recognizes the new format as a directory-type file bundle. Multiple identification tools now support the format. Changes
Sequence Diagram(s)sequenceDiagram
participant Tool as Search Adapter
participant FH as FileHandler
participant PSMIO as PSMArrowIO
participant QPXIO as QPXFile
participant ProtIO as ProteinIdentificationArrowIO
participant PFS as Filesystem
Tool->>FH: storeIdentifications(ProteinIdent, PeptideIdent, IDPARQUET)
FH->>PSMIO: exportToParquet(...)
PSMIO->>PFS: Create output directory
PSMIO->>QPXIO: exportToArrow(PeptideIdent)
QPXIO-->>PSMIO: Arrow table
PSMIO->>PFS: Write psms.parquet
PSMIO->>ProtIO: exportProteinIdentifications(...)
ProtIO->>PFS: Write proteins.parquet
ProtIO->>PFS: Write protein_groups.parquet
ProtIO->>PFS: Write search_params.parquet
PSMIO-->>FH: true/false
FH-->>Tool: Result
Tool->>FH: loadIdentifications(IDPARQUET)
FH->>PSMIO: importFromParquet(dir)
PSMIO->>PFS: Check directory and files exist
PSMIO->>ProtIO: importProteinIdentifications(...)
ProtIO->>PFS: Read proteins.parquet, etc.
ProtIO-->>PSMIO: ProteinIdentification[]
PSMIO->>PFS: Read psms.parquet
PSMIO->>QPXIO: importFromArrow(table)
QPXIO-->>PSMIO: PeptideIdentification[]
PSMIO-->>FH: Populate containers
FH-->>Tool: ProteinIdent, PeptideIdent
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/topp/PercolatorAdapter.cpp (1)
1048-1059:⚠️ Potential issue | 🟠 Major
score:fdrfilter does not apply q-value cutoff when using non-q-value score types.At Lines 1048–1059,
hit.setScore()is set fromscoreType(q-value,pep, orsvm). However, at Line 1188,IDFilter::filterHitsByScore(all_peptide_ids, score_fdr)filters by the main score field, meaning with-score_type svmor-score_type pep, filtering is applied to that score type instead of q-value, contradicting the documented behavior at Lines 289–293 which states "FDR cutoff applied to the Percolator q-value".Meanwhile, the q-value is always stored in meta value
MS:1001491(Line 1045), independent ofscoreType.Proposed fix (filter using q-value metavalue `MS:1001491` regardless of selected main score)
- // Post-filter on Percolator's q-value (PeptideHit::score after Percolator parsing). + // Post-filter on Percolator's q-value (MS:1001491), independent of selected main score. const double score_fdr = getDoubleOption_("score:fdr"); if (score_fdr < 1.0) { - // After Percolator output parsing, hit.score is the q-value. Lower is better. - // IDFilter::filterHitsByScore drops hits where score >= threshold (higher is worse). - IDFilter::filterHitsByScore(all_peptide_ids, score_fdr); + for (PeptideIdentification& pid : all_peptide_ids) + { + auto& hits = pid.getHits(); + hits.erase( + std::remove_if(hits.begin(), hits.end(), + [score_fdr](const PeptideHit& h) + { + if (!h.metaValueExists("MS:1001491")) return true; // no q-value => drop + return static_cast<double>(h.getMetaValue("MS:1001491")) > score_fdr; + }), + hits.end()); + } IDFilter::removeEmptyIdentifications(all_peptide_ids); OPENMS_LOG_INFO << "Applied score:fdr cutoff " << score_fdr << "; remaining peptide identifications: " << all_peptide_ids.size() << std::endl;Also applies to: Lines 1182–1189
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/topp/PercolatorAdapter.cpp` around lines 1048 - 1059, The code currently sets the peptide ID main score from scoreType (q-value/pep/svm) and then calls IDFilter::filterHitsByScore(all_peptide_ids, score_fdr), which applies the cutoff to that main score; change filtering so that when the user requested a score:fdr (FDR cutoff on Percolator q-value) the filter uses the q-value meta-value MS:1001491 instead of the main score regardless of scoreType. Concretely, in PercolatorAdapter.cpp adjust the path that invokes IDFilter::filterHitsByScore to detect the score_fdr case and call the IDFilter variant (or an equivalent) that filters by metavalue MS:1001491 on each PeptideIdentification/PeptideHit (use the q-value meta stored at MS:1001491) while still setting hit.setScore(...) from scoreType for output/rounding; ensure both places mentioned (the block around hit.setScore(...) and the later filtering call that currently uses all_peptide_ids and score_fdr) are updated to use the q-value metavalue when applying the FDR cutoff.
🧹 Nitpick comments (2)
src/tests/class_tests/openms/source/FileHandler_test.cpp (1)
350-351: Strengthen the round-trip assertions beyond size checks.This currently verifies only counts. Please also assert key payload fields (e.g., identifier, score type, first hit sequence/charge/score) to validate real round-trip integrity.
Suggested test assertion extension
TEST_EQUAL(prot_ids_in.size(), 1); TEST_EQUAL(pep_ids_in.size(), 1); + TEST_STRING_EQUAL(prot_ids_in[0].getIdentifier(), "run_1"); + TEST_STRING_EQUAL(pep_ids_in[0].getIdentifier(), "run_1"); + TEST_EQUAL(pep_ids_in[0].getHits().size(), 1); + TEST_STRING_EQUAL(pep_ids_in[0].getHits()[0].getSequence().toUnmodifiedString(), "PEPTIDE"); + TEST_EQUAL(pep_ids_in[0].getHits()[0].getCharge(), 2); + TEST_REAL_SIMILAR(pep_ids_in[0].getHits()[0].getScore(), 0.5);As per coding guidelines: “Write unit tests for new functionality and ensure existing tests pass before suggesting changes.”
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/tests/class_tests/openms/source/FileHandler_test.cpp` around lines 350 - 351, The test currently only checks sizes; extend the assertions to verify actual payload equality for the first (and only) entries: assert prot_ids_in[0].getIdentifier() and prot_ids_in[0].getScoreType() match the originals, and assert pep_ids_in[0].getIdentifier() and pep_ids_in[0].getScoreType() match the originals; additionally assert the first hit on each identification (prot_ids_in[0].getHits()[0] and pep_ids_in[0].getHits()[0]) has the expected sequence, charge and score values (e.g., getSequence(), getCharge(), getScore()) to confirm real round-trip integrity.src/tests/topp/THIRDPARTY/third_party_tests.cmake (1)
217-229:TOPP_PercolatorAdapter_score_fdrshould assert output content, not only process success.This currently only checks exit status, so regressions in filtering behavior can pass unnoticed. Please add a diff/fuzzy-diff step against a reference output.
🧪 Suggested test extension
add_test("TOPP_PercolatorAdapter_score_fdr" ${TOPP_BIN_PATH}/PercolatorAdapter -test -ini ${DATA_DIR_TOPP}/THIRDPARTY/PercolatorAdapter_1.ini -in ${DATA_DIR_TOPP}/THIRDPARTY/PercolatorAdapter_1.idXML -out PercolatorAdapter_score_fdr_out.tmp.idXML -out_type idXML -score:fdr 0.01 -percolator_executable "${PERCOLATOR_BINARY}") set_tests_properties("TOPP_PercolatorAdapter_score_fdr" PROPERTIES DEPENDS "TOPP_PercolatorAdapter_5") + add_test("TOPP_PercolatorAdapter_score_fdr_out" + ${DIFF} + -in1 PercolatorAdapter_score_fdr_out.tmp.idXML + -in2 ${DATA_DIR_TOPP}/THIRDPARTY/PercolatorAdapter_score_fdr_out.idXML + -whitelist "IdentificationRun date" "SearchParameters id=\"SP_0\" db=") + set_tests_properties("TOPP_PercolatorAdapter_score_fdr_out" PROPERTIES DEPENDS "TOPP_PercolatorAdapter_score_fdr")Based on learnings: Applies to
src/tests/topp/**/*.cpp: UseFuzzyDifffor numeric comparisons in TOPP tests; keep test data small; use whitelist for unstable lines.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/tests/topp/THIRDPARTY/third_party_tests.cmake` around lines 217 - 229, The TOPP_PercolatorAdapter_score_fdr test only checks the process exit status; update the CMake test to assert output content by adding a post-check that runs the FuzzyDiff comparison on the generated PercolatorAdapter_score_fdr_out.tmp.idXML against a committed reference idXML (e.g., PercolatorAdapter_score_fdr.ref.idXML in the same DATA_DIR_TOPP/THIRDPARTY folder), use the FuzzyDiff tool with numeric tolerance and a whitelist for known unstable lines, and register that comparison as a separate test dependent on "TOPP_PercolatorAdapter_score_fdr" (keep the original add_test and set_tests_properties entries and add a new add_test that invokes FuzzyDiff with appropriate arguments).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h`:
- Around line 203-204: Update the documentation comment for the public function
proteinAccessionsType() to use Doxygen `@brief` style: replace the inline comment
with a Doxygen block that begins with `@brief` and succinctly describes the Arrow
type (e.g. "Arrow type for protein_accessions: list<struct{accession, aa_before,
aa_after, start, end}>"), ensuring it follows the project's Doxygen formatting
conventions for public API comments.
In `@src/openms/include/OpenMS/FORMAT/QPXFile.h`:
- Around line 120-121: The Doxygen for the function in QPXFile.h incorrectly
marks peptide_identifications as an output-only parameter though the
implementation appends to it; update the parameter direction to [in,out] (change
the `@param`[out] peptide_identifications to `@param`[in,out]
peptide_identifications) and ensure the method (and containing class if missing)
has a `@brief` line per guidelines so all parameters include direction
annotations; locate the function declaration referencing peptide_identifications
in QPXFile.h to apply this change.
In `@src/openms/source/FORMAT/ConsensusMapArrowIO.cpp`:
- Around line 1405-1444: The current loops for building p_id_to_feature and
p_id_order only deduplicate adjacent rows so interleaved rows break mapping;
change both scans to record the first-seen p_id per table row (not contiguous
runs) by keeping a seen set (e.g., unordered_set<int32_t>) and when encountering
a p_id not in seen, add it to p_id_order and insert into p_id_to_feature using
the existing logic (use getInt32Value_(col_p_id,...),
isNull_(col_feature_id,...) and getInt64Value_(col_feature_id,...)) so ordering
is based on first appearance and routing to ConsensusFeature (feature_lookup)
remains correct.
In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 1609-1653: The code in importFromArrow uses a contiguous-run
approach (current_pid/current_p_id) so when p_id values are interleaved
identical p_id rows are treated as separate PeptideIdentification entries;
change the logic to keyed grouping by p_id: maintain a map<int32_t,
PeptideIdentification*> (or map<int32_t, index>) keyed by p_id, look up or
create the PeptideIdentification for the given p_id each loop iteration (using
getInt32Value_(col_p_id, row)), then update that object's fields (setScoreType,
setIdentifier, setHigherScoreBetter, setRT, setMZ, setSpectrumReference,
readMetaValues_) instead of relying on current_pid/current_p_id so rows with the
same p_id are merged regardless of ordering.
- Around line 1759-1772: The current code creates shell ProteinIdentification
entries by scanning the entire peptide_identifications vector, which can re-add
shells from previously-imported peptide IDs when the caller reuses output
vectors; fix this by recording the starting size (e.g., size_t start =
peptide_identifications.size()) before the row-import loop and then iterate only
over the newly appended suffix (for i from start to
peptide_identifications.size()) when building the set of IDs and creating shell
ProteinIdentification objects (use protein_identifications,
peptide_identifications, ProteinIdentification, getIdentifier, setIdentifier,
getScoreType, isHigherScoreBetter to locate where to change).
---
Outside diff comments:
In `@src/topp/PercolatorAdapter.cpp`:
- Around line 1048-1059: The code currently sets the peptide ID main score from
scoreType (q-value/pep/svm) and then calls
IDFilter::filterHitsByScore(all_peptide_ids, score_fdr), which applies the
cutoff to that main score; change filtering so that when the user requested a
score:fdr (FDR cutoff on Percolator q-value) the filter uses the q-value
meta-value MS:1001491 instead of the main score regardless of scoreType.
Concretely, in PercolatorAdapter.cpp adjust the path that invokes
IDFilter::filterHitsByScore to detect the score_fdr case and call the IDFilter
variant (or an equivalent) that filters by metavalue MS:1001491 on each
PeptideIdentification/PeptideHit (use the q-value meta stored at MS:1001491)
while still setting hit.setScore(...) from scoreType for output/rounding; ensure
both places mentioned (the block around hit.setScore(...) and the later
filtering call that currently uses all_peptide_ids and score_fdr) are updated to
use the q-value metavalue when applying the FDR cutoff.
---
Nitpick comments:
In `@src/tests/class_tests/openms/source/FileHandler_test.cpp`:
- Around line 350-351: The test currently only checks sizes; extend the
assertions to verify actual payload equality for the first (and only) entries:
assert prot_ids_in[0].getIdentifier() and prot_ids_in[0].getScoreType() match
the originals, and assert pep_ids_in[0].getIdentifier() and
pep_ids_in[0].getScoreType() match the originals; additionally assert the first
hit on each identification (prot_ids_in[0].getHits()[0] and
pep_ids_in[0].getHits()[0]) has the expected sequence, charge and score values
(e.g., getSequence(), getCharge(), getScore()) to confirm real round-trip
integrity.
In `@src/tests/topp/THIRDPARTY/third_party_tests.cmake`:
- Around line 217-229: The TOPP_PercolatorAdapter_score_fdr test only checks the
process exit status; update the CMake test to assert output content by adding a
post-check that runs the FuzzyDiff comparison on the generated
PercolatorAdapter_score_fdr_out.tmp.idXML against a committed reference idXML
(e.g., PercolatorAdapter_score_fdr.ref.idXML in the same
DATA_DIR_TOPP/THIRDPARTY folder), use the FuzzyDiff tool with numeric tolerance
and a whitelist for known unstable lines, and register that comparison as a
separate test dependent on "TOPP_PercolatorAdapter_score_fdr" (keep the original
add_test and set_tests_properties entries and add a new add_test that invokes
FuzzyDiff with appropriate arguments).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 163fd3dc-e3bd-4443-a1fd-c2cb5455bd33
⛔ Files ignored due to path filters (12)
src/tests/topp/IDMerger_idparquet_input1.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/search_params.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/search_params.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/search_params.parquetis excluded by!**/*.parquet
📒 Files selected for processing (30)
docs/superpowers/plans/2026-04-28-percolator-psm-parquet.mddocs/superpowers/specs/2026-04-28-percolator-psm-parquet-design.mdsrc/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.hsrc/openms/include/OpenMS/FORMAT/FileTypes.hsrc/openms/include/OpenMS/FORMAT/PSMArrowIO.hsrc/openms/include/OpenMS/FORMAT/QPXFile.hsrc/openms/include/OpenMS/FORMAT/sources.cmakesrc/openms/source/FORMAT/ArrowSchemaRegistry.cppsrc/openms/source/FORMAT/ConsensusMapArrowIO.cppsrc/openms/source/FORMAT/FeatureMapArrowIO.cppsrc/openms/source/FORMAT/FileHandler.cppsrc/openms/source/FORMAT/FileTypes.cppsrc/openms/source/FORMAT/PSMArrowIO.cppsrc/openms/source/FORMAT/QPXFile.cppsrc/openms/source/FORMAT/sources.cmakesrc/tests/class_tests/openms/executables.cmakesrc/tests/class_tests/openms/source/FileHandler_test.cppsrc/tests/class_tests/openms/source/FileTypes_test.cppsrc/tests/class_tests/openms/source/PSMArrowIO_test.cppsrc/tests/class_tests/openms/source/QPXFile_test.cppsrc/tests/topp/CMakeLists.txtsrc/tests/topp/IDMerger_idparquet_output.idXMLsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_out.idXMLsrc/tests/topp/THIRDPARTY/third_party_tests.cmakesrc/topp/CometAdapter.cppsrc/topp/IDFileConverter.cppsrc/topp/IDMerger.cppsrc/topp/MSGFPlusAdapter.cppsrc/topp/PercolatorAdapter.cppsrc/topp/SageAdapter.cpp
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
src/openms/source/FORMAT/QPXFile.cpp (1)
1550-1781:importFromArrowshould be split into smaller units.This method now handles too many responsibilities (column wiring, PID creation, hit parsing, metavalue decoding, shell-protein synthesis), which makes it hard to test and maintain. Consider extracting focused helpers for PID init, hit decoding, and post-processing.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/FORMAT/QPXFile.cpp` around lines 1550 - 1781, The importFromArrow function in QPXFile is doing too much; extract three helpers to improve readability and testability: (1) create initializePeptideIdentificationFromRow(const arrow::Table& tbl, int64_t row, PeptideIdentification& pid, const ColumnRefs& cols, const std::unordered_map<std::string,bool>& hsb_lookup) to encapsulate PID wiring (score type, identifier, higherScoreBetter, RT/MZ/spectrum ref, spectrum metavals using readMetaValues_), using getStringValue_/getDoubleValue_/getBoolValue_ and the column variables (col_score_type, col_run_id, col_hsb, col_rt, col_mz, col_spec_ref, col_spectrum_metavalues); (2) create parsePeptideHitFromRow(int64_t row, const ColumnRefs& cols) -> PeptideHit to encapsulate hit construction (peptidoform/sequence parsing with ProForma::parse and fallback, charge/score/rank/target_decoy meta, protein accessions parsing, additional_scores, psm_metavalues filtering, predicted_rt/ion_mobility/scan/ref_file metas) using getInt32Value_/getDoubleValue_/getBoolValue_/getStringValue_ and readMetaValues_; and (3) create appendShellProteinIdentifications(std::vector<ProteinIdentification>& proteins, const PeptideIdentificationList& peptide_identifications, size_t start_index) which implements the known set logic and pushes shell ProteinIdentification objects. Replace the inlined blocks in QPXFile::importFromArrow with calls to these helpers (pass the already resolved column variables like col_p_id, col_charge, col_score, etc.) so the main function becomes a simple loop: group-by p_id -> initialize PID when first seen -> parse hit -> append hit, then call appendShellProteinIdentifications at the end.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/openms/source/FORMAT/ConsensusMapArrowIO.cpp`:
- Around line 1408-1415: The loop currently ignores later rows for an existing
p_id (p_id_to_feature) without validating consistency; change the logic in the
block that handles an existing p_id (using p_id_to_feature, col_p_id,
col_feature_id, getInt32Value_, isNull_, getInt64Value_) to compare the new
mapping (is_null, fid) to the stored pair and detect conflicts: if they differ,
surface the problem (throw an exception or log an error with both values and the
p_id) instead of silently continuing; keep the first mapping only if you decide
to tolerate duplicates, but still report any inconsistent mappings.
In `@src/openms/source/FORMAT/ProteinIdentificationArrowIO.cpp`:
- Around line 1384-1388: The code currently treats a missing column the same as
an empty list because readStringList_ is called regardless; change it to first
check that col_ms_run_paths (from getColumn_) is non-null before calling
readStringList_ and before calling prot_id.setPrimaryMSRunPath; only call
readStringList_(col_ms_run_paths, row) and prot_id.setPrimaryMSRunPath(...) when
col_ms_run_paths is present so missing-column rows keep their original "no
spectra_data" semantics and avoid writing explicit empty spectra_data.
In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 1710-1715: Guard against empty but non-null Arrow strings before
indexing: for the PeptideEvidence creation in QPXFile.cpp update the
setAABefore/setAAAfter calls to first fetch the string from
before_arr->GetString(k) / after_arr->GetString(k) into a local std::string,
check both IsNull(k) and !str.empty(), and only then pass str[0] to
PeptideEvidence::setAABefore / setAAAfter otherwise pass
PeptideEvidence::UNKNOWN_AA; apply the same defensive change to the analogous
accesses in FeatureMapArrowIO.cpp (the after_arr/before_arr reads) to eliminate
undefined behavior when Arrow returns an empty string.
---
Nitpick comments:
In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 1550-1781: The importFromArrow function in QPXFile is doing too
much; extract three helpers to improve readability and testability: (1) create
initializePeptideIdentificationFromRow(const arrow::Table& tbl, int64_t row,
PeptideIdentification& pid, const ColumnRefs& cols, const
std::unordered_map<std::string,bool>& hsb_lookup) to encapsulate PID wiring
(score type, identifier, higherScoreBetter, RT/MZ/spectrum ref, spectrum
metavals using readMetaValues_), using
getStringValue_/getDoubleValue_/getBoolValue_ and the column variables
(col_score_type, col_run_id, col_hsb, col_rt, col_mz, col_spec_ref,
col_spectrum_metavalues); (2) create parsePeptideHitFromRow(int64_t row, const
ColumnRefs& cols) -> PeptideHit to encapsulate hit construction
(peptidoform/sequence parsing with ProForma::parse and fallback,
charge/score/rank/target_decoy meta, protein accessions parsing,
additional_scores, psm_metavalues filtering,
predicted_rt/ion_mobility/scan/ref_file metas) using
getInt32Value_/getDoubleValue_/getBoolValue_/getStringValue_ and
readMetaValues_; and (3) create
appendShellProteinIdentifications(std::vector<ProteinIdentification>& proteins,
const PeptideIdentificationList& peptide_identifications, size_t start_index)
which implements the known set logic and pushes shell ProteinIdentification
objects. Replace the inlined blocks in QPXFile::importFromArrow with calls to
these helpers (pass the already resolved column variables like col_p_id,
col_charge, col_score, etc.) so the main function becomes a simple loop:
group-by p_id -> initialize PID when first seen -> parse hit -> append hit, then
call appendShellProteinIdentifications at the end.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 893155c0-b563-4cd7-9815-a997b7fc6b31
⛔ Files ignored due to path filters (12)
src/tests/topp/IDMerger_idparquet_input1.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/search_params.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/search_params.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/search_params.parquetis excluded by!**/*.parquet
📒 Files selected for processing (8)
src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.hsrc/openms/include/OpenMS/FORMAT/QPXFile.hsrc/openms/source/FORMAT/ConsensusMapArrowIO.cppsrc/openms/source/FORMAT/ProteinIdentificationArrowIO.cppsrc/openms/source/FORMAT/QPXFile.cppsrc/tests/class_tests/openms/source/PSMArrowIO_test.cppsrc/tests/topp/IDMerger_idparquet_output.idXMLsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_out.idXML
✅ Files skipped from review due to trivial changes (1)
- src/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_out.idXML
🚧 Files skipped from review as they are similar to previous changes (3)
- src/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.h
- src/tests/topp/IDMerger_idparquet_output.idXML
- src/tests/class_tests/openms/source/PSMArrowIO_test.cpp
There was a problem hiding this comment.
🧹 Nitpick comments (2)
src/openms/source/FORMAT/QPXFile.cpp (2)
1550-1783: Consider breaking down this complex function.Static analysis flags this as a "Very Complex Method" (230+ lines). While the logic is sound, consider extracting helper functions for:
- PeptideHit construction (lines 1658-1761)
- protein_accessions parsing (lines 1697-1720)
- additional_scores parsing (lines 1722-1734)
This would improve readability and testability. However, given the cohesive nature of the import logic, this is a nice-to-have refinement.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/FORMAT/QPXFile.cpp` around lines 1550 - 1783, QPXFile::importFromArrow is very long—extract the PeptideHit construction block into a helper like buildPeptideHit(row, tbl_columns, higher_score_lookup) (refers to current local vars col_peptidoform, col_sequence, col_charge, col_score, col_rank, col_is_decoy, col_predicted_rt, col_ion_mobility, col_scan, col_ref_file, col_psm_metavalues and readMetaValues_); extract the protein_accessions parsing loop into parseProteinAccessions(list_array, hit) (refers to col_protein_accs and uses PeptideEvidence), and extract the additional_scores loop into parseAdditionalScores(list_array, hit) (refers to col_additional_scores). Each helper should take the Arrow arrays or row index needed, perform the parsing/setting of hit fields, and return or mutate the PeptideHit; replace the inlined blocks in QPXFile::importFromArrow with calls to these new helpers to keep importFromArrow focused on control flow and grouping logic.
54-191: Consider extracting shared Arrow helpers to a common utility.These helper functions (
getColumn_,getStringValue_,getDoubleValue_,getInt32Value_,getBoolValue_,isNull_,readMetaValues_) are duplicated fromConsensusMapArrowIO.cpp. The PR summary already notes this as a known limitation for follow-up.When convenient, consider consolidating these into a shared header (e.g.,
ArrowIOHelpers.h) to reduce maintenance burden.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/FORMAT/QPXFile.cpp` around lines 54 - 191, These Arrow helper functions (getColumn_, getStringValue_, getDoubleValue_, getInt32Value_, getBoolValue_, isNull_, readMetaValues_) are duplicated from ConsensusMapArrowIO.cpp; extract them into a shared utility (e.g., ArrowIOHelpers.h/.cpp) as non-file-scope helpers in the OpenMS namespace, move the implementations there, update QPXFile.cpp and ConsensusMapArrowIO.cpp to include the new header and call the shared functions (keeping names/signatures identical), and remove the duplicate implementations so both compilation units link against the single shared implementation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 1550-1783: QPXFile::importFromArrow is very long—extract the
PeptideHit construction block into a helper like buildPeptideHit(row,
tbl_columns, higher_score_lookup) (refers to current local vars col_peptidoform,
col_sequence, col_charge, col_score, col_rank, col_is_decoy, col_predicted_rt,
col_ion_mobility, col_scan, col_ref_file, col_psm_metavalues and
readMetaValues_); extract the protein_accessions parsing loop into
parseProteinAccessions(list_array, hit) (refers to col_protein_accs and uses
PeptideEvidence), and extract the additional_scores loop into
parseAdditionalScores(list_array, hit) (refers to col_additional_scores). Each
helper should take the Arrow arrays or row index needed, perform the
parsing/setting of hit fields, and return or mutate the PeptideHit; replace the
inlined blocks in QPXFile::importFromArrow with calls to these new helpers to
keep importFromArrow focused on control flow and grouping logic.
- Around line 54-191: These Arrow helper functions (getColumn_, getStringValue_,
getDoubleValue_, getInt32Value_, getBoolValue_, isNull_, readMetaValues_) are
duplicated from ConsensusMapArrowIO.cpp; extract them into a shared utility
(e.g., ArrowIOHelpers.h/.cpp) as non-file-scope helpers in the OpenMS namespace,
move the implementations there, update QPXFile.cpp and ConsensusMapArrowIO.cpp
to include the new header and call the shared functions (keeping
names/signatures identical), and remove the duplicate implementations so both
compilation units link against the single shared implementation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d718277e-5d77-4c6f-bf1a-1a3e5fba43ef
📒 Files selected for processing (3)
src/openms/source/FORMAT/ConsensusMapArrowIO.cppsrc/openms/source/FORMAT/ProteinIdentificationArrowIO.cppsrc/openms/source/FORMAT/QPXFile.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
- src/openms/source/FORMAT/ProteinIdentificationArrowIO.cpp
…penMS#9225) Brainstormed design for adding native idparquet (PSMSchema-based) input/output to PercolatorAdapter, IDMerger, and the search-engine adapters, plus an FDR post-filter and best-PSM-per-spectrum option. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…#9225) 13-task plan for the design at docs/superpowers/specs/2026-04-28-percolator-psm-parquet-design.md. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Adds the IDPARQUET enum value and binds it to the .idparquet extension for the new internal PSM parquet directory format. No dispatch wiring yet — that lands in a follow-up task. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…tionList Provides a free-standing reader for PSMSchema Arrow tables, extracted from ConsensusMapArrowIO::importPSMsFromArrow's PSM-construction logic (no ConsensusFeature linkage). Used by the new PSMArrowIO bundle reader in a follow-up task. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…urce The string_list branch in the QPXFile.cpp copy of readMetaValues_ dropped the per-element trim pass that the ConsensusMapArrowIO original performs. Restore parity to avoid latent metavalue divergence. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…romArrow Adds assertions for RT/MZ/run_identifier/spectrum_reference/protein accession round-trip on the existing single-group test, plus a second PID to exercise the new-group branch. Adds a separate section that checks the protein-shell append on an unknown run_identifier. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…rtFromArrow Removes the duplicated PSM-construction block; ConsensusFeature linkage stays local. Behaviour preserved by ConsensusMapArrowIO_test. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Bundles PSMSchema PSMs and ProteinIdentificationArrowIO protein/group/ search-params tables under a single directory. Round-trip lossless; all four subfiles required on read. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Aligns with the FeatureMapArrowIO_test idiom — properly tracked, collision-free, and cleaned up by the framework on crash. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Wires PSMArrowIO behind FileHandler so any tool that already uses loadIdentifications/storeIdentifications gains .idparquet support without further changes. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Adds idparquet to input/output valid-formats and to the storeIdentifications allowed-types whitelist. Filter and best-PSM options land in the next commit. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ng flag (OpenMS#9225) score:fdr drops PSMs whose Percolator q-value exceeds the cutoff. keep_all_passing retains all hits per spectrum (default: best per spectrum). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…pt .idparquet (OpenMS#9225) Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Comet and MSGFPlus adapters now accept idparquet as an output format, matching SageAdapter and PercolatorAdapter. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- Add idparquet to in/out valid format lists - Guard the Sequest-directory branch so .idparquet directories are routed to the IDPARQUET switch case instead of the .out file glob path - Add IDPARQUET case in input and output switch statements Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…#9225) Add fixture PercolatorAdapter_idparquet_in.idparquet (converted from PercolatorAdapter_1.idXML) and three chained ctest entries that run PercolatorAdapter on that input, convert the .idparquet result back to idXML, and diff against a dedicated round-trip reference. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Fix IDMerger::mergeIds_ and the merge_proteins_add_PSMs branch to accept FileTypes::IDPARQUET when loading identifications (they previously only passed IDXML). Add two fixture directories converted from IDMerger_1 inputs and three chained ctest entries that merge them, convert the result back to idXML, and diff against a dedicated round-trip reference. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…S#9225) Renames the flag from `keep_all_passing` (default false → invariably ran keepBestPeptideHits) to `best_per_spectrum_only` (default false → preserves all hits, matching legacy behaviour). Users who want best-only output must opt in. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Centralises the directory-shaped-format check (BRUKER_TDF, IDPARQUET) so future tools that take directory inputs don't have to enumerate the cases inline. IDFileConverter switches to the predicate. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…nMS#9225) The internal PSMSchema previously stored protein_accessions as list<utf8>, silently dropping PeptideEvidence aa_before/aa_after/ start/end on .idparquet round-trip. Promote the column to list<struct{accession, aa_before, aa_after, start, end}> so that PSMArrowIO/QPXFile/FeatureMapArrowIO/ConsensusMapArrowIO actually preserve the full PeptideEvidence on round-trip. UNKNOWN_AA and UNKNOWN_POSITION are encoded as Arrow null and restored to their C++ sentinels on import; N/C-terminal markers ('['/']') round-trip as literal length-1 strings. The cross-tool QPXPSMSchema is intentionally untouched and stays list<utf8>. Updates: - ArrowSchemaRegistry: add PSMSchema::proteinAccessionsType() - QPXFile::exportToArrow: write nested struct - QPXFile::importFromArrow + FeatureMapArrowIO::importFromParquet: read nested struct - PSMArrowIO_test, QPXFile_test: assert positional round-trip and unknown/terminal-sentinel round-trip - Regenerate TOPP fixtures (IDMerger_idparquet_input{1,2}.idparquet, PercolatorAdapter_idparquet_in.idparquet) and the bespoke PercolatorAdapter_idparquet_out.idXML reference under the new schema. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
) Adds two sections that exercise paths not covered by the existing target-only / rank-1-only round-trip test: target_decoy="decoy" preserved through the is_decoy column, and rank=1..3 hits all preserved with export_all_psms=true. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
) - ProteinIdentificationArrowIO: drop the if-empty guard so empty spectra_data round-trips correctly (the underlying setPrimaryMSRunPath handles empty input by initializing the UserParam to []). - ProteinIdentificationArrowIO: read the timestamp column with explicit unit normalization. Parquet may persist a timestamp(SECOND) Arrow column as nanoseconds; without normalization, dates round-tripped as year ~58293. - QPXFile::importFromArrow: group rows by PEPTIDE_IDENTIFICATION_INDEX value rather than by adjacency - interleaved p_id rows are now handled correctly. (Per CodeRabbit, addresses both QPXFile.cpp:1653 and the paired ConsensusMapArrowIO p_id_order derivation.) - QPXFile::importFromArrow: shell-protein synthesis now scans only the PIDs added in the current call (not pre-existing entries in the output vector). - Doxygen: @brief on PSMSchema::proteinAccessionsType; [in,out] on QPXFile::importFromArrow's peptide_identifications param. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The preceding commit changes the .idparquet round-trip output:
- empty spectra_data UserParam is now preserved (no longer dropped),
- the date column is read with correct unit normalization.
Regenerated:
- src/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet
(from PercolatorAdapter_1.idXML)
- src/tests/topp/IDMerger_idparquet_input{1,2}.idparquet
(from IDMerger_1_input{1,2}.idXML)
- src/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_out.idXML
- src/tests/topp/IDMerger_idparquet_output.idXML
The bespoke reference idXML files are kept (not retired): the
.idparquet round-trip orders UserParams inside PeptideHit by writing
dedicated columns (rank, target_decoy, scan, ...) before the
metavalues column, which differs from idXML's emission order. Pointing
the diff tests at the original idXML references would fail on this
ordering. The bespoke references encode the canonical .idparquet
round-trip output.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
- ConsensusMapArrowIO::importPSMsFromArrow: detect inconsistent consensus_feature_unique_id mappings for the same PEPTIDE_IDENTIFICATION_INDEX and warn (keeping the first mapping). Previously silently kept first. - ProteinIdentificationArrowIO::importSearchParamsFromArrow: only call setPrimaryMSRunPath when col_ms_run_paths is non-null. A missing column now correctly preserves "no spectra_data" semantics rather than synthesizing an empty UserParam. Empty-list-on-present-column still round-trips as an empty UserParam. - QPXFile::importFromArrow: guard aa_before/aa_after reads against non-null but empty Arrow strings before indexing [0]. Falls back to PeptideEvidence::UNKNOWN_AA on empty. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…rcolator (OpenMS#9225) After rebasing onto develop (which now includes OpenMS#9218 — Percolator in-process backend), the SVM-score values in the bespoke round-trip reference idXML drifted enough to fail the diff. Regenerated from the current run; structure unchanged, scores reflect the new backend. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
c8a40ae to
c09157f
Compare
There was a problem hiding this comment.
Actionable comments posted: 9
🧹 Nitpick comments (1)
src/openms/source/FORMAT/QPXFile.cpp (1)
1550-1784: SplitQPXFile::importFromArrowinto smaller deserialization helpers.This method now does schema validation, column binding,
PeptideIdentificationgrouping,PeptideHitreconstruction, evidence parsing, metavalue import, and shell-protein synthesis in one block. Extracting a few focused helpers here would make the next schema change much safer to review and test.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/FORMAT/QPXFile.cpp` around lines 1550 - 1784, The importFromArrow function is too large—split its responsibilities into small helpers: 1) create a bindColumns helper (e.g., QPXFile::bindPSMColumns) that encapsulates all getColumn_ calls and required-column checks used in importFromArrow; 2) extract the peptide-identification initializer (e.g., QPXFile::initPeptideIdentificationFromRow) that takes a row index and the bound-columns struct and returns/configures a PeptideIdentification (preserving p_id_to_idx and pep_ids_start_size semantics and using getStringValue_, getBoolValue_, getDoubleValue_ etc.); 3) extract a hit builder (e.g., QPXFile::buildPeptideHitFromRow) that constructs and returns a PeptideHit for a given row (move ProForma parsing, sequence fallback, score/charge/rank, metavalue setting, predicted_RT/ion_mobility/scan/ref_file handling and use readMetaValues_ and getInt32Value_/getDoubleValue_ helpers); 4) extract evidence and additional-scores parsing (e.g., QPXFile::parsePeptideEvidenceFromRow and QPXFile::parseAdditionalScoresFromRow) to handle the List/Struct array traversal and meta assignments; and 5) extract the shell-protein synthesis into a helper (e.g., QPXFile::appendShellProteinIdentifications) that implements the known set logic and appends ProteinIdentification shells. Move logic into these helpers without changing behavior or public interfaces, pass only the minimal data (bound columns, row, references to peptide_identifications/protein_identifications), and keep all existing calls to getColumn_, readMetaValues_, ProForma::parse, and p_id_to_idx usage so tests continue to pass.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/superpowers/plans/2026-04-28-percolator-psm-parquet.md`:
- Around line 1372-1400: The plan and code snippet use the wrong flag name;
replace the proposed flag `keep_all_passing` with the actual public option
`best_per_spectrum_only` everywhere in this task (both the descriptive text and
the example registration), and ensure the registered flag in
PercolatorAdapter::registerOptionsAndFlags_ uses
registerFlag_("best_per_spectrum_only", ...) with an appropriate description
that matches the implemented behavior (i.e., whether it keeps only the best PSM
per spectrum or not).
In `@src/openms/source/FORMAT/ConsensusMapArrowIO.cpp`:
- Around line 1397-1412: The code calls getInt32Value_ / getInt64Value_ /
isNull_ on col_p_id and col_feature_id without checking their Arrow array/field
types; add a guard immediately after retrieving col_p_id and col_feature_id
(after the getColumn_ calls) that validates the Arrow types (e.g.
field()->type()->id() or dynamic_cast checks) to ensure col_p_id is an
Int32-compatible array/field and col_feature_id is Int64-compatible (or nullable
Int64) before entering the loop in ConsensusMapArrowIO; if types mismatch, log a
clear OPENMS_LOG_ERROR mentioning ConsensusMapArrowIO and
PSMSchema::PEPTIDE_IDENTIFICATION_INDEX and return false to fail cleanly rather
than casting/crashing.
- Around line 1416-1423: Replace the non-fatal warning in ConsensusMapArrowIO
that logs inconsistent consensus_feature_unique_id mappings for p_id with a
fatal error: when prev_null != is_null || (!is_null && prev_fid != fid) throw an
exception (e.g., Exception::IllegalArgument) instead of logging, including a
clear message with p_id and both the previous mapping (prev_null/prev_fid) and
the new mapping (is_null/fid) so the import fails immediately on this data
corruption rather than silently using the first mapping.
In `@src/openms/source/FORMAT/FeatureMapArrowIO.cpp`:
- Around line 1607-1623: The code is indexing GetString(k)[0] for
aa_before/aa_after which is unsafe for empty (non-null) strings; in
PeptideEvidence creation (symbols: list_arr, struct_arr, acc_arr, before_arr,
after_arr, start_arr, end_arr, PeptideEvidence, hit.addPeptideEvidence) add a
guard that checks before_arr->GetString(k).size() and
after_arr->GetString(k).size() (or equivalent length test) before accessing [0],
and if empty treat it the same as null (use PeptideEvidence::UNKNOWN_AA); keep
the existing null checks for start/end as-is and then add the ev to hit as
before.
In `@src/openms/source/FORMAT/PSMArrowIO.cpp`:
- Around line 114-133: The code currently clears protein_identifications and
peptide_identifications before any read succeeds; instead, read into local
temporaries (e.g., temp_proteins, temp_peptides and temp_psm_table), call
ProteinIdentificationArrowIO::importFromParquet(...) into temp_proteins and only
if that succeeds read psm_table and call
QPXFile::importFromArrow(temp_psm_table, temp_proteins, temp_peptides); after
both imports succeed, swap temp_proteins and temp_peptides into the caller
variables protein_identifications and peptide_identifications so the originals
are preserved on failure.
- Around line 57-90: Stage the four parquet files into a temporary directory and
only replace the destination dir atomically on success: create a temp sibling
directory (e.g. dir + ".tmpXXXX"), write PSMs via QPXFile::exportToArrow +
ArrowIOHelpers::writeTableToParquet and the three
ProteinIdentificationArrowIO::export*ToParquet calls into that temp dir, and if
all writes succeed perform an atomic rename/move of the temp dir to the final
dir (or remove the old dir and rename temp to its name); on any failure clean up
the temp directory and return false. Ensure use of ensureDirectory_ only for the
parent, handle errors from QPXFile::exportToArrow and each write as before, and
perform cleanup to avoid leaving partial state.
In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 1748-1750: The synthesized ProteinIdentification shells created in
importFromArrow() currently only copy identifier/score metadata, so
reference_file_name is lost on export; update the code that reads col_ref_file
(e.g., the block using col_ref_file, isNull_(col_ref_file, row), and
hit.setMetaValue("reference_file_name", ...)) to capture the first non-empty
reference_file_name encountered per run and, when you create the
fallback/synthesized ProteinIdentification (the shell for unknown
run_identifier), set that captured reference_file_name on the
ProteinIdentification (e.g., via setMetaValue or equivalent) so exportToArrow()
and ProteinIdentification::getPrimaryMSRunPath() will preserve the original
mapping. Ensure the same fix is applied to the other analogous block handling
the same field (the code region around the later occurrence).
- Around line 1659-1680: The code currently skips the sequence fallback when
PEPTIDOFORM exists but is an empty string; update the logic around
col_peptidoform/peptidoform_str so that an empty peptidoform_str is treated like
a parse failure/null and falls back to reading SEQUENCE: after obtaining
peptidoform_str from getStringValue_(col_peptidoform, row) check if
peptidoform_str is non-empty and only then attempt ProForma::parse and
ProForma::toAASequence with hit.setSequence; otherwise (empty string) call
AASequence::fromString(getStringValue_(col_sequence, row)) if col_sequence is
present and not isNull_, mirroring the existing catch branch that uses
hit.setSequence and AASequence::fromString.
In `@src/topp/IDFileConverter.cpp`:
- Around line 274-275: The directory-detection logic is misclassifying paths
with trailing slashes because FileHandler::getTypeByFileName(in) is called with
the raw variable in; normalize the path (e.g., strip any trailing path separator
from in or use a canonicalized/normalized version) before calling
FileHandler::getTypeByFileName and then pass the normalized name into
FileTypes::isDirectoryType; update the condition around File::isDirectory(in) &&
!FileTypes::isDirectoryType(...) to use the normalized variable so true
directories with trailing slashes are correctly identified (adjust any
references to in in that block to the normalized name).
---
Nitpick comments:
In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 1550-1784: The importFromArrow function is too large—split its
responsibilities into small helpers: 1) create a bindColumns helper (e.g.,
QPXFile::bindPSMColumns) that encapsulates all getColumn_ calls and
required-column checks used in importFromArrow; 2) extract the
peptide-identification initializer (e.g.,
QPXFile::initPeptideIdentificationFromRow) that takes a row index and the
bound-columns struct and returns/configures a PeptideIdentification (preserving
p_id_to_idx and pep_ids_start_size semantics and using getStringValue_,
getBoolValue_, getDoubleValue_ etc.); 3) extract a hit builder (e.g.,
QPXFile::buildPeptideHitFromRow) that constructs and returns a PeptideHit for a
given row (move ProForma parsing, sequence fallback, score/charge/rank,
metavalue setting, predicted_RT/ion_mobility/scan/ref_file handling and use
readMetaValues_ and getInt32Value_/getDoubleValue_ helpers); 4) extract evidence
and additional-scores parsing (e.g., QPXFile::parsePeptideEvidenceFromRow and
QPXFile::parseAdditionalScoresFromRow) to handle the List/Struct array traversal
and meta assignments; and 5) extract the shell-protein synthesis into a helper
(e.g., QPXFile::appendShellProteinIdentifications) that implements the known set
logic and appends ProteinIdentification shells. Move logic into these helpers
without changing behavior or public interfaces, pass only the minimal data
(bound columns, row, references to
peptide_identifications/protein_identifications), and keep all existing calls to
getColumn_, readMetaValues_, ProForma::parse, and p_id_to_idx usage so tests
continue to pass.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 2f078a50-2f3f-439d-a948-9d7ebb6db15d
⛔ Files ignored due to path filters (12)
src/tests/topp/IDMerger_idparquet_input1.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input1.idparquet/search_params.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/IDMerger_idparquet_input2.idparquet/search_params.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/protein_groups.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/proteins.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/psms.parquetis excluded by!**/*.parquetsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_in.idparquet/search_params.parquetis excluded by!**/*.parquet
📒 Files selected for processing (31)
docs/superpowers/plans/2026-04-28-percolator-psm-parquet.mddocs/superpowers/specs/2026-04-28-percolator-psm-parquet-design.mdsrc/openms/include/OpenMS/FORMAT/ArrowSchemaRegistry.hsrc/openms/include/OpenMS/FORMAT/FileTypes.hsrc/openms/include/OpenMS/FORMAT/PSMArrowIO.hsrc/openms/include/OpenMS/FORMAT/QPXFile.hsrc/openms/include/OpenMS/FORMAT/sources.cmakesrc/openms/source/FORMAT/ArrowSchemaRegistry.cppsrc/openms/source/FORMAT/ConsensusMapArrowIO.cppsrc/openms/source/FORMAT/FeatureMapArrowIO.cppsrc/openms/source/FORMAT/FileHandler.cppsrc/openms/source/FORMAT/FileTypes.cppsrc/openms/source/FORMAT/PSMArrowIO.cppsrc/openms/source/FORMAT/ProteinIdentificationArrowIO.cppsrc/openms/source/FORMAT/QPXFile.cppsrc/openms/source/FORMAT/sources.cmakesrc/tests/class_tests/openms/executables.cmakesrc/tests/class_tests/openms/source/FileHandler_test.cppsrc/tests/class_tests/openms/source/FileTypes_test.cppsrc/tests/class_tests/openms/source/PSMArrowIO_test.cppsrc/tests/class_tests/openms/source/QPXFile_test.cppsrc/tests/topp/CMakeLists.txtsrc/tests/topp/IDMerger_idparquet_output.idXMLsrc/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_out.idXMLsrc/tests/topp/THIRDPARTY/third_party_tests.cmakesrc/topp/CometAdapter.cppsrc/topp/IDFileConverter.cppsrc/topp/IDMerger.cppsrc/topp/MSGFPlusAdapter.cppsrc/topp/PercolatorAdapter.cppsrc/topp/SageAdapter.cpp
✅ Files skipped from review due to trivial changes (4)
- src/openms/source/FORMAT/sources.cmake
- src/tests/class_tests/openms/executables.cmake
- src/topp/IDMerger.cpp
- src/tests/topp/CMakeLists.txt
🚧 Files skipped from review as they are similar to previous changes (11)
- src/topp/MSGFPlusAdapter.cpp
- src/topp/SageAdapter.cpp
- src/topp/CometAdapter.cpp
- src/tests/topp/THIRDPARTY/PercolatorAdapter_idparquet_out.idXML
- src/tests/class_tests/openms/source/FileHandler_test.cpp
- src/tests/topp/IDMerger_idparquet_output.idXML
- src/tests/class_tests/openms/source/FileTypes_test.cpp
- src/openms/source/FORMAT/ProteinIdentificationArrowIO.cpp
- src/topp/PercolatorAdapter.cpp
- src/tests/topp/THIRDPARTY/third_party_tests.cmake
- src/openms/include/OpenMS/FORMAT/sources.cmake
- ConsensusMapArrowIO: validate Arrow column types before casting; treat conflicting p_id->feature_id mappings as a fatal import error. - FeatureMapArrowIO: guard empty aa_before/aa_after strings before [0]. - PSMArrowIO: import into temporaries and swap on success so caller identifications are preserved on failure. - QPXFile: empty PEPTIDOFORM now falls back to SEQUENCE; capture the first non-empty reference_file_name per run and set it on synthesized ProteinIdentification shells so the primary MS run path round-trips. - IDFileConverter: strip trailing path separators before extension-based type detection so `sample.idparquet/` is classified correctly. - Remove the percolator-psm-parquet plan and spec drafts. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/openms/source/FORMAT/QPXFile.cpp (1)
1550-1797: Consider splittingimportFromArrowinto focused helpers.This method is handling schema checks, grouping, hit decoding, metadata restoration, and shell-protein synthesis in one block. Extracting these into small helpers would reduce cognitive load and future regression risk.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/openms/source/FORMAT/QPXFile.cpp` around lines 1550 - 1797, The QPXFile::importFromArrow function is doing too many tasks; split it into focused helper methods to improve readability and testability: extract the schema and column validation block into a helper like validatePSMSchemaAndColumns(const arrow::Table&, /*out*/ ColumnRefs&), move the per-row peptide hit construction into buildPeptideHitFromRow(const ColumnRefs&, int64_t row) which handles sequence/proforma, protein accession parsing, additional scores and psm metavalues (you can further factor parseProteinAccessions and parseAdditionalScores helpers used by buildPeptideHitFromRow), and move the shell ProteinIdentification creation into synthesizeShellProteinIdentifications(const PeptideIdentificationList&, std::vector<ProteinIdentification>&, const run_id_to_ref_file_t&). Ensure each new helper preserves existing behavior (use the same getXXXValue_ and readMetaValues_ utilities and p_id_to_idx bookkeeping) and update importFromArrow to orchestrate these helpers without changing public behavior or side-effects.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/openms/source/FORMAT/QPXFile.cpp`:
- Around line 1550-1797: The QPXFile::importFromArrow function is doing too many
tasks; split it into focused helper methods to improve readability and
testability: extract the schema and column validation block into a helper like
validatePSMSchemaAndColumns(const arrow::Table&, /*out*/ ColumnRefs&), move the
per-row peptide hit construction into buildPeptideHitFromRow(const ColumnRefs&,
int64_t row) which handles sequence/proforma, protein accession parsing,
additional scores and psm metavalues (you can further factor
parseProteinAccessions and parseAdditionalScores helpers used by
buildPeptideHitFromRow), and move the shell ProteinIdentification creation into
synthesizeShellProteinIdentifications(const PeptideIdentificationList&,
std::vector<ProteinIdentification>&, const run_id_to_ref_file_t&). Ensure each
new helper preserves existing behavior (use the same getXXXValue_ and
readMetaValues_ utilities and p_id_to_idx bookkeeping) and update
importFromArrow to orchestrate these helpers without changing public behavior or
side-effects.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c3a56769-920f-4904-b902-cb125312fce4
📒 Files selected for processing (5)
src/openms/source/FORMAT/ConsensusMapArrowIO.cppsrc/openms/source/FORMAT/FeatureMapArrowIO.cppsrc/openms/source/FORMAT/PSMArrowIO.cppsrc/openms/source/FORMAT/QPXFile.cppsrc/topp/IDFileConverter.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
- src/openms/source/FORMAT/PSMArrowIO.cpp
The 'score:fdr' option uses a colon prefix that TOPPBase::printUsage_
treats as a subsection. Without registerTOPPSubsection_("score", ...),
the TOPP doc generator throws ElementNotFound and breaks the
doc_param_internal target on every CI platform.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…it_index (OpenMS#9225) Two follow-ups from the CodeRabbit review on PR OpenMS#9232: ArrowIOHelpers consolidation ---------------------------- The Arrow read helpers (getColumn_, getStringValue_, getDoubleValue_, getInt32Value_, getBoolValue_, isNull_, readMetaValues_) were duplicated in QPXFile.cpp and ConsensusMapArrowIO.cpp. Move them into the existing OpenMS::ArrowIOHelpers namespace (header + implementation), drop the trailing-underscore convention now that they live in a public namespace, and add getFloatValue/getInt64Value to cover the ConsensusMap-specific variants. Net -62 lines once duplicates are removed and ~94 call sites are rewritten. PSMSchema.rank -> PSMSchema.hit_index ------------------------------------- The dedicated `rank` column was being filled with the loop counter (hit_idx) on export, while `hit.setRank(...)` was called on import. This had two real correctness problems: * idXML sources (rank field always 0) round-tripped through idparquet with spurious `<UserParam name="rank">` entries. * mzIdentML / search-engine-adapter sources where the stored hit order does not match rank order had their ranks silently corrupted. Rename the column to `hit_index` to reflect what it actually stores (positional index, 0-based, within the parent identification). Stop calling `hit.setRank` from the column on import: rank semantics now round-trip via the regular "rank" UserParam in psm_metavalues, which is what `PeptideHit::getRank()` already reads under the hood. Apply the same change in FeatureMapArrowIO and the pyOpenMS to_psm_df / to_psm_arrow / to_parquet paths so the convention is consistent across all writers. Update fixtures and references accordingly. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…penMS#9225) ProteinHit.rank_ is a UInt field that always has a defined value (0 by default). The writer always emits hit.getRank(); there is no null path. The schema previously declared the column nullable=true, which suggested an unset state the API does not have. Tighten the schema to nullable=false so it matches reality and aligns with sibling fields like ACCESSION and SCORE. Regenerate test fixtures so their embedded schema metadata reflects the change. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Added entries for: - Fix: BrukerTimsFile off-by-one in MS1 centroid cap (#9233) - Native .idparquet identification format (#9225, #9232): - PSMArrowIO new class, FileTypes::IDPARQUET, QPXFile::importFromArrow - Tool support: IDMerger, IDFileConverter, PercolatorAdapter, CometAdapter, MSGFPlusAdapter, SageAdapter Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
…-filter, schema validation, …) (#9240) * fix(IDMerger): preserve input file order across merged IdentificationRuns mergeIds_ was using std::map<String, ProteinIdentification> for both proteins_by_id and selected_proteins, which silently re-sorts runs in alphabetical-by-identifier order on output (and in the add_to branch, reverse-alphabetical via rbegin()/rend()). Whether or not a fixture happened to be in input order was an accident of how identifiers sort lexically. This breaks any downstream tool that expects "first run in equals first run out" — most concretely IDRipper, where the per-run output index is load-bearing for users splitting a merged file back into per-source .idparquet directories. Replace the map with an insertion-ordered structure (std::vector<String> of keys for order + std::unordered_map<String, ProteinIdentification> for O(1) lookup); emit runs in first-seen order in both the no-add_to and add_to paths. Update IDRipper_3_output.idXML reference to reflect the corrected order (no content change, just run order; downstream out1/out2 diffs against the original inputs still pass, confirming the rip is faithful). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(PercolatorAdapter): apply -score:fdr and -best_per_spectrum_only on in-process path The in-process Percolator backend (vendored library + TRON solver, #9218) returned EXECUTION_OK immediately after writing output, bypassing the post-filter logic that the subprocess path runs. Result: same input, same -score:fdr / -best_per_spectrum_only flags, different output depending on which backend the user happened to be using. Extract the post-filter into a small helper (applyPostFilters_) and invoke it from both paths so the two backends produce equivalent output. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(QPXFile): validate schema even for null/empty tables importFromArrow used to bail with success on (!table || num_rows == 0) before any schema check. That silently accepted a nullptr table as "success" and let a structurally-incompatible 0-row file pass through without rejection. Split the early return: nullptr -> log + return false; otherwise combine chunks and run ArrowSchemaValidation regardless of row count, then if num_rows == 0 return true after a successful validation. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * test(FileHandler): tighten idparquet round-trip assertions The .idparquet round-trip section asserted only container sizes, which silently passed even if identifier, score_type, hit sequence, charge or score got corrupted on reload. Add explicit equality checks for the key fields after load so a future regression in any of them fails the test instead of slipping through. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * docs(adapters): clarify -out is a directory bundle for .idparquet SageAdapter, CometAdapter and MSGFPlusAdapter now all accept .idparquet in addition to .idXML, but their -out help text still claimed "Single output file" / "Output file", which is misleading because .idparquet is a directory of four .parquet files. Reword to mention both shapes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(idparquet): floor-div sub-second negative timestamps C++ integer division truncates toward zero, so a small negative timestamp like raw = -500 ms previously divided to 0 in the SEC scaling step and then passed the epoch_secs >= 0 guard, silently rendering as 1970-01-01. Use floor-style division so -500 ms becomes -1 s and the existing negative-epoch guard rejects it. Realistic proteomics timestamps are post-1970 so this is unobservable in production data, but the code is now correct for any future synthetic or pre-1970 input. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(PercolatorAdapter): require q-value/FDR score type before -score:fdr -score:fdr is an FDR threshold and only makes sense when the main score is a q-value or FDR; with -score_type q-value (the default) PercolatorAdapter sets it that way after parsing, so the assumption holds on the well-formed code path. But IDFilter::filterHitsByScore would silently mis-threshold if a future code path landed here with an svm/PEP main score. Add an explicit precondition check using OpenMS::Scores::isScoreType against IDType::QVAL / IDType::FDR; throw Exception::Precondition with a fix-it message ("Re-run with -score_type q-value or omit -score:fdr.") if the score type is something else. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * refactor(IDMerger): try_emplace single-lookup pattern; floor_div UB-safe Two small follow-ups to PR #9240: 1. IDMerger: replace the count(id)==0 then [id]=prot two-lookup pattern with try_emplace + iterator update, mirroring the same change in the selected_proteins path. No behavior change; one hash lookup per insert instead of two. 2. ProteinIdentificationArrowIO: rewrite the floor_div lambda in the timestamp-scaling switch using quotient/remainder so the function is well-defined at INT64_MIN (the previous "-((-r + d - 1) / d)" form negated r and would have hit signed-overflow UB at INT64_MIN). Practically unobservable in real proteomics timestamps but cheap to make watertight. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * fix(PercolatorAdapter): filter -score:fdr by q-value regardless of -score_type Switch to IDFilter::filterHitsByScore(...,ScoreType::QVAL) so the cutoff is always applied to the q-value, even when the user selects -score_type svm or pep as the main hit score. The q-value is found via the MS:1001491 meta value that both backends stamp on every rescored hit. Supersedes 15be39b, which rejected svm/pep score types outright; that was too strict — users want svm/PEP as the displayed main score while still applying a q-value FDR cutoff. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Closes #9225 (in part — residual follow-ups noted below).
Summary
Adds a directory-based
.idparquetbundle (psms.parquet+proteins.parquet+protein_groups.parquet+search_params.parquet) as a first-class identification format in OpenMS. The bundle uses the internalPSMSchema(lossless round-trip — distinct fromQPXPSMSchema, which remains the cross-tool exchange format and is untouched).PercolatorAdapter additionally gains an
score:fdrpost-filter on Percolator's q-value, plus an opt-inbest_per_spectrum_onlyflag (default off — preserves legacy multi-hit-per-spectrum output).Architecture
Three layers, narrowest at the top.
PSMArrowIOclass (include/OpenMS/FORMAT/PSMArrowIO.h/.cpp). New free-standingQPXFile::importFromArrowextracted fromConsensusMapArrowIO::importPSMsFromArrow—ConsensusMapArrowIOnow delegates PSM construction (–223/+46 LOC).FileTypes::IDPARQUETenum +.idparquetextension binding. NewFileTypes::isDirectoryType()predicate.FileHandler::{load,store}IdentificationsdispatchIDPARQUETtoPSMArrowIO.PercolatorAdapter,IDMerger,SageAdapter(migrated from directIdXMLFile().store()toFileHandler.storeIdentifications),CometAdapter,MSGFPlusAdapter,IDFileConverterall accept.idparquet.Schema extension
PSMSchema::PROTEIN_ACCESSIONSwas upgraded fromlist<utf8>tolist<struct{accession, aa_before, aa_after, start, end}>soPeptideEvidencepositional fields round-trip.aa_before/aa_afteruse 1-char strings (null =UNKNOWN_AA);start/enduse nullable int32 (null =UNKNOWN_POSITION).QPXPSMSchema(cross-tool exchange) deliberately keepslist<utf8>— out of scope here.New options on PercolatorAdapter
score:fdr(double, default1.0, range[0.0, 1.0]) — drops PSMs whose q-value exceeds the cutoff before writing the output.1.0disables the filter.best_per_spectrum_only(flag, default off) — opt-in best-PSM-per-spectrum dedup. Default off preserves legacy behaviour.Test plan
Unit tests:
FileTypes_test—IDPARQUETregistration +isDirectoryTypepredicateFileHandler_test— round-trip vialoadIdentifications/storeIdentificationsdispatchQPXFile_test—importFromArrowround-trip including multi-group dispatch, shell-append for unknownrun_identifier, sentinels for unknown peptide-evidence positionsPSMArrowIO_test— round-trip with PIN feature metavalues, peptide-evidence positions, target / decoy / multi-rank coverage; missing-subfile + regular-file-target error pathsConsensusMapArrowIO_test— behaviour preserved through the refactorTOPP tests:
TOPP_PercolatorAdapter_score_fdr— smoke test the new filter on the existing idXML fixtureTOPP_PercolatorAdapter_idparquet(+_convert+_diff) —.idparquetround-trip through PercolatorAdapterTOPP_IDMerger_idparquet(+_convert+_diff) — merge two.idparquet/inputs, diff via IDFileConverterKnown limitations / follow-ups
The
.idparquetround-trip is now lossless for allPeptideHitcore fields, additional scores, metavalues, andPeptideEvidencepositional fields. Residual lossiness blocks dropping the bespoke per-test reference idXML files in favour of the original references:<UserParam name=\"spectra_data\" value=\"[]\">onProteinIdentificationnot preserved.PeptideHitdiffers.40vs40.0).rankUserParam gets inserted on round-trip even when the source has none.Each is a follow-up for a separate PR. Also flagged for future cleanup:
getColumn_,isNull_, etc.) are duplicated across six.cppfiles. This PR adds a sixth copy inQPXFile.cpprather than consolidating, per the spec's explicit out-of-scope notes; consolidating intoArrowIOHelpersis its own refactor.Pre-existing test failures (NOT regressions)
Two known failures reproduce on
developand are unrelated to this branch:TOPP_PercolatorAdapter_1_out1— Percolator's SVM training is stochastic; theMS:1001493value drifts between runs (0.373407vs0.465065).TOPP_CometAdapter_1..6_out1— local Comet2023.01 rev. 2vs reference's2025.01 rev. 1. Reference paths and float precision drift; the branch's CometAdapter diff is two whitelist lines and cannot affect idXML output.Commits
22 commits on the branch, organized:
isDirectoryTypepredicate,PSMSchemapositional-fields extension, decoy + multi-rank tests🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
.idparquetformat support for persistent storage of protein identifications and peptide spectrum matches as a directory-based Parquet structure..idparquetfiles: IDMerger, IDFileConverter, PercolatorAdapter, CometAdapter, MSGFPlusAdapter, and SageAdapter.