From abbbaa7818eb44c1c6495909ab7554ab87b6cd7b Mon Sep 17 00:00:00 2001 From: nbollis Date: Thu, 7 May 2026 12:33:31 -0500 Subject: [PATCH 01/26] SMPlot: Change protein: to transcript: in description --- .../MetaDraw/SpectrumMatch/SpectrumMatchPlot.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MetaMorpheus/GuiFunctions/MetaDraw/SpectrumMatch/SpectrumMatchPlot.cs b/MetaMorpheus/GuiFunctions/MetaDraw/SpectrumMatch/SpectrumMatchPlot.cs index 071e27e79..079255458 100644 --- a/MetaMorpheus/GuiFunctions/MetaDraw/SpectrumMatch/SpectrumMatchPlot.cs +++ b/MetaMorpheus/GuiFunctions/MetaDraw/SpectrumMatch/SpectrumMatchPlot.cs @@ -496,7 +496,7 @@ protected void AnnotateProperties(LibrarySpectrum librarySpectrum = null) if (MetaDrawSettings.SpectrumDescription["Protein Accession: "]) { - text.Append("Protein Accession: "); + text.Append("Accession: "); if (SpectrumMatch.Accession.Length > 10) { text.Append("\r\n " + SpectrumMatch.Accession); @@ -509,7 +509,11 @@ protected void AnnotateProperties(LibrarySpectrum librarySpectrum = null) if (SpectrumMatch.Name != null && MetaDrawSettings.SpectrumDescription["Protein: "]) { - text.Append("Protein: "); + if (GuiGlobalParamsViewModel.Instance.IsRnaMode) + text.Append("Transcript: "); + else + text.Append("Protein: "); + text.Append(SpectrumMatch.Name); text.Append("\r\n"); } From 3d9a505d51d0029fbfd9148204bdb21da938d052 Mon Sep 17 00:00:00 2001 From: nbollis Date: Thu, 7 May 2026 13:15:58 -0500 Subject: [PATCH 02/26] SMPlot: Abbreviated Ion Labels --- .../GUI/MetaDraw/MetaDrawSettingsWindow.xaml | 11 +- .../GuiFunctions/MetaDraw/MetaDrawSettings.cs | 3 + .../MetaDraw/MetaDrawSettingsSnapshot.cs | 1 + .../SpectrumMatch/SpectrumMatchPlot.cs | 29 ++++- .../ViewModels/MetaDrawSettingsViewModel.cs | 7 ++ .../MetaDraw/MetaDrawSettingsAndViewsTest.cs | 2 + .../Test/MetaDraw/SpectrumMatchPlotTests.cs | 105 ++++++++++++++++++ 7 files changed, 151 insertions(+), 7 deletions(-) diff --git a/MetaMorpheus/GUI/MetaDraw/MetaDrawSettingsWindow.xaml b/MetaMorpheus/GUI/MetaDraw/MetaDrawSettingsWindow.xaml index 40fe2d1a1..6c770afe2 100644 --- a/MetaMorpheus/GUI/MetaDraw/MetaDrawSettingsWindow.xaml +++ b/MetaMorpheus/GUI/MetaDraw/MetaDrawSettingsWindow.xaml @@ -6,7 +6,7 @@ xmlns:local="clr-namespace:MetaMorpheusGUI" xmlns:guiFunctions="clr-namespace:GuiFunctions;assembly=GuiFunctions" mc:Ignorable="d" - Title="Graphical Settings" Width="620" SizeToContent="Height" WindowStartupLocation="CenterScreen" + Title="Graphical Settings" Width="640" SizeToContent="Height" WindowStartupLocation="CenterScreen" Height="500" MaxHeight="700" d:DataContext="{x:Static guiFunctions:MetaDrawSettingsViewModel.Instance}"> @@ -30,7 +30,7 @@ - + @@ -99,7 +99,7 @@ HorizontalAlignment="Center" Background="Transparent" Width="2" - Margin="20,0,0,0"/> + Margin="5, 0"/> @@ -146,8 +146,11 @@ + - + - - - - - - - - - - - + + + + + + + + + + + + + + +