Skip to content

added the export function of mztabM in cui application#623

Merged
YukiMatsuzawa merged 1 commit intomasterfrom
add_mztabmexport_for_cui
Sep 5, 2025
Merged

added the export function of mztabM in cui application#623
YukiMatsuzawa merged 1 commit intomasterfrom
add_mztabmexport_for_cui

Conversation

@htsugawa
Copy link
Copy Markdown
Contributor

@htsugawa htsugawa commented Sep 5, 2025

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 adds mzTabM export functionality to the MSDIAL console application across all analytical methods. The change implements mzTabM format export for alignment results in each of the supported analytical workflows (LCMS, LC-IMMS, IMMS, GCMS, and DIMS).

  • Adds mzTabM export functionality after alignment processing in all analytical method workflows
  • Updates a file path reference to use a relative path instead of an absolute path
  • Implements consistent mzTabM export patterns across different analytical platforms

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
Program.cs Updates file path to use relative path for parameter file
LcmsProcess.cs Adds mzTabM export functionality for LCMS alignment results
LcimmsProcess.cs Adds mzTabM export functionality for LC-IMMS alignment results
ImmsProcess.cs Adds mzTabM export functionality for IMMS alignment results
GcmsProcess.cs Adds mzTabM export functionality for GCMS alignment results
DimsProcess.cs Adds mzTabM export functionality for DIMS alignment results

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

Comment on lines +145 to +147
var spots = result.AlignmentSpotProperties; // TODO: cancellation
var msdecs = align_decResults;
var accessor = align_accessor;
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

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

[nitpick] These variable assignments create unnecessary intermediate variables that don't add clarity. Consider passing the original variables directly to the method call to reduce code complexity.

Copilot uses AI. Check for mistakes.
Comment on lines +146 to +148
var spots = result.AlignmentSpotProperties; // TODO: cancellation
var msdecs = align_decResults;
var accessor = align_accessor;
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

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

[nitpick] These variable assignments create unnecessary intermediate variables that don't add clarity. Consider passing the original variables directly to the method call to reduce code complexity.

Copilot uses AI. Check for mistakes.
Comment on lines +157 to +159
var spots = result.AlignmentSpotProperties; // TODO: cancellation
var msdecs = align_decResults;
var accessor = align_accessor;
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

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

[nitpick] These variable assignments create unnecessary intermediate variables that don't add clarity. Consider passing the original variables directly to the method call to reduce code complexity.

Copilot uses AI. Check for mistakes.
Comment on lines +241 to +248
var msdecs = decResults;
var mztabM_exporter = new MztabFormatExporter(storage.DataBases);

using var tabmstream = File.Open(mztabm_outputfile, FileMode.Create, FileAccess.Write, FileShare.ReadWrite);
mztabM_exporter.MztabFormatExporterCore(
tabmstream,
spots,
msdecs,
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

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

[nitpick] These variable assignments create unnecessary intermediate variables that don't add clarity. Consider passing the original variables directly to the method call to reduce code complexity.

Suggested change
var msdecs = decResults;
var mztabM_exporter = new MztabFormatExporter(storage.DataBases);
using var tabmstream = File.Open(mztabm_outputfile, FileMode.Create, FileAccess.Write, FileShare.ReadWrite);
mztabM_exporter.MztabFormatExporterCore(
tabmstream,
spots,
msdecs,
var mztabM_exporter = new MztabFormatExporter(storage.DataBases);
using var tabmstream = File.Open(mztabm_outputfile, FileMode.Create, FileAccess.Write, FileShare.ReadWrite);
mztabM_exporter.MztabFormatExporterCore(
tabmstream,
spots,
decResults,

Copilot uses AI. Check for mistakes.
Comment on lines +147 to +149
var spots = result.AlignmentSpotProperties; // TODO: cancellation
var msdecs = align_decResults;
var accessor = align_accessor;
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

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

[nitpick] These variable assignments create unnecessary intermediate variables that don't add clarity. Consider passing the original variables directly to the method call to reduce code complexity.

Copilot uses AI. Check for mistakes.
@YukiMatsuzawa YukiMatsuzawa merged commit dfc03e6 into master Sep 5, 2025
10 checks passed
@YukiMatsuzawa YukiMatsuzawa deleted the add_mztabmexport_for_cui branch September 5, 2025 06:46
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