Skip to content

Fix gnps#646

Merged
YukiMatsuzawa merged 8 commits intomasterfrom
bugfix/gnps-exporter
Oct 21, 2025
Merged

Fix gnps#646
YukiMatsuzawa merged 8 commits intomasterfrom
bugfix/gnps-exporter

Conversation

@YukiMatsuzawa
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the GNPS export pipeline to fix metadata and MGF output issues.

  • Replace AccessPeakMetaModel with a dedicated GnpsMetadataAccessor implementing IMetadataAccessor.
  • Modify MGF export to use MSDec spectra and optionally omit the "Num Peaks" line.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/MSDIAL5/MsdialGuiApp/Model/Lcms/LcmsMethodModel.cs Switch GNPS export to use GnpsMetadataAccessor.
src/MSDIAL5/MsdialGuiApp/Model/Lcimms/LcimmsMethodModel.cs Switch GNPS export to use GnpsMetadataAccessor.
src/MSDIAL5/MsdialGuiApp/Model/Imms/ImmsMethodModel.cs Switch GNPS export to use GnpsMetadataAccessor.
src/MSDIAL5/MsdialGuiApp/Model/Gcms/GcmsMethodModel.cs Switch GNPS export to use GnpsMetadataAccessor.
src/MSDIAL5/MsdialGuiApp/Model/Export/AlignmentGnpsExportModel.cs Update model to accept IMetadataAccessor and pass msdecResults to MGF export.
src/MSDIAL5/MsdialCore/Export/SpectraExport.cs Add optional flag to omit "Num Peaks" line in MGF and plumb it through.
src/MSDIAL5/MsdialCore/Export/GnpsMetadataAccessor.cs New accessor providing GNPS-specific headers and content.
src/MSDIAL5/MsdialCore/Export/AlignmentGnpsExporter.cs Update GNPS MGF export to use MSDec spectra and omit "Num Peaks".

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@YukiMatsuzawa YukiMatsuzawa merged commit 1c38a53 into master Oct 21, 2025
5 checks passed
@YukiMatsuzawa YukiMatsuzawa deleted the bugfix/gnps-exporter branch October 21, 2025 01:19
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.

2 participants