Skip to content

Commit

Permalink
Merge pull request #15 from rmmiller22/master
Browse files Browse the repository at this point in the history
Coverage Map legend updates
  • Loading branch information
rmmiller22 authored Nov 25, 2020
2 parents 7afdba7 + 1b5cdf1 commit 1b033be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Engine/GlobalVariables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static GlobalVariables()
#if DEBUG
ProteaseGuruVersion = "Not a release version. DEBUG.";
#else
ProteaseGuruVersion = "0.0.18";
ProteaseGuruVersion = "0.0.19";
#endif
}
else
Expand Down
20 changes: 10 additions & 10 deletions GUI/SequenceCoverageMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static void drawLegend(Canvas cav, Dictionary<string, Color> proteaseByCo
legend.ColumnDefinitions.Add(new ColumnDefinition());
legend.ColumnDefinitions.Add(new ColumnDefinition());
legend.ColumnDefinitions.Add(new ColumnDefinition());
string[] peptides = new string[2] { "Shared", "Unique" };
string[] peptides = new string[2] { "Shared peptides (translucent)", "Unique peptides (bold)" };
foreach (string peptide in peptides)
{
Line pepLine = new Line();
Expand All @@ -206,7 +206,7 @@ public static void drawLegend(Canvas cav, Dictionary<string, Color> proteaseByCo
pepLine.Y2 = 0;
pepLine.StrokeThickness = 4;
pepLine.Stroke = new SolidColorBrush(Colors.Black);
if (peptide.Equals("Shared"))
if (peptide.Equals("Shared peptides (translucent)"))
{

pepLine.Stroke.Opacity = 0.35;
Expand All @@ -215,7 +215,7 @@ public static void drawLegend(Canvas cav, Dictionary<string, Color> proteaseByCo
pepLine.VerticalAlignment = VerticalAlignment.Center;

Label pepLabel = new Label();
pepLabel.Content = peptide + " peptides";
pepLabel.Content = peptide ;
pepLabel.FontSize = 12;


Expand All @@ -231,8 +231,8 @@ public static void drawLegend(Canvas cav, Dictionary<string, Color> proteaseByCo
{
legend.ColumnDefinitions.Add(new ColumnDefinition());
Label variantLabel = new Label();
variantLabel.Content = "Sequence Variants";
variantLabel.Foreground = Brushes.Tomato;
variantLabel.Content = "Sequence Variant";
variantLabel.Foreground = Brushes.Red;
variantLabel.FontWeight = FontWeights.ExtraBold;
variantLabel.FontSize = 12;
legend.Children.Add(variantLabel);
Expand Down Expand Up @@ -311,7 +311,7 @@ public static void drawLegendMods(Canvas cav, Dictionary<string, Color> protease
legend.ColumnDefinitions.Add(new ColumnDefinition());
legend.ColumnDefinitions.Add(new ColumnDefinition());
legend.ColumnDefinitions.Add(new ColumnDefinition());
string[] peptides = new string[2] { "Shared", "Unique" };
string[] peptides = new string[2] { "Shared peptides (translucent)", "Unique peptides (bold)" };
foreach (string peptide in peptides)
{
Line pepLine = new Line();
Expand All @@ -321,15 +321,15 @@ public static void drawLegendMods(Canvas cav, Dictionary<string, Color> protease
pepLine.Y2 = 0;
pepLine.StrokeThickness = 1;
pepLine.Stroke = new SolidColorBrush(Colors.Black);
if (peptide.Equals("Shared"))
if (peptide.Equals("Shared peptides (translucent)"))
{
pepLine.Stroke.Opacity = 0.35;
}
pepLine.HorizontalAlignment = HorizontalAlignment.Center;
pepLine.VerticalAlignment = VerticalAlignment.Center;

Label pepLabel = new Label();
pepLabel.Content = peptide + " peptides";
pepLabel.Content = peptide;
pepLabel.FontSize= 12;

legend.Children.Add(pepLine);
Expand All @@ -345,8 +345,8 @@ public static void drawLegendMods(Canvas cav, Dictionary<string, Color> protease
legend.ColumnDefinitions.Add(new ColumnDefinition());
Label variantLabel = new Label();
variantLabel.FontSize = 12;
variantLabel.Content = "Sequence Variants";
variantLabel.Foreground = Brushes.Tomato;
variantLabel.Content = "Sequence Variant";
variantLabel.Foreground = Brushes.Red;
variantLabel.FontWeight = FontWeights.ExtraBold;
legend.Children.Add(variantLabel);
Grid.SetColumn(variantLabel, ++i);
Expand Down

0 comments on commit 1b033be

Please sign in to comment.