-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deconvolution GUI Modularity #2429
base: master
Are you sure you want to change the base?
Conversation
* Updated to MzLib 1.0.548 and fixed custom ions in search tasks * reverted calibration task change * merged in master bbbyy * Enabled Library Loading from command line
Streamlined deconvolution parameter management by introducing `DeconHostViewModel` and custom control `HostDeconParamControl`. Updated `CommonParameters.cs` to change default `ProductDeconvolutionParameters` in negative mode from `-10` to `-20`. Modified `SearchTaskWindow.xaml` and `SearchTaskWindow.xaml.cs` to use the new view model, improving separation of concerns and maintainability. Updated `SaveButton_Click` and other relevant methods to retrieve parameters via the view model.
… set from the GUI with the new code structure
Refactored several XAML files to improve UI structure and readability: - Removed unnecessary `GroupBox` in `SearchTaskWindow.xaml` and added a new one for "Peak Trimming". - Adjusted layout in `ClassicDeconParamsControl.xaml` and `HostDeconParamControl.xaml`. Enhanced ViewModel logic: - Updated `DeconHostViewModel.cs` and `DeconParamsViewModel.cs` to include additional properties and validation logic. - Added `[ExcludeFromCodeCoverage]` attribute to `IsoDecDeconParamsViewModel.cs`. Expanded unit tests: - Removed obsolete `GuiFunctionsTest.cs`. - Added new test classes for `ClassicDeconParamsViewModel`, `DeconParamsViewModel`, `DeconHostViewModel`, and `MzLibExtensions`. - Included tests for property changes, validation logic, and conversion methods.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2429 +/- ##
==========================================
+ Coverage 93.69% 93.73% +0.03%
==========================================
Files 141 145 +4
Lines 21883 22067 +184
Branches 3001 3043 +42
==========================================
+ Hits 20504 20684 +180
- Misses 927 929 +2
- Partials 452 454 +2
|
"Minimum intensity ratio" and "Nominal window width" won't accept non-integer inputs. |
Also, can't set assumed charge states to negative when no data is loaded in. |
It is set to positive mode. No negatives can be input. Once RNA is added, then the toggle between positive and negative will be exposed. |
Refactored the deconvolution parameters handling in the MetaMorpheus GUI to use custom controls and view models for better modularity and extensibility.
SearchTaskWindow.xaml
and.xaml.cs
: Replaced stack panels and checkboxes withHostDeconParamControl
and bound toDeconHostViewModel
.GPTMDTaskWindow.xaml
andSearchTaskWindow.xaml
: ReplacedGroupBox
for "Deisotoping" withHostDeconParamControl
bound toDeconHostViewModel
.DeconvolutionTypeToControlConverter
for convertingDeconParamsViewModel
to appropriate controls.ClassicDeconParamsControl
andHostDeconParamControl
.ClassicDeconParamsViewModel
,DeconHostViewModel
, andIsoDecDeconParamsViewModel
.MetaMorpheus.sln.DotSettings
to include "Decon" and "Deconvolute" in the user dictionary.To Consider:
Do we want to expose the product deconvolution parameters?
Do we want to add decon parameter setting to calibration?