If you attempt a Directed network analysis on a STRING network, you get an ugly error message (backtrace below). We should either disable the checkbox in these cases or pop up a friendlier message.
Also consider how this would work in automation use cases...
Attached is an example network that throws error when Direct option is checked (with zip extension to allow upload):
sessionNov19.zip
java.lang.NullPointerException: NetworkInterpretation is null.
at org.cytoscape.analyzer.tasks.AnalyzeNetworkTask.analyze(AnalyzeNetworkTask.java:146) ~[?:?]
at org.cytoscape.analyzer.tasks.AnalyzeNetworkTask.run(AnalyzeNetworkTask.java:131) ~[?:?]
at org.cytoscape.work.internal.task.JDialogTaskManager$TaskRunnable.innerRun(JDialogTaskManager.java:321) ~[!/:?]
at org.cytoscape.work.internal.task.JDialogTaskManager$TaskRunnable.run(JDialogTaskManager.java:352) [!/:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
If you attempt a Directed network analysis on a STRING network, you get an ugly error message (backtrace below). We should either disable the checkbox in these cases or pop up a friendlier message.
Also consider how this would work in automation use cases...
Attached is an example network that throws error when Direct option is checked (with zip extension to allow upload): sessionNov19.zip
See original thread here: https://groups.google.com/g/cytoscape-helpdesk/c/LA6s1S7fPg4/m/OUxUJbPdAAAJ