PathwayAndDataAnalysis/causalpath

Make plotting optional

Closed this issue · 1 comments

This line:

KernelDensityPlot.plot("Graph size distribution", map);

Triggers the following error when running in an environment without X11:

Exception in thread "main" java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.(Window.java:536)
at java.awt.Frame.(Frame.java:420)
at java.awt.Frame.(Frame.java:385)
at javax.swing.JFrame.(JFrame.java:189)
at org.panda.utility.statistics.KernelDensityPlot.(KernelDensityPlot.java:23)
at org.panda.utility.statistics.KernelDensityPlot.plot(KernelDensityPlot.java:87)
at org.panda.causalpath.analyzer.NSCForCorrelation.run(NSCForCorrelation.java:130)
at org.panda.causalpath.run.CausalPath.calculateNetworkSignificance(CausalPath.java:594)
at org.panda.causalpath.run.CausalPath.run(CausalPath.java:433)
at org.panda.causalpath.run.CausalPath.main(CausalPath.java:247)

I don't think it ever actually gets shown to the user, anyways.

That is a debug code accidentally committed. Removed that a while ago.