Skip to content

TextExporter: document USI export - #9173

Merged
timosachsenberg merged 3 commits into
OpenMS:developfrom
Adi-gitX:docs/text-exporter-usi
Jul 8, 2026
Merged

timosachsenberg merged 3 commits into
OpenMS:developfrom
Adi-gitX:docs/text-exporter-usi

Conversation

@Adi-gitX

@Adi-gitX Adi-gitX commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Document the existing USI export support in TextExporter so the feature is visible in the built-in tool docs and CLI help for featureXML, consensusXML, and idXML peptide-identification output.

Refs #8470.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

Summary by CodeRabbit

  • Documentation
    • Clarified the id:add_usi command-line option to specify that the generated USI column is included for exported peptide identifications, not all peptide identifications.
    • Expanded output-format descriptions to explain where the extra USI column appears in consensusXML (including UNASSIGNEDPEPTIDE and PEPTIDE rows) and how it's added for PEPTIDE rows in idXML.
    • Updated the project AUTHORS list with an additional contributor.

Copilot AI review requested due to automatic review settings April 17, 2026 10:02
@github-actions

Copy link
Copy Markdown
Contributor

@Adi-gitX The following names might be missing from the AUTHORS file:

  • Adithya Kammati

Please consider applying the following patch:

--- AUTHORS	2026-04-17 10:03:06.530944772 +0000
+++ AUTHORS.new	2026-04-17 10:03:11.353071710 +0000
@@ -6,6 +6,7 @@
 authors contributing to a specific piece of code, please refer to
 the authors tag in the respective file header.
  - Achal Bajpai
+ - Adithya Kammati
  - Aditya Muzumdar
  - Ahmed Khalil
  - Alen Saric

@coderabbitai

coderabbitai Bot commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f114b67b-2d6e-417e-9956-4de80e17ce78

📥 Commits

Reviewing files that changed from the base of the PR and between 94a7877 and 535266b.

📒 Files selected for processing (2)
  • AUTHORS
  • src/topp/TextExporter.cpp
✅ Files skipped from review due to trivial changes (1)
  • src/topp/TextExporter.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • AUTHORS

📝 Walkthrough

Walkthrough

Updated TextExporter.cpp help text for id:add_usi and id:usi_dataset_id, and added Adithya Kammati to AUTHORS.

Changes

Documentation and metadata

Layer / File(s) Summary
TextExporter option documentation
src/topp/TextExporter.cpp
TextExporter help text clarifies id:add_usi behavior for exported peptide identifications and the added USI column in documented output formats.
Author entry
AUTHORS
Added Adithya Kammati to the author list.

Suggested reviewers: cbielow

Poem

🐰 I hopped through the docs with a cheerful grin,
USI columns now show where they fit in.
One new author joins the line,
And the page reads clearer—very fine!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: documenting USI export in TextExporter.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Documents the existing Universal Spectrum Identifier (USI) export support in the TextExporter TOPP tool so it becomes visible in built-in tool documentation and CLI help, addressing the discoverability request from #8470.

Changes:

  • Extend the Doxygen tool documentation to mention the additional USI column when id:add_usi is enabled (featureXML/consensusXML/idXML sections).
  • Refine the id:add_usi flag description in the CLI parameter registration text.

Comment thread src/topp/TextExporter.cpp Resolved
@timosachsenberg

Copy link
Copy Markdown
Contributor

Thanks for addressing #8470.

Verified against the code

Input Doc claim Code reality
featureXML peptide-identification rows gain a USI column TextExporter.cpp:814,821 — incl_usi set for both unassigned_opts and peptide_opts ✓
consensusXML UNASSIGNEDPEPTIDE and PEPTIDE rows gain a USI column TextExporter.cpp:1280-1288 — both opts set ✓
idXML additional column for PEPTIDE lines TextExporter.cpp:1507-1508 — peptide_opts.incl_usi = add_usi ✓ (idXML section on line 111 only lists RUN/PROTEIN/PEPTIDE, so the PEPTIDE-only mention matches the section's own convention)

Header emission at line 443 (out << \"USI\") confirms the column name is literally USI.

Issue 1 — inconsistent wording across the three notes

  • featureXML: "peptide-identification rows" (vague)
  • consensusXML: "UNASSIGNEDPEPTIDE and PEPTIDE rows" (explicit)
  • idXML: "PEPTIDE lines" (explicit)

The featureXML section has both UNASSIGNEDPEPTIDE (line 71) and PEPTIDE (line 73) rows, same as consensusXML. Please align the featureXML note to use the explicit row-type names, e.g. "With the id:add_usi flag, exported UNASSIGNEDPEPTIDE and PEPTIDE rows gain an additional USI column."

Issue 2 — id:usi_dataset_id prerequisite not mentioned

The flag's help text says "Requires setting 'id:usi_dataset_id'", and lines 689-691 even emit a runtime warning when it's empty. The class-docstring additions should mirror this so users reading the top-of-file docs aren't surprised — one short sentence like "The id:usi_dataset_id parameter must also be set for complete USIs." after each of the three notes (or once, somewhere prominent).

Issue 3 — drop the help-text tweak

-\"Add a column with Universal Spectrum Identifiers (USI) for peptide identifications. …\"
+\"Add a column with Universal Spectrum Identifiers (USI) for exported peptide identifications. …\"

"exported" adds no information — everything TextExporter does is export by definition. Please drop this hunk to keep the PR scoped to the doc-block additions.

Copy link
Copy Markdown
Contributor

Adversarial review result: no blocking issue found. This PR is documentation/help-text only for TextExporter USI behavior, and I did not see tracker-style issue references in source comments.

No build/tests run locally.

@timosachsenberg
timosachsenberg force-pushed the docs/text-exporter-usi branch from ee6c27d to 94a7877 Compare July 1, 2026 16:28
timosachsenberg added a commit to Adi-gitX/OpenMS that referenced this pull request Jul 1, 2026
…t_id

Maintainer follow-up while rebasing OpenMS#9173 onto develop:
- add Adithya Kammati to AUTHORS (flagged by the authors-check bot)
- mention id:usi_dataset_id in the featureXML tool docs so the prose,
  not just the CLI help, tells users how to get complete USIs

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HcY3LMYuUDF2psYat9uUYN
Adi-gitX and others added 3 commits July 1, 2026 19:55
…t_id

Maintainer follow-up while rebasing OpenMS#9173 onto develop:
- add Adithya Kammati to AUTHORS (flagged by the authors-check bot)
- mention id:usi_dataset_id in the featureXML tool docs so the prose,
  not just the CLI help, tells users how to get complete USIs

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HcY3LMYuUDF2psYat9uUYN
@timosachsenberg
timosachsenberg force-pushed the docs/text-exporter-usi branch from 94a7877 to 535266b Compare July 1, 2026 17:55
@timosachsenberg
timosachsenberg merged commit a663fc0 into OpenMS:develop Jul 8, 2026
38 checks passed
timosachsenberg added a commit that referenced this pull request Jul 10, 2026
Adds entries for PRs merged in the last couple of days that were missing
changelog coverage: the TOPPView precursor-highlighting feature (#9715),
the Xerces-C++ PRIVATE-linkage/XMLHandler API change (#9712, which also
supersedes a stale note left by the LibSVM PRIVATE-linkage entry), the
FragmentMassError variance fix (#9618), the PepXMLFile duplicate Comet
metavalue fix (#9089), and the clang/OpenMP and TextExporter USI
documentation additions (#9162, #9173).

Co-authored-by: Claude <[email protected]>
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