Skip to content

[doc-sync] docs(feature_detection.rst): document optional IonMobility and Adduct columns for FeatureFinderMetaboIdent TSV - #9409

Merged
timosachsenberg merged 2 commits into
developfrom
doc-sync/feature-finder-metabo-ident-adduct-column-3341243409771461
May 27, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
doc-sync/feature-finder-metabo-ident-adduct-column-3341243409771461

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

The pyOpenMS tutorial for FeatureFinderAlgorithmMetaboIdent was out of sync with recent code changes that added support for optional TSV columns.

Source files that triggered this review

  • src/topp/FeatureFinderMetaboIdent.cpp — updated in #9382 to accept an optional Adduct column
  • src/openms/include/OpenMS/FEATUREFINDER/FeatureFinderAlgorithmMetaboIdent.h — FeatureFinderMetaboIdentCompound constructor gained an optional adduct parameter
  • src/pyOpenMS/bindings/bind_featurefinder.cpp — pyOpenMS binding already exposes adduct as an optional kwarg with default ""

Documentation file updated

doc/pyopenms/docs/source/user_guide/feature_detection.rst

What was wrong

The tutorial showed only the 7 mandatory TSV columns (CompoundName, SumFormula, Mass, Charge, RetentionTime, RetentionTimeRange, IsoDistribution) and the example metaboTableFromFile() function read exactly those 7 columns, ignoring any optional trailing columns. Users who added an Adduct column to their library file would silently get the old default adduct behaviour instead of the one they specified.

What was changed

  1. Added a prose note immediately after the CSV table listing the two supported optional columns and their semantics:

    • IonMobility — target ion mobility filter value (for IM/FAIMS data)
    • Adduct — explicit adduct string (e.g. [M+H]+, [M+Na]+, [M-H]-); defaults to [M+H]+/[M-H]- when absent
  2. Updated the metaboTableFromFile() example to:

    • Detect IonMobility and Adduct columns from the header row
    • Pass the optional values (or empty defaults) to the FeatureFinderMetaboIdentCompound constructor, which already accepts them as optional keyword arguments

Generated by Documentation Sync Agent · ◷

… TSV columns

The FeatureFinderMetaboIdent TSV format supports two optional columns
after IsoDistribution:
- IonMobility (added in #7453 for IM/FAIMS support)
- Adduct (added in #9382 for explicit adduct specification)

The pyOpenMS tutorial at doc/pyopenms/docs/source/user_guide/feature_detection.rst
was showing only the 7 required columns and the Python parsing example
did not read or pass the optional columns to FeatureFinderMetaboIdentCompound.

Changes:
- Add a prose note listing the two optional columns with their semantics
- Update the metaboTableFromFile() example to detect IonMobility and
  Adduct columns from the header row and pass them (or empty defaults)
  to the FeatureFinderMetaboIdentCompound constructor, which already
  accepts both as optional keyword arguments.

Co-authored-by: Copilot <[email protected]>
@timosachsenberg
timosachsenberg marked this pull request as ready for review May 27, 2026 10:38
@timosachsenberg
timosachsenberg merged commit 2ad345b into develop May 27, 2026
41 checks passed
@timosachsenberg
timosachsenberg deleted the doc-sync/feature-finder-metabo-ident-adduct-column-3341243409771461 branch May 27, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant