Could anyone help me to figure out what is the VizMap automation command to apply my own VisualStyle (*.xml) to the specific network in the multiple network collections?
I am developing a Cytoscape app to automate some pathway analysis methods that will highlight the nodes in different colours.
1. Create method to execute the command:
===================
public void executeCommand(String namespace, String command, Map<String, Object> args, TaskObserver observer) {
if (commandTaskFactory == null)
commandTaskFactory = getService(CommandExecutorTaskFactory.class);
if (taskManager == null)
taskManager = getService(SynchronousTaskManager.class);
TaskIterator ti = commandTaskFactory.createTaskIterator(namespace, command, args, observer);
taskManager.execute(ti);
}
===================
2. Then, call the method
===================
Map<String, Object>visualStyle_args = new HashMap<>();
visualStyle_args.put("styles","myownstyle");
executeCommand("vizmap","apply",visualStyle_args,null);
Thank you so much for any help in advance!
Waan.