Repository navigation
[doc-sync] docs(feature_detection.rst): document optional IonMobility and Adduct columns for FeatureFinderMetaboIdent TSV - #9409
Merged
timosachsenberg merged 2 commits intoMay 27, 2026
Conversation
… 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]>
…ct-column-3341243409771461
timosachsenberg
marked this pull request as ready for review
May 27, 2026 10:38
timosachsenberg
deleted the
doc-sync/feature-finder-metabo-ident-adduct-column-3341243409771461
branch
May 27, 2026 10:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The pyOpenMS tutorial for
FeatureFinderAlgorithmMetaboIdentwas 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 optionalAdductcolumnsrc/openms/include/OpenMS/FEATUREFINDER/FeatureFinderAlgorithmMetaboIdent.h—FeatureFinderMetaboIdentCompoundconstructor gained an optionaladductparametersrc/pyOpenMS/bindings/bind_featurefinder.cpp— pyOpenMS binding already exposesadductas an optional kwarg with default""Documentation file updated
doc/pyopenms/docs/source/user_guide/feature_detection.rstWhat was wrong
The tutorial showed only the 7 mandatory TSV columns (
CompoundName,SumFormula,Mass,Charge,RetentionTime,RetentionTimeRange,IsoDistribution) and the examplemetaboTableFromFile()function read exactly those 7 columns, ignoring any optional trailing columns. Users who added anAdductcolumn to their library file would silently get the old default adduct behaviour instead of the one they specified.What was changed
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 absentUpdated the
metaboTableFromFile()example to:IonMobilityandAdductcolumns from the header rowFeatureFinderMetaboIdentCompoundconstructor, which already accepts them as optional keyword arguments