APP Sequences
It is possible to run multiple APPs in sequence on an image or multiple images. Instead of manually adding each APP whenever a batch analysis is performed, APP Sequences make it possible to save a predefined set of APPs and execute the sequence directly from the APP selection menu in the ribbon.
APP Sequence Setup
When multiple APPs are ready and correctly configured for sequence execution, follow these steps:
- In APP Author, click on the drop-down menu next to Save and then click Save APP as.

- In the new window, click on Explorer. This will open the APP folder in Windows Explorer.

- Create a new folder, and place the APPs ready for sequencing.
The sequence will be executed based on the names of the folders in alphabetical and numerical order.

- Rename the folder such that it either ends with _seq or _sequence.

The APP sequence is now ready to be used in Visiopharm.
Edit APP Sequence
To load the sequence of APPs, click on select APP and select the APP sequence.

When the sequence has been selected, a drop-down menu appears in the APP Author, where the individual APPs can be selected and modified.

Input and Output Matching
It is vital that the output of one APP matches the input of the following APP in a sequence.
Example of Input and Output Matching
In this example, the sequence consists of three APPs. The first APP has a Background and Tissue as Image Classes For Training. When the APP has been executed the post processing changes the label of Tissue to the default ROI. Afterwards, the labels of both Tissue and Background is changed to clear, as can be seen in this image:

The next APP in the sequence requires that no Background and Tissue labels exists. Since the first APP clears all labels, it can then run without conflicts.
This requirement is only for this example. In other sequences, different requirements applies.

The third and final APP in the sequence requires a ROI 002 to exist. Since the previous APP creates such a ROI, it can now be executed without conflicts.

Execute APP Sequence
When an APP sequence is loaded, it can then be executed by pressing Run in the ribbon.

Individual APPs from the sequence can be run seperately from the APP Author.
Batch Analysis
All information from this article also applies when performing Batch Analysis. For more information on Batch Analysis, click here