Repository navigation
Add adduct support to FeatureFinderMetaboIdent - #9382
Conversation
Previously, FeatureFinderMetaboIdent always assumed [M+H]+ adduct for positive charges and had no way to specify different adducts (e.g. [M+Na]+, [M-H]-, [2M+H]+). This commit adds: - An optional "Adduct" column to the TSV input format - Uses AdductInfo::parseAdductString() and AdductInfo::getMZ() for proper m/z calculation from any supported adduct notation - Annotates output features with the adduct information - Maintains backward compatibility: when no adduct is specified, defaults to M+H;1+ (positive) or M-H;1- (negative) - Updates pyOpenMS bindings for the new adduct parameter Agent-Logs-Url: https://github.com/OpenMS/OpenMS/sessions/ffae3e69-3273-4bb7-9ce3-c97d284f7fd3 Co-authored-by: jpfeuffer <[email protected]>
…unnecessary charge reset Agent-Logs-Url: https://github.com/OpenMS/OpenMS/sessions/ffae3e69-3273-4bb7-9ce3-c97d284f7fd3 Co-authored-by: jpfeuffer <[email protected]>
|
@copilot test is failing: Test output input: in1 in2
|
…and expected_rt The adduct UserParam is registered in MetaInfoRegistry before expected_rt (set in addTargetToLibrary_ at line 668, before expected_rt at line 690), so it appears between label and expected_rt in the featureXML output, not after sum_formula as initially placed. Agent-Logs-Url: https://github.com/OpenMS/OpenMS/sessions/5c55ec95-c9d1-458b-a244-70b7a4e5558f Co-authored-by: jpfeuffer <[email protected]>
Fixed in commit 344107a. The |
|
Looks good |
- FeatureFinderMetaboIdent: adduct support via optional TSV column (#9382) - BrukerTimsImagingFile: new Bruker .d MALDI imaging loader (#9383) - BrukerTimsFile: frame_id/RT range filter in Config (#9387) - Fix: SwathMapMassCorrection null-pointer and memory leak (#9386) Co-authored-by: Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
…n TSV input format (#9395) The adduct support added in #9382 introduced an optional 'Adduct' column to the TSV input file but the Doxygen tool documentation still described the old workaround of encoding adducts via a modified SumFormula. Update the Input format section to: - Add [Adduct] to the header line template - Add @p Adduct column description with supported notation examples - Clarify that the Adduct column supersedes the SumFormula workaround - Reword @p SumFormula to remove the now-misleading adduct-via-formula suggestion Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
… TSV columns (#9409) 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: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Timo Sachsenberg <[email protected]>
FeatureFinderMetaboIdentCompoundstruct (header)addTargetToLibrary_to accept and use adduct stringAdductInfo::getMZ()for proper adduct supportM+H;1+for positive charge,M-H;1-for negative (backward compatible)