You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both TwoColorHeatMap and ThreeColorHeatMap CLI should also handle alpha channel color values so that CLI mimics GUI functionality (#66).
Both CLI contain lines that validate alpha value as numeric 0 to 255 and update the color's alpha channel. Their flags are related to the letter "t" for transparency.
Also contains bug fix in ThreeColorHM such that more than one color can be specified in a single call (before there was a restriction imposed for one color being changed at a time).
TwoColorHM was also adjusted to avoid redundancy. The check for custom color being selected occurred more than once so the hexcode decoding block was moved.
Copy file name to clipboardExpand all lines: src/cli/Figure_Generation/ThreeColorHeatMapCLI.java
+25-2Lines changed: 25 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ static class MaxGroup {
76
76
@Option(names = {"-0", "--include-zeros"}, description = "used with `-p` flag, indicating exclusion of zero values when calculating percentile thresholds")
@Option(names = {"-cn", "--color-min"}, description = "Color indicating minimum values (default=YELLOW) For custom color: type hexadecimal string to represent colors (e.g. \"FF0000\" is hexadecimal for red).\n See <http://www.javascripter.net/faq/rgbtohex.htm> for some color options with their corresponding hex strings.\n")
@@ -88,7 +88,20 @@ static class ColorGroup {
88
88
@Option(names = {"-ca", "--color-nan"}, description = "Color indicating not-a-number values (default=GRAY) For custom color: type hexadecimal string to represent colors (e.g. \"FF0000\" is hexadecimal for red).\n See <http://www.javascripter.net/faq/rgbtohex.htm> for some color options with their corresponding hex strings.\n")
Copy file name to clipboardExpand all lines: src/cli/Figure_Generation/TwoColorHeatMapCLI.java
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,6 @@ public class TwoColorHeatMapCLI implements Callable<Integer> {
56
56
57
57
@ArgGroup(exclusive = true, multiplicity = "0..1", heading = "%nSelect heatmap color:%n\t@|fg(red) (select no more than one of these options)|@%n")
58
58
privateColorGroupcolor = newColorGroup();
59
-
60
59
staticclassColorGroup {
61
60
@Option(names = { "--black" }, description = "Use the color black for generating the heatmap (default)")
62
61
privatebooleanblack = false;
@@ -68,6 +67,9 @@ static class ColorGroup {
68
67
"--color" }, description = "For custom color: type hexadecimal string to represent colors (e.g. \"FF0000\" is hexadecimal for red).\n See <http://www.javascripter.net/faq/rgbtohex.htm> for some color options with their corresponding hex strings.\n")
69
68
privateStringcustom = null;
70
69
}
70
+
@Option(names = { "-t",
71
+
"--transparent" }, description = "Value indicating transparency of heatmap, 0 to 255 (default=255)\\n")
0 commit comments