eugenegujing commented on code in PR #9041:
URL: https://github.com/apache/texera/pull/9041#discussion_r4609584771
##########
common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/visualization/volcanoPlot/VolcanoPlotOpDescSpec.scala:
##########
@@ -68,6 +84,335 @@ class VolcanoPlotOpDescSpec extends AnyFlatSpec with
Matchers {
decodeOccurrences should be >= 2
}
+ it should "draw no cut-off line and keep the continuous effect-size coloring
by default" in {
+ val code = configured.generatePythonCode()
+ code should not include "add_hline"
+ code should not include "add_vline"
+ assertContinuousColoring(code)
+ }
+
+ it should "draw a dashed horizontal line at -log10 of the significance
threshold" in {
+ val op = configured
+ op.significanceThreshold = Some(0.05)
+ val code = op.generatePythonCode()
+ code should include(hline)
+ code should not include "add_vline"
+ assertContinuousColoring(code)
+ }
+
+ it should "draw dashed vertical lines at plus and minus the effect-size
threshold" in {
+ val op = configured
+ op.effectSizeThreshold = Some(1.0)
+ val code = op.generatePythonCode()
+ code should include(vlines)
+ code should not include "add_hline"
+ assertContinuousColoring(code)
+ }
Review Comment:
Removed in 91ebd1ee19fc6adb4c11575e5ef53c0273f164aa
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]