Current page Settings

Clinical Viewer GUI

Settings

The Settings window is opened from File > Settings.... It contains processing pipelines, report settings, and other global options. This page focuses on the default preprocessing action used before quantification or map creation.

Where to open Settings

Open the File menu in the Clinical Viewer and choose Settings.... The shortcut is Ctrl+S. A spectroscopy dataset must be loaded first, because some preprocessing defaults depend on the spectral axis of the current dataset.

The most important setting for routine preprocessing is the Default-preprocessing action in the Processing Pipelines tab. This action is designed to be immediately usable for common MRS(I) datasets without manually choosing a flat frequency range.

Settings entry point

File menu

The Settings item is located near the bottom of the File menu, after the unload commands and before online File menu help.

File menu with the Settings item highlighted

Processing Pipelines tab

In the Processing Pipelines tab, select Default-preprocessing under Pre-processing Actions. The lower table can attach this preprocessing action to a named processing pipeline together with optional series filters, quantification actions, and results actions.

Settings window showing Default-preprocessing in Pre-processing Actions

Processing pipeline components

A processing pipeline can combine a series filter, a preprocessing action, a quantification action, and a results action. The current page documents the default preprocessing action first. The other component types are marked here as placeholders and will be extended in future documentation.

Series Filters

Series filters are intended to select which loaded or mounted spectroscopy series a processing pipeline should apply to. In automatic batch processing, spectrIm-QMRS iteratively opens a selected directory and its subdirectories. If an MRS(I) series matches the selected filter criteria, the complete pipeline is run for that series.

Settings window with Series Filters area highlighted

Pre-processing Actions

Pre-processing actions define the ordered spectral operations applied before quantification. The default action currently contains HLSVDPro water removal, frequency alignment, and adaptive frequency-domain offset removal.

Settings window with Pre-processing Actions area highlighted

Quantification Actions

Quantification actions define how spectra are quantified after preprocessing. A new action can use the default TDFDFit model for the loaded data, or the user can select another TDFDFit model explicitly.

Settings window with Quantification Actions area highlighted

Results Actions

Results actions will define what happens after quantification, such as saving results or generating derived output. This placeholder will later describe available result handlers and how they are attached to a processing pipeline.

Settings window with Results Actions area highlighted

Series Filter Editor

Press Add New in the Series Filters column to open the Series Filter Editor. When a spectroscopy dataset is loaded, the editor is pre-filled with the current series description, TE, TR, field strength, nucleus, bandwidth, manufacturer, and scanner model. Each checkbox enables one criterion. Disabled fields are ignored by the filter, so a filter can be broad or very specific depending on the batch workflow.

Series Filter Editor popup

Name

The display name of the filter. This name is used in the Processing Pipelines table when assigning the filter to a pipeline.

Series Description

Filters on the DICOM Series Description text. Exact Match requires the full text to match; Contains accepts any series description that includes the entered text.

TE (ms)

Filters by echo time in milliseconds. The tolerance defines how far the DICOM TE value may deviate from the entered value.

TR (ms)

Filters by repetition time in milliseconds. The tolerance is useful when scanner-exported values differ slightly because of rounding or protocol variants.

B0 (T)

Filters by main magnetic field strength in Tesla, for example 3T or 7T acquisitions. The tolerance controls the accepted deviation around the entered value.

Nucleus

Filters by spectroscopy nucleus, such as 1H. In the current editor this criterion is shown as fixed to proton spectroscopy.

Bandwidth (Hz)

Filters by spectral bandwidth in Hertz. The tolerance allows matching protocols that have nearly identical bandwidth but slightly different stored numeric values.

Manufacturer

Filters by scanner manufacturer stored in the DICOM header, for example Siemens, Philips, or GE.

Model Name

Filters by scanner model name. This can separate otherwise similar series acquired on different scanner models.

Quantification Action

Press Add New in the Quantification Actions column to open the Quantification method window. For the current 64-bit workflow, TDFDFit is the active quantification method. spectrIm-QMRS preselects the default TDFDFit model that matches the currently loaded dataset, and displays both the model filename and the model directory.

Quantification method window with TDFDFit model selection

QUEST

Deprecated jMRUI QUEST quantification option shown in the dialog. It is disabled in the current 64-bit workflow, will not be restored, and is planned for removal in the next major spectrIm-QMRS release.

TDFDFit

Selects TDFDFit quantification for the action. This is the standard route for applying a predefined TDFDFit model to the preprocessed spectra.

TDFDFit model name

Shows the selected model file, for example a model matching the current acquisition protocol, TE, bandwidth, and vector size.

TDFDFit model path

Shows the directory where the selected model is stored. This helps verify that the pipeline will use the intended model collection.

Select TDFDFITModel ...

Opens a model selector so the user can replace the default model with another TDFDFit model before saving the quantification action.

Apply

Saves the selected quantification method and model so the action can be assigned to a processing pipeline.

Complete Processing Action

A complete processing action is assembled from up to four parts: a Series Filter, a Pre-processing Action, a Quantification Action, and a Results Action. The pipeline row defines which parts belong together and gives the complete action a name that can later be selected in the ClinicalViewer.

Assemble the pipeline

In this example, the processing action is named Processing-1.5T-TE135-PRESS-data. It contains Default-preprocessing and the selected TDFDFit quantification action. No Series Filter or Results Action is assigned in this example, so only preprocessing and quantification are part of the action.

Settings window with a complete processing action composed from preprocessing and quantification actions

Run from ClinicalViewer

After applying the Settings changes, the named processing action appears in the ClinicalViewer Processing Action selector. Select the action and press Process Data to run the configured pipeline on the currently loaded and selected spectra. The button is enabled only when the selected action is compatible with the loaded spectroscopy dataset.

ClinicalViewer showing the Processing Action selector and Process Data button

Dataset compatibility check

Whenever a spectroscopy dataset is loaded, or another Processing Action is selected, ClinicalViewer re-evaluates the action against the current spectrum. The Series Filter must match the loaded data, and TDFDFit quantification must match the relevant acquisition parameters, including TE, number of acquisition points, bandwidth, B0/resonance frequency, and ppm reference. If the check fails, Process Data is disabled and its tooltip explains the mismatch.

Quantification after preprocessing

During a complete processing action, the default preprocessing steps run first: HLSVDPro water removal, frequency alignment, and adaptive frequency-domain offset correction. The workflow then continues with TDFDFit quantification of the selected voxels, with progress shown for writing the input volume, fitting, and importing the fitted result files.

ClinicalViewer during TDFDFit quantification after preprocessing

Compare with opposite side

After processing has finished, the user can select voxels close to the lesion and press Ctrl + SPACE. The ClinicalViewer then shows the selected lesion-side spectra together with the mirrored opposite-side spectra, making it easier to compare abnormal tissue with a normal reference area. In this example, the tumor infiltration region shows elevated Cho/Cr and Cho/NAA ratios and lactate, consistent with increased metabolism and possible onset of necrosis.

ClinicalViewer comparing tumor infiltration spectra with mirrored opposite-side spectra, showing elevated Cho/Cr, Cho/NAA, and lactate after processing

Default preprocessing editor

Press Edit with Default-preprocessing selected to inspect the ordered preprocessing action. The default order is intentionally conservative: first remove the dominant residual water peak with HLSVDPro, then align spectra by frequency shift correction, then remove a constant amplitude offset in the frequency domain.

Pre-processing Action Editor with HLSVDPro, Frequency Shift, and FD offset removal enabled

1. HLSVDPro water removal

HLSVDPro removes the residual water component. The standard v3 setup uses HLSVDPro in parallel mode, so selected spectra are processed in batches instead of relying on the older serial-only route.

2. Frequency shift correction

Frequency shift correction is used as frequency alignment. It detects reference peaks such as Cho and NAA and estimates a global and local shift for the selected spectra.

3. FD offset removal

Frequency-domain offset removal estimates the average signal in a flat part of the spectrum and subtracts this value from the spectrum. This reduces a constant absorption and dispersion offset before quantification.

Adaptive ppm range

The FD offset range is adapted from the loaded spectrum. Since the ppm axis runs from high values on the left to low values on the right, spectrIm-QMRS uses the rightmost five percent of the available ppm range for the default action.

Running the default preprocessing

Start preprocessing

Select the processing action that contains Default-preprocessing, then press Just Pre-Process. This runs only the preprocessing part of the pipeline.

Clinical Viewer with Just Pre-Process button highlighted

During HLSVDPro

The output area reports the active preprocessing action and the current step. HLSVDPro water removal is performed first, followed by frequency alignment and FD offset removal.

Clinical Viewer while HLSVDPro filtering is running

After preprocessing

After the three steps finish, the strong water peak is removed and the remaining metabolite region can be inspected in the spectrum display. The output area lists the completed steps.

Clinical Viewer after default preprocessing with water peak removed

What the output means

A typical run reports water peak removal, frequency shift correction with detected reference peaks and mean shift, and amplitude offset removal in the frequency domain. The final message confirms that preprocessing has finished.

Why the default is adaptive

The flat spectral region used for FD offset removal is not the same numerical ppm interval for every acquisition. A 7T dataset and a 3T dataset may expose different ppm limits, even though both should use a quiet region near the right side of the displayed ppm axis.

spectrIm-QMRS therefore reads the minimum and maximum ppm values from the loaded spectrum and updates the default preprocessing action automatically. When the Settings window is opened after a dataset is loaded, the editor shows the adapted values. When the action is executed, the values are refreshed again before the batch preprocessing commands are queued.

Related pages

File menu

The File menu page documents where Settings is opened from and lists the neighbouring import/export commands.

Open File menu page

HLSVDPro configuration

HLSVDPro is the first default preprocessing step and is also documented as a water-removal and denoising component.

Open HLSVDPro configuration page

Interactive processing workflow

Continue with the broader workflow for preprocessing, quantification, and creating spectroscopic maps.

Open workflow page

Spectrum display overview

Use the spectrum display overview to interpret the before and after spectra shown during preprocessing.

Open spectrum display overview