Yarra Archive Search (YAS)


When collecting raw-data files from a large number of patients (e.g., through Yarra offline reconstructions or using the Yarra RDS client), it can quickly become difficult to find the data file from a certain patient or exam (as needed for performing retrospective studies). This problem is solved by Yarra Archive Search (YAS), which can be used as add-on for a YarraServer installation or completely independent from Yarra.

YAS consists of an indexing service, which typically runs every night as cron job on a Linux server, and a web-based front-end, which allows users to search for raw-data files by patient name, scan protocol, exam date etc. and provides the exact file location and additional information about the scan. Although typically used in an intranet environment, the front-end is password protected to ensure that only authorized staff has access to the scan information.


Installation and Configuration

YAS requires a Linux based server running either Ubuntu 12.04 LTS or 14.04 LTS. Note: If running Ubuntu 12.04 LTS, it is necessary to first upgrade the GCC compiler, as described in the installation instructions for YarraServer.

  • Download the YAS package and unzip it in a folder on the Linux server. This can be a subfolder of your  home directory on the server, e.g. /home/[username]/YAS.
  • Edit the configuration file YAS.ini. It is necessary to define the port number, password for the user interface, and to list all folders that should be scanned for Siemens raw-data files (aka TWIX files). By default the configuration file reads:
  • Run the indexer once by calling ./YASIndexer from the YAS installation folder. Depending on the amount of raw-data files, the search procedure might take a few minutes.
  • Setup the YASIndexer as daily Cron job. It’s recommended to run it during the night when it is unlikely that people will use the frontend. Type in the following command:
    and insert the following line:
    where [username] needs to be replaced with the actual username (or other installation path). This will launch the indexer every night at 5am and write the output into the file cron.log. On the first execution of the crontab command, it may ask you for the preferred editor. Nano should be selected here.
  • Setup the YASWebGUI as daemon service by editing the file yaswebgui.conf (e.g. with “nano yaswebgui.conf”) and writing the installation path into the line “env DIR=…”:
  • Copy the file into /etc/init and start the YASWebGUI with the command:

Yarra Archive Search should now be ready to use.


If configured as described above, the YASIndexer will automatically update the database of raw-data files every night. To search for scan, open a web browser and type in the URL http://xxx.xxx.xxx.xxx:[port], where port is the port number defined in the configuration file (e.g. The port number can be omitted when using port 80, which however requires sudo rights on the server. The search page becomes visible after the password has been entered.

Scans can be searched by patient name, patient ID (MRN, accession number (ACC), protocol name, or exam date. If multiple search entries are entered, scans are displayed that match to both search terms (AND). When clicking on an entry in the result table, details will be displayed in the Information box below the table. If the file comes from a Yarra offline reconstruction task, additional information about the task will shown. The exact file location is shown as a link and can be copied right into the file selection box of the Yarra Stand-Alone Client (SAC), which can be handy for submitting retrospective reconstruction tasks.

To clear and rebuilt the database, call ./YASIndexer –clear and rerun the YASIndexer afterwards.

Download and Source Code

License Information

The Yarra framework is provided free of charge for use in research applications. It must not be used for diagnostic applications. The author takes no responsibility of any kind for the accuracy or integrity of the created data sets. No data created using the framework should be used to make diagnostic decisions. The source code is provided under the GNU General Public License (GPL).

The Yarra framework, including all of its software components, comes without any warranties. Operation of the software is solely on the user’s own risk. The author takes no responsibility for damage or misfunction of any kind caused by the software, including permanent damages to MR systems, temporary unavailability of MR systems, and loss or corruption of research or patient data. This applies to all software components included in the Yarra software package.

Binary Package

Yarra Archive Search Version 0.13

Source Code Access

YAS Page on Bitbucket