Repository navigation
feat(openms-consensus): structured modifications, localization scores, metadata tables - #238
Conversation
…, metadata tables Extend the openms-consensus converter to parity with the openms enrichment path: - Populate the structured `modifications` column in feature and psm views from pyopenms AASequence per-residue / terminal modifications (canonical UNIMOD:N). - Extract site-localisation scores from OpenMS UserParams for Luciphor, Ascore, and PhosphoRS (`<algo>_pep_score`, `<algo>_global_flr`, `<algo>_site_scores`) into `additional_scores` and per-position `modifications[].positions[].scores`. - Write the ontology / provenance / dataset metadata tables so the output is a complete 8-structure QPX dataset, matching the openms converter. - Add `--project-accession` and `--compression` CLI options, threaded through every writer, matching the openms command. Co-Authored-By: Claude <[email protected]>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| ErrorProne | 2 high |
| Security | 3 critical 1 medium |
| Complexity | 5 medium |
🟢 Metrics 54 complexity · 1 duplication
Metric Results Complexity 54 Duplication 1
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Resolve the CI pre-commit failures: - Remove the unused `headers` assignment in `_consensus_is_isobaric`. - Re-sort the `qpx._version` import ahead of `qpx.converters.*` (ruff I001). - Apply `ruff format` to cli/convert.py, converter.py, feature_adapter.py. Co-Authored-By: Claude <[email protected]>
Summary
Extends the
openms-consensusconverter to full parity with theopenmsenrichment path.Structured
modificationsmodificationscolumn in feature and psm views frompyopenmsAASequenceper-residue / N-/C-terminal modifications, with canonicalUNIMOD:Naccessions.peptidoformstring exactly (0 mismatches).Site-localisation scores
<algo>_pep_score→additional_scores<algo>_global_flr→additional_scores<algo>_site_scores({position: score}) →modifications[].positions[].scoresMetadata tables
CLI parity with
convert openms--project-accession(stamped intodataset.parquet).--compression [zstd|snappy|gzip|none], threaded through every writer (feature/psm/pg/run/sample/ontology/provenance/dataset).Validation
qpxc validateOverall VALID, schema columns exact, PK unique, record-level intensities match source, modifications positions ↔ peptidoform consistent (0 mismatches), site scores attached correctly.Files changed
qpx/cli/convert.pyqpx/converters/openms_consensus/converter.pyqpx/converters/openms_consensus/feature_adapter.pyqpx/converters/openms_consensus/psm_adapter.pyCo-Authored-By: Claude [email protected]