Introduction to VivoScript – Part I: Looping through data in a project

Introduction to VivoScript – Part I: Looping through data in a project

In this post, I would like to show an example of how to iterate through all the patients of a project on an iPACS system using a VivoScript. This can for instance be useful for the automation of pre-processing data, or two produce quality control images for an entire project. The looping technique shown here will be used in subsequent tutorials, so this is the best starting point to get familiar with VivoScript.

Continue reading

Opening external tools from VivoQuant via VivoScript

Opening external tools from VivoQuant via VivoScript

Sometimes it is useful to be able to start external programs from within VivoQuant. VivoScript provides a function for this:

VQ.startTool("ProgramName");
VQ.startTool("ProgramName", baseDir, parameterList);

with ProgramName being a pre-configured name of the tool to start (see below on how to add your own tools), while the optional baseDir defines the current working directory the tool is started in. Finally, the parameterList is an array of optional parameters passed into the tool from the command line. Depending on the tool you are using such parameters could be used to for instance pass in files  to the new tool.

Continue reading