Skip to content

Update gcms alignment process#574

Merged
Bujee415 merged 3 commits intomasterfrom
bugfix/gcms-alignment-annotation
May 30, 2025
Merged

Update gcms alignment process#574
Bujee415 merged 3 commits intomasterfrom
bugfix/gcms-alignment-annotation

Conversation

@YukiMatsuzawa
Copy link
Copy Markdown
Contributor

Update gcms alignment process

@YukiMatsuzawa YukiMatsuzawa requested review from Bujee415 and Copilot May 30, 2025 02:49
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 GC-MS alignment process by refining the candidate selection and removal logic in the alignment algorithm and by updating the molecule property in the annotated MS dec result to support nullability.

  • Replaces a foreach loop with a for-loop to support in-loop candidate removal in GcmsPeakJoiner.
  • Updates the Molecule property in AnnotatedMSDecResult to be nullable.

Reviewed Changes

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

File Description
src/MSDIAL5/MsdialGcMsApi/Algorithm/Alignment/GcmsPeakJoiner.cs Refactors candidate iteration and removal logic in the alignment process
src/MSDIAL5/MsdialCore/DataObj/AnnotatedMSDecResult.cs Modifies Molecule property to be nullable to reflect potential absence of data

public MsScanMatchResultContainer MatchResults { get; }
[IgnoreMember]
public IMoleculeProperty Molecule { get; }
public IMoleculeProperty? Molecule { get; }
Copy link

Copilot AI May 30, 2025

Choose a reason for hiding this comment

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

Add documentation to the Molecule property to clarify when its value may be null, ensuring consumers of this API understand the nullability conditions.

Copilot uses AI. Check for mistakes.
YukiMatsuzawa and others added 2 commits May 30, 2025 11:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Added XML documentation for the `Molecule` property in
`AnnotatedMSDecResult.cs` to clarify its purpose and
nullability.
@Bujee415 Bujee415 merged commit ea2144f into master May 30, 2025
13 of 14 checks passed
@Bujee415 Bujee415 deleted the bugfix/gcms-alignment-annotation branch May 30, 2025 06:08
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