<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.besa.de/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.besa.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dominik</id>
		<title>BESA® Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.besa.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dominik"/>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Special:Contributions/Dominik"/>
		<updated>2026-05-01T03:28:24Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.10</generator>

	<entry>
		<id>https://wiki.besa.de/index.php?title=BESA_Research_Batch_Processing</id>
		<title>BESA Research Batch Processing</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=BESA_Research_Batch_Processing"/>
				<updated>2024-03-11T13:54:31Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==  Batch Processing and Combining Conditions == --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Combine Conditions and Batch Module: Introduction ==&lt;br /&gt;
&lt;br /&gt;
Functions of this module are started by selecting the menu operations &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ERP / Combine Conditions...'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Process / Batch Scripts...'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* '''Combine Condition Scripts''' provides various operations on BESA averages.&lt;br /&gt;
* '''Batch Scripts''' provides batch operations on all data files.&lt;br /&gt;
* Note that a batch script can also be performed on the current file by selecting &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Process / Run Batch...'''&amp;lt;/span&amp;gt;&amp;quot; or by typing the shortcut key &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''R'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== File List Tab ==&lt;br /&gt;
&lt;br /&gt;
Define a list of files on which the operations will be performed. The tab is the same for Combine Conditions Scripts and for Batch Scripts. Combine Conditions Scripts only allows you to open BESA average files (e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.fsg&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.avr&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;, but also &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.mul'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.raw'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.swf'''&amp;lt;/span&amp;gt;, and &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.foc'''&amp;lt;/span&amp;gt; if the files have a defined pre-stimulus interval), whereas Batch Scripts allows you to open any data file whose format is known to BESA Research.&lt;br /&gt;
&lt;br /&gt;
When the Combine-Conditions or the Batch module is started, all currently opened (Combine-Conditions: averages only) files are displayed in the list.&lt;br /&gt;
&lt;br /&gt;
To the right of each file name, the number of electrodes, total number of channels, and the sampling rate used in the file are displayed. In the Combine-Conditions module, the number of Epochs (segments) and the number of differently-named conditions are also shown.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Add files to the list'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add File '''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Drag one or more files from Windows Explorer onto the window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Remove files from the list'''&lt;br /&gt;
&lt;br /&gt;
* Right click on the file name and confirm the delete operation in the resulting dialog.&lt;br /&gt;
* Mark one or more file names in the list (e.g. hold down the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Ctrl'''&amp;lt;/span&amp;gt; key to mark multiple files). Right click to obtain the context menu and select &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Delete'''&amp;lt;/span&amp;gt;&amp;quot;, or just press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Del '''&amp;lt;/span&amp;gt;key.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Reorder files within the current file list'''&lt;br /&gt;
&lt;br /&gt;
* Right click on the file name and select &amp;quot;'''''Move Up'''''&amp;quot; or &amp;quot;'''''Move Down'''''&amp;quot;.&lt;br /&gt;
* Mark one or more file names in the list (e.g. hold down the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctr'''&amp;lt;/span&amp;gt;l key to mark multiple files). Right click to obtain the context menu and select &amp;quot;'''''Move Up'''''&amp;quot; or &amp;quot;'''''Move Down'''''&amp;quot;, or hold down the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Ctrl'''&amp;lt;/span&amp;gt; key '''and '''press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Up'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Down arrows'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Sort the current file list alphabetically'''&lt;br /&gt;
&lt;br /&gt;
* Click on the File bar above the list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Save the current file list'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save File List'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load a file list'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load File List'''&amp;lt;/span&amp;gt; button, or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Previous'''&amp;lt;/span&amp;gt; button to load the most recently used file list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Which conditions are read from a source file? (Combine-Conditions module only)'''&lt;br /&gt;
&lt;br /&gt;
* Normally, all conditions are read from a source file. To exclude one or more segments from operations in the Combine Conditions module, mark the segments as artifacts in the main program display. It is sufficient for the beginning or the end of an artifact interval to be within the segment for the segment to be excluded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''File list from Combine Conditions:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (1).png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Don't try to open here... (Batch only)'''&lt;br /&gt;
&lt;br /&gt;
By default, this checkbox is unchecked.&lt;br /&gt;
&lt;br /&gt;
In the checked state, BESA Research doesn't check if it can open the file. Use this function '''only''' if the file is ASCII and you want to use the '''ImportASCII '''batch command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''File List from Batch Scripts''':&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (2).png]]&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Batch Processing &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
=== Batch Processing Scripts ===&lt;br /&gt;
&lt;br /&gt;
With Batch Scripts, you can define a set of operations (e.g. Artifact Scan, Average, etc.) and apply these to several data files.&lt;br /&gt;
&lt;br /&gt;
These operations include&lt;br /&gt;
&lt;br /&gt;
* Load Paradigm&lt;br /&gt;
* Artifact Scan&lt;br /&gt;
* Average&lt;br /&gt;
* Export (and Merge)&lt;br /&gt;
* File Open (switch to another data file)&lt;br /&gt;
* Set filters&lt;br /&gt;
* Specify a montage (used, for example, for export to current montage)&lt;br /&gt;
* Run automatic eye and EKG artifact correction&lt;br /&gt;
* Define artifact topographies&lt;br /&gt;
* Turn artifact correction and view on and off&lt;br /&gt;
* Read and write events&lt;br /&gt;
* Edit default block epoch (for export around triggers)&lt;br /&gt;
* Edit triggers (for export around triggers)&lt;br /&gt;
* Mark a block for export, or send the block to Source Analysis or Top View&lt;br /&gt;
* Convert patterns to triggers&lt;br /&gt;
* Attach auxiliary files (e.g. elp, sfp) to the data file&lt;br /&gt;
* Send to MATLAB&lt;br /&gt;
* Specify display configurations for the BESA Research Main, SA, and Top View windows&lt;br /&gt;
* and more - see the full list of [[#Batch Commands|Batch Commands]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An additional set of commands are available for operations in the '''Source Analysis Module''', allowing to load, create and fit dipole models, and save the results.&lt;br /&gt;
&lt;br /&gt;
A further set of commands apply to '''Time-Frequency Analysis''', allowing to start TFC, change the display, save results, and run the beamformer or DICS analyses on a selected time-frequency range.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch commands1.png]]&lt;br /&gt;
&lt;br /&gt;
These operations will be extended in future program releases.&lt;br /&gt;
&lt;br /&gt;
The module includes two tabbed windows:&lt;br /&gt;
&lt;br /&gt;
* '''File List''': Define a list of files on which the operations will be performed.&lt;br /&gt;
* '''Batch''': Define or load '''batch commands'''. Run the batch.&lt;br /&gt;
&lt;br /&gt;
=== Batch Tab ===&lt;br /&gt;
&lt;br /&gt;
Load or define batch commands, and then apply them to the files in the File List.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (4).png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Add Command'''&lt;br /&gt;
&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Command'''&amp;lt;/span&amp;gt; to add a new command to the batch. The following dialog is opened, showing the available commands:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch commands1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Select the desired command and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; or double-click on the command. A dialog box is opened, allowing to specify individual command parameters.&lt;br /&gt;
* If you click on &amp;quot;Apply at beginning of batch&amp;quot; or &amp;quot;Apply at end of batch&amp;quot;, the command will only be run at the beginning or the end of a batch. You can use this, for example, at the end of a batch to start a MATLAB script to perform statistics on the results of the batch.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load and Save Batch'''&lt;br /&gt;
&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Batch'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; to load a previously defined batch or &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Batch'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; to save the current batch to a file (&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.bbat&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;).&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load Previous'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Press &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Previous'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; to load the most recently used batch file. Whenever a batch is run, the current set of commands is written to the file &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Previous.bbat in'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; the &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Scripts/Batch'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; subdirectory. This file is loaded when you press &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Previous'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Clear All'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Clears all commands from the window.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''View Log File'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Each time a batch is run, BESA Research adds information about the batch to a log file, with headings showing the date and time the batch was started. The file is opened automatically in Internet Explorer if errors occurred during processing. Otherwise you may open the file by &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;pressing the &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''View Log File'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; button here or in the dialog that is displayed at the end of batch processing. &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;The log file is saved in xml format, and a JavaScript is used to format the display in web browsers. JavaScript should be enabled in the browser to obtain an optimal display of the results. If JavaScript is enabled, the log file is displayed as a list of headings for each batch. Click on a heading to display the results of the corresponding batch.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;To open the log file in the Notepad, hold the&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Shift '''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;key down when pressing the &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''View Log File'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; button.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batch Command List'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Double-click on a command to edit it. See &amp;lt;/span&amp;gt;[[#Batch Commands|Batch Commands]]&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; for descriptions of the dialogs that are opened to edit each command.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Right click on a command to open a context menu allowing more options.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (5).png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;'''Delete'''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;, &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;'''Move Up'''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;, &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;'''and Move Down'''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; can also be applied to multiple selections.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;If you have made a multiple selection, the &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Del '''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;button will delete all the marked commands. &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl '''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;plus &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Up'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; or &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Down'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''cursor keys'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; will move the marked commands up or down.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;'''Toggle Comment'''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; will add or remove a semicolon (;) in front of the command, to deactivate or reactivate the command.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;'''Toggle Command Only at Start/End'''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; will add or remove the text &amp;quot;Start_&amp;quot; or &amp;quot;End_&amp;quot; in front of the command. With these prefixes, the command will only be performed when the first file (&amp;quot;Start_&amp;quot;) or the last file (&amp;quot;End_&amp;quot;) in the file list is being processed.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Single Step Mode'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Check this item to step through the batch, one command at a time. A dialog is opened after each command, allowing to run the next command, continue the batch without single steps, or stop running the batch. See the&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;'' “Pause''&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;” command for further details.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;During a batch, press and hold down the &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Pause'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; or &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Delete'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; key to interrupt the batch and enter Single Step Mode. Press and hold down the &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Esc'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt; key to cancel the batch.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Changes in batch written to database'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Checked by default. If this item is unchecked, file display settings, such as Montage setting and Artifact correction display, are not written to the database. When the file is next opened in BESA Research, the settings made in the batch are not retained.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Leave files in the file list open after running the batch'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;If this item is checked, files in the file list will remain open after the batch. This is useful, for instance, if you want to open a set of files, specifying the same montage and/or filter settings for each file.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to start running the batch. Each command is then applied in succession to each file in the File List.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note that, while a batch is running press and hold down the&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Pause'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt; or &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Delete'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt; key to interrupt the batch and enter Single Step Mode. Press and hold down the &amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Esc'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt; key to cancel the batch.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== The log file ===&lt;br /&gt;
&lt;br /&gt;
A protocol of each batch is written to the log file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Batch.txt.'''&amp;lt;/span&amp;gt; (e.g. C:\Users\Public\Documents\BESA\Research_7_1\Scripts\Log\Batch.txt)&lt;br /&gt;
&lt;br /&gt;
When you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''View Log File'''&amp;lt;/span&amp;gt; button, the file is opened in the Batch Log dialog. The Batch Log dialog will be opened automatically if there was an error during batch processing, unless you have used the ''BatchError'' batch command to suppress this behaviour.&lt;br /&gt;
&lt;br /&gt;
'''Backup of the log file'''&lt;br /&gt;
&lt;br /&gt;
When the log file is written, a backup of the previous version is written to &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Batch.txt.bak'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If the size of the log file exceeds 200 KB, it is renamed to &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Batch.txt_date_time'''&amp;lt;/span&amp;gt; (e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Batch.txt_2004-10-08_10-53-32'''&amp;lt;/span&amp;gt;), and a new version of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Batch.txt'''&amp;lt;/span&amp;gt; is created.&lt;br /&gt;
&lt;br /&gt;
=== Placeholders ===&lt;br /&gt;
&lt;br /&gt;
A powerful feature of the batch commands is the ability to define file names and specify standard paths using placeholders. These are text strings enclosed by percentage (%) signs. They can be used in all batch commands where file names are specified.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Basename'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Placeholder !! Description !! Example&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot; width=&amp;quot;10%&amp;quot;|'''%basename%'''&lt;br /&gt;
|width=&amp;quot;40%&amp;quot;|replaced by the basename of the currently opened file.&lt;br /&gt;
|width=&amp;quot;40%&amp;quot;|If the data file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;f-spike.fsg&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%basename%-export.fsg&amp;lt;/span&amp;gt;&amp;quot; will be interpreted as &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;f-spike-export.fsg&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|'''%basename-n%'''&lt;br /&gt;
|replaced by the basename of the currently opened file, but removing the last &amp;quot;n&amp;quot; characters from the name.&lt;br /&gt;
|If the data file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;dongle-BB.fsg&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%basename-3%&amp;lt;/span&amp;gt;&amp;quot; will be replaced by &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;dongle&amp;lt;/span&amp;gt;&amp;quot;, because the last 3 characters of the basename have been removed.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|'''%-nbasename%'''&lt;br /&gt;
|replaced by the basename of the currently opened file, but removing the first &amp;quot;n&amp;quot; characters from the name.&lt;br /&gt;
|If the data file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;BB-dongle.fsg&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%-3basename%&amp;lt;/span&amp;gt;&amp;quot; will be replaced by &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;dongle&amp;lt;/span&amp;gt;&amp;quot;, because the first 3 characters of the basename have been removed.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%orgbasename%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|replace by basename of the current file in the file list (it has the same meaning as %basename% if no MAINFileOpen batch command was used in command list)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%base%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|replace by basename of the current file without the path&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%orgbase%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|replace by basename of the current file in the file list without the path&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%ext%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|replace by extension of the current file&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%orgext%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|replace by extension of the current file in the file list&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%basefolder%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|replace by folder of the current file&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%orgbasefolder%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|replace by folder of the current file in the file list&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%t%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|Log batch command only: time since start of batch on current file&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%T%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|Log batch command only: current date and time&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%label%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
|Replace label of the most recent marked block by the block label, not including no. of averages&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|&amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;'''%LABEL%'''&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
| Replace label of the most recent marked block by the block label, including no. of averages&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|'''%scripts%'''&lt;br /&gt;
|replaced by the path to the Scripts folder.&lt;br /&gt;
|&amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%scripts%Batch&amp;lt;/span&amp;gt;&amp;quot; is where batches are saved by default; &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%scripts%MATLAB&amp;lt;/span&amp;gt;&amp;quot; is the location of the standard MATLAB scripts used by BESA Research.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|'''%montages%'''&lt;br /&gt;
|replaced by the path to the Montages folder.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:center;&amp;quot;|'''%examples%'''&lt;br /&gt;
|replaced by the path to the Examples folder.&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
* '''%basename%''' -- replaced by the basename of the data file in the File List. For example, if the data file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;f-spike.fsg&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%basename%-export.fsg&amp;lt;/span&amp;gt;&amp;quot; will be interpreted as &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;f-spike-export.fsg&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* '''%basename-n%''' -- replaced by the basename of the data file in the File List, but removing the last &amp;quot;n&amp;quot; characters from the name. For example, if the data file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;dongle-BB.fsg&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%basename-3%&amp;lt;/span&amp;gt;&amp;quot; will be replaced by &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;dongle&amp;lt;/span&amp;gt;&amp;quot;, because the last 3 characters of the basename have been removed.&lt;br /&gt;
&lt;br /&gt;
* '''%-nbasename%''' -- replaced by the basename of the data file in the File List, but removing the first &amp;quot;n&amp;quot; characters from the name. For example, if the data file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;BB-dongle.fsg&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%-3basename%&amp;lt;/span&amp;gt;&amp;quot; will be replaced by &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;dongle&amp;lt;/span&amp;gt;&amp;quot;, because the first 3 characters of the basename have been removed.&lt;br /&gt;
&lt;br /&gt;
* '''%scripts%''' -- replaced by the path to the Scripts folder (e,g, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%scripts%Batch&amp;lt;/span&amp;gt;&amp;quot; is where batches are saved by default; &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;%scripts%MATLAB&amp;lt;/span&amp;gt;&amp;quot; is the location of the standard Matlab scripts used by BESA Research).&lt;br /&gt;
&lt;br /&gt;
* '''%montages%''' -- replaced by the path to the Montages folder.&lt;br /&gt;
&lt;br /&gt;
* '''%examples%''' -- replaced by the path to the Examples folder.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Placeholders for folders'''&lt;br /&gt;
&lt;br /&gt;
The following placeholders are the same as those used in the [Folders] section of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names are different for the system and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the Windows system and the system language:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 10 (English)'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt; '''%localapp%''' = &amp;quot;&amp;quot;C:\Users[user]\AppData\Local\BESA\Research_7_1&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;&amp;quot;Desktop[user]\AppData\Local\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt; '''%publicprog%''' = &amp;quot;Documents\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%privateprog%''' = &amp;quot;&amp;quot;C:\Users\[user]\Documents\BESA\Research_7_1&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;Desktop\[User]\Documents\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;C:\Program Files\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%besaroot%''' is the same as''' %progdir%'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Windows 7 (English):'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%localapp%''' = &amp;quot;C:\Users\[user]\AppData\Local\BESA\Research_7_1&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;Desktop\[user]\AppData\Local\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%publicprog%''' = &amp;quot;C:\Users\Public\Public Documents\BESA\Research_7_1&amp;quot;. This folder is directly accessible from the Windows Explorer under &amp;quot;Libraries\Documents\Public Documents\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%privateprog%''' = &amp;quot;C:\Users\[user]\Documents\BESA\Research_7_1&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;&amp;quot;Libraries\Documents\My Documents\Research_7_1&amp;quot; or &amp;quot;Desktop\[User]\My Documents\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;C:\Program Files\BESA\Research_7_1&amp;quot;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''%besaroot%''' is the same as''' %progdir% &amp;amp;nbsp;'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Batch Commands ===&lt;br /&gt;
&lt;br /&gt;
Batch commands are selected when the &amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Command'''&amp;lt;/span&amp;gt;&amp;quot; button is pressed in the &amp;quot;Batch&amp;quot; Tab. The commands are subdivided into five categories: General commands, commands for the Main module, for the Source Analysis module, imaging commands in the Source Analysis module, and commands for Time-Frequency Analysis. The commands have prefixes,''' GEN''', '''MAIN''',''' SA''', '''SAIMAGE''', and''' TFC'''), which identify the category. For compatibility with older program versions, old batches without the prefixes are accepted.&lt;br /&gt;
&lt;br /&gt;
Detailed descriptions of each batch command are available in the electronic help chapter “''Batch Processing and Combining Conditions / Batch Processing / Batch Commands”.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''General commands''' - prefixed with &amp;quot;'''GEN'''&amp;quot; (can be used anywhere):&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;8&amp;quot; style &lt;br /&gt;
| style=&amp;quot;width: 180pt&amp;quot;| GENBatchError || used to change program behavior when errors occur&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;GENBatchWindowPosition&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || set the position of the batch window relative to the main window&lt;br /&gt;
|-&lt;br /&gt;
| GENComment || comment in the batch script: no batch functionality&lt;br /&gt;
|-&lt;br /&gt;
| GENMATLABcommand || send a command string to MATLAB&lt;br /&gt;
|-&lt;br /&gt;
| GENMATLABwaitForVariable || tells BESA to wait until Matlab has created a variable with the specified name.&lt;br /&gt;
|-&lt;br /&gt;
| GENPause || pause batch operations, allowing step-by-step operations&lt;br /&gt;
|-&lt;br /&gt;
| GENFor/GENEndFor|| a programming language-like FOR loop&lt;br /&gt;
|-&lt;br /&gt;
| GENRunProcess || runs a command-line process, e.g. an external program to perform part of the data analysis in the batch&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;GENsaveBitmap&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || save a screenshot of the Source Analysis or the 3D window&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;SetVariable&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || the value of the variable is inserted into subsequent batch commands where the text contains the name flanked by % signs&lt;br /&gt;
|-&lt;br /&gt;
| GENWindowPosition || set window size and positions to a selection of standard settings, e.g. for bitmap export&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Commands for the Main Module''' - prefixed with &amp;quot;'''MAIN'''&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;8&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 180pt&amp;quot;| MAINArtifactCorrect || run automatic artifact correction&lt;br /&gt;
|-&lt;br /&gt;
| MAINArtifactMethod || specify the method for artifact correction&lt;br /&gt;
|-&lt;br /&gt;
| MAINArtifactOn || turn artifact correction an artifact view on or off&lt;br /&gt;
|-&lt;br /&gt;
| MAINArtifact Scan || run an artifact scan as from the Paradigm Dialog&lt;br /&gt;
|-&lt;br /&gt;
| MAINAuxiliaryFiles || associate auxiliary files (e.g. *.''ela'', *.''sfp'') with the data file&lt;br /&gt;
|-&lt;br /&gt;
| MAINAverage || average the data&lt;br /&gt;
|-&lt;br /&gt;
| MAINBaseline || specify the parameters for baseline correction&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINDefineArtifactTopography&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || define an artifact topography&lt;br /&gt;
|-&lt;br /&gt;
| MAINEditDefaultEpoch || edit the default block epoch&lt;br /&gt;
|-&lt;br /&gt;
| MAINEventRead || read events from an ASCII event file&lt;br /&gt;
|-&lt;br /&gt;
| MAINEventWrite || write events to an ASCII event file&lt;br /&gt;
|-&lt;br /&gt;
| MAINExport || export or append data in the selected target format&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINExportToBESAConnectivity&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || export data segments to BESA Connectivity&lt;br /&gt;
|-&lt;br /&gt;
| MAINFFT || calculates the FFT spectrum of the marked data interval&lt;br /&gt;
|-&lt;br /&gt;
| MAINFFTmean || starts an averaging procedure that calculates the mean spectral properties in pre-defined regions&lt;br /&gt;
|-&lt;br /&gt;
| MAINFFTsave || saves FFT data (generated using the ''FFT Average option'' in the ''Average ''command) to disk (*.''fma)''&lt;br /&gt;
|-&lt;br /&gt;
| MAINFileOpen || close the current file and open a new file to which the remaining batch commands will be applied&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINFileClose&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || close the currently open file in a batch, provided it is not the current file in the File List&lt;br /&gt;
|-&lt;br /&gt;
| MAINFilter || set filters&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINfMRIArtifact&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || turns on the fMRI artifact removal&lt;br /&gt;
|-&lt;br /&gt;
| MAINGoTo || jumps with the cursor to the specified time point&lt;br /&gt;
|-&lt;br /&gt;
| MAINICA || starts ICA decomposition of data on the current screen &lt;br /&gt;
|-&lt;br /&gt;
| MAINICAsave || saves selected ICA components as topographies in a file&lt;br /&gt;
|-&lt;br /&gt;
| MAINICAselect || opens component selection dialog for managing ICA components&lt;br /&gt;
|-&lt;br /&gt;
| MAINImportASCII || import an ASCII file into a ''&amp;lt;nowiki&amp;gt;*.fsg&amp;lt;/nowiki&amp;gt;'' file.&lt;br /&gt;
|-&lt;br /&gt;
| MAINMarkBlock || mark a data block (optionally send to Source Analysis)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINMarkChannels&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || mark one or more channels, as given by the list&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINMaxInInterval&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || within the current marked block, search for the largest absolute value on the specified channel&lt;br /&gt;
|- &lt;br /&gt;
| MAINMontage || change the montage (used by the Export command when saving to current montage)&lt;br /&gt;
|-&lt;br /&gt;
| MAINParadigm || load a paradigm file&lt;br /&gt;
|-&lt;br /&gt;
| MAINPatternToTrigger || convert a tag into a trigger&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINPolygraphicFilters&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || sets filters for polygraphic or added channels&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINScale&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || set amplitude and time scales&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINSearchAverageView&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || start search average view&lt;br /&gt;
|-&lt;br /&gt;
| MAINSendToMATLAB || send data to MATLAB&lt;br /&gt;
|-&lt;br /&gt;
| MAINSMTApply || load and apply Schmitt trigger settings file to the data set&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINSplineConstant&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || set the spline constant used in spherical spline maps and channel interpolation&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINTriggerRecode&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || the command recodes a specified trigger number to a new number&lt;br /&gt;
|-&lt;br /&gt;
| MAINTriggerSelect || edit the trigger list (cf. ''Edit / Trigger Values''...)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINTriggerTagDelete&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || delete one or more triggers or tags&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINViewAverageBuffer&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || turn on the Average Buffer View and place the specified buffer number to the left in the display&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINViewChannelType&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || select the channel type to display, and select channel types for mapping, export, etc&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;MAINViewSelected&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || turns selected view on or off&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''General commands for Source Analysis''' - prefixed with &amp;quot;'''SA'''&amp;quot; (but see also ''MarkBlock'', which is used to send a block of data to SA and open the SA window):&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;8&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 180pt&amp;quot;| SAAddSource || add a dipole or regional source to a model&lt;br /&gt;
|-&lt;br /&gt;
| SAChannelTypeForFit || switch between EEG, magnetometers or axial gradiometers, and planar gradiometers&lt;br /&gt;
|-&lt;br /&gt;
| SAConvertSource || convert a source from dipole to regional source, or from regional source to dipole&lt;br /&gt;
|-&lt;br /&gt;
| SAcorticalClara || run Cortical CLARA&lt;br /&gt;
|-&lt;br /&gt;
| SAcorticalLoreta || run Cortical LORETA&lt;br /&gt;
|-&lt;br /&gt;
| SADelete || delete current solution or all solutions or remove current fit interval or cursor&lt;br /&gt;
|-&lt;br /&gt;
| SADICS || start DICS computation (if DICS has been precomputed in the time-frequency image command)&lt;br /&gt;
|-&lt;br /&gt;
| SADisplayMRI || switch MRI display on/off and select small or large window&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.0 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;SAElectrodeConfiguration&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || equivalent to pressing the Org or Std button in the Channel box of the Source analysis window&lt;br /&gt;
|-&lt;br /&gt;
| SAExit || close Source Module&lt;br /&gt;
|-&lt;br /&gt;
| SAFit || start fit&lt;br /&gt;
|-&lt;br /&gt;
| SAFitConstraint || set fit constraints, e.g. Residual Variance, Energy, Maximum Distance, Image Weighting, and their weights.&lt;br /&gt;
|-&lt;br /&gt;
| SAFitInterval || set fit or baseline interval&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;SAHeadModel&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || set the head model&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;SALabelSource&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || set the label of the specified source number&lt;br /&gt;
|-&lt;br /&gt;
| SAMinimumNorm || run a minimum norm analysis&lt;br /&gt;
|-&lt;br /&gt;
| SANewSolution || open a new solution&lt;br /&gt;
|-&lt;br /&gt;
| SAOpenSolution || open a solution from a file&lt;br /&gt;
|-&lt;br /&gt;
| SAPCA || toggle PCA display of data or residual, and transfer a selected number of components to the source model&lt;br /&gt;
|-&lt;br /&gt;
| SARegularization || set the regularization values both for discrete and distributed source images&lt;br /&gt;
|-&lt;br /&gt;
| SASaveBitmap || save a screenshot of the Source Analysis or the 3D window&lt;br /&gt;
|-&lt;br /&gt;
| SASaveLeadfields || save the leadfields of the current source model&lt;br /&gt;
|-&lt;br /&gt;
| SASaveModelWaveforms || save model waveforms&lt;br /&gt;
|-&lt;br /&gt;
| SASaveResidualWaveforms || save residual waveforms&lt;br /&gt;
|-&lt;br /&gt;
| SASaveRVandGFPWaveforms || save residual variance and global field power waveforms&lt;br /&gt;
|-&lt;br /&gt;
| SASaveSolution || save the current solution&lt;br /&gt;
|-&lt;br /&gt;
| SASaveSourceMontage || save a source montage&lt;br /&gt;
|-&lt;br /&gt;
| SASaveSourceWaveforms || save source waveforms&lt;br /&gt;
|-&lt;br /&gt;
| SASendToMATLAB || send data, model, source waveforms, images, etc. to Matlab&lt;br /&gt;
|-&lt;br /&gt;
| SASetCursor || set the cursor&lt;br /&gt;
|-&lt;br /&gt;
| SASetDefaultSourceType || set the default source type (dipole or regional source)&lt;br /&gt;
|-&lt;br /&gt;
| SASetOrActivateSource || Turn specified source on or off, or enable/disable source for fitting&lt;br /&gt;
|-&lt;br /&gt;
| SASetOrientation || set orientation (of regional source)&lt;br /&gt;
|-&lt;br /&gt;
| SASwitchCondition || switch to a specified condition&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Commands for Distributed 3D Volume Images'''&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;8&amp;quot;&lt;br /&gt;
| style=&amp;quot;width: 180pt&amp;quot;| SAIMAGEBeamformer || switch between Single Source and Bilateral Beamformer image&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span title=&amp;quot;Requires BESA Research 7.1 or higher&amp;quot;&amp;gt;&amp;lt;u&amp;gt;SAIMAGEBeamformerTimeDomain&amp;lt;/u&amp;gt;&amp;lt;/span&amp;gt; || start beamformer computation in the time domain&lt;br /&gt;
|-&lt;br /&gt;
| SAimageBrainAtlas || turns on the Brain Atlas overlay on volumetric image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGECLARA || generate CLARA image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGEClip || clip image values under a threshold&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGEExport || save the results of minimum norm or 3D imaging method&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGEGotoMax || set the crosshair cursor at the nth maximum in the image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGEImport || load a 3D volume image from file&lt;br /&gt;
|-&lt;br /&gt;
| SAimageImportFMRI || import fMRI image to Source Analysis Module&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGELAURA || create LAURA image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGELORETA || create LORETA image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGESLoreta || create sLORETA image&lt;br /&gt;
|-&lt;br /&gt;
| SAimageSESAME || start SESAME computation&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGESSLOFO || create SSLOFO image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGEUser-Defined || create user-defined image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGESaveLeadfields || save the leadfields of all the voxel sources in a 3D image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGEClip || clip current 3D image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGESmooth || smooth current 3D image&lt;br /&gt;
|-&lt;br /&gt;
| SAIMAGESetCrosshair || set the position of the crosshair in the 3D image&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Commands for Time-Frequency Analysis''' ('''TFC''')&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;8&amp;quot; &lt;br /&gt;
| style=&amp;quot;width: 180pt&amp;quot;| TFCStartTFAnalysis ||(previously TFCgo) start TFC analysis using the current paradigm settings&lt;br /&gt;
|-&lt;br /&gt;
| TFCdisplay || change the TFC display (e.g. power/amplitude, coherence)&lt;br /&gt;
|-&lt;br /&gt;
| TFCsave || save numerical results to an ASCII file, or save a screenshot of the TFC window&lt;br /&gt;
|-&lt;br /&gt;
| TFCimage || start beamformer analysis on a selected time-frequency range&lt;br /&gt;
|-&lt;br /&gt;
| TFCSendToMATLAB || send TF results or single-trial data to MATLAB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== How to Average Your Data in a Batch  ===&lt;br /&gt;
&lt;br /&gt;
Using batch processing, several files from an experiment can be averaged at a time.&lt;br /&gt;
&lt;br /&gt;
Here we summarize the steps required:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Before running the batch'''&lt;br /&gt;
&lt;br /&gt;
* Create the paradigm, and save the paradigm file.&lt;br /&gt;
* Open each individual data file to check the data:&lt;br /&gt;
** Make sure auxiliary files are defined and loaded properly, and the data are displayed correctly.&lt;br /&gt;
** Eyeball the data.&lt;br /&gt;
** Define bad (and interpolated) channels.&lt;br /&gt;
** Mark artifact time ranges.&lt;br /&gt;
** If required, set up artifact correction for the file.&lt;br /&gt;
** The data file can be closed again after this step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Preparing the batch'''&lt;br /&gt;
&lt;br /&gt;
* Open at least one&amp;amp;nbsp;file and select ''Process / Batch Scripts''.... The file(s) should be displayed in the file list. Alternatively, just select ''Process / Batch Scripts...,'' and add the files by&lt;br /&gt;
** pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add File'''&amp;lt;/span&amp;gt; button&lt;br /&gt;
** dragging the files from Windows Explorer&lt;br /&gt;
** Opening a previously saved&amp;amp;nbsp;list with ''Load File List''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You can delete files from the list (press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Del'''&amp;lt;/span&amp;gt;) or edit the file sequence using the right click context menu.&lt;br /&gt;
* Select the ''Batch Tab''.&lt;br /&gt;
* Add commands to your script. For averaging, these would normally be&lt;br /&gt;
** '''Paradigm''' -- to load the paradigm file&lt;br /&gt;
** '''Artifact Scan''' -- to run the artifact scan&lt;br /&gt;
** '''Average''' -- to perform the average&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Save these commands (press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Batch'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
* Test the commands on the files in the current file list: press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;&lt;br /&gt;
* Look at the log file (press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''View Log File'''&amp;lt;/span&amp;gt;) to check the results of averaging.&lt;br /&gt;
* Look at the data averages to make sure they have been done correctly.&lt;br /&gt;
* Repeat these steps until averaging is working properly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Running the batch'''&lt;br /&gt;
&lt;br /&gt;
* Select ''Process / Batch Scripts''....&lt;br /&gt;
* Open the files you want to average in the batch in the file list:&lt;br /&gt;
** Any files that were open in BESA are included in the list&lt;br /&gt;
** Files can be added using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add File'''&amp;lt;/span&amp;gt; button&lt;br /&gt;
** You may drag one or more files from Windows Explorer to the file list&lt;br /&gt;
** Alternatively, load a previously saved file list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Edit the file list, e.g. delete unwanted files (use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Del'''&amp;lt;/span&amp;gt; key or the right click context menu), or reorder the files (use &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl + cursor keys'''&amp;lt;/span&amp;gt; or context menu).&lt;br /&gt;
* Note that the order of files in the list specifies the order in which they will be processed in the batch script. This order will be important if all results are saved to the same target file. Otherwise the file sequence is not important.&lt;br /&gt;
* Optionally, save the file list (press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Batch'''&amp;lt;/span&amp;gt;&lt;br /&gt;
* Select the ''Batch Tab'', and load the previously defined batch script with ''Load Batch''.&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to run the batch.&lt;br /&gt;
&lt;br /&gt;
=== How to Merge and Compress raw data  ===&lt;br /&gt;
&lt;br /&gt;
Using the Export command in a batch, several data files can be merged into a single data file in BESA's data format (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.foc&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This can be useful if data from one subject have been collected in several data blocks, and you want to analyze all data blocks together.&lt;br /&gt;
&lt;br /&gt;
Optionally, to save space, data can be saved in compressed format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Files can be merged:'''&lt;br /&gt;
&lt;br /&gt;
* if they have identical channel configurations, or&lt;br /&gt;
* there are at least 16 EEG channels, and the export format is Standard 81 (i.e. EEG channels are interpolated to 81 standard locations). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to merge files:'''&lt;br /&gt;
&lt;br /&gt;
* Select '''Process / Batch Scripts...'''&lt;br /&gt;
* Add all the files that are to be merged to the file list:&lt;br /&gt;
** Any files that were open in BESA Research are included in the list&lt;br /&gt;
** Files can be added using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add File'''&amp;lt;/span&amp;gt; button&lt;br /&gt;
** You may drag one or more files from Windows Explorer to the file list&lt;br /&gt;
** Alternatively, load a previously saved file list (''Load File List'').&lt;br /&gt;
* Rearrange the files in the file list to the sequence in which they should be merged.&lt;br /&gt;
* Select the ''Batch Tab ''and insert an &amp;quot;''Export&amp;quot;'' command, as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following dialog shows a possible configuration of the ''Export'' command:&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (4).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The parameters shown in the Information box are the settings chosen in the ''Export Dialog'' when the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Select Options'''&amp;lt;/span&amp;gt; button has been pressed.&lt;br /&gt;
* '''Append if file already exists''' must be checked in order to merge the files.&lt;br /&gt;
* The '''target file name''' must be fixed, i.e. don't use the '''%basename%''' variable, because that will result in a different target file name for each source file.&lt;br /&gt;
* There are two variables that can be used for the segment label:&lt;br /&gt;
** '''%filename%''' will insert the basename of the source file into the segment label.&lt;br /&gt;
** '''%c%''' will insert the file number into the segment label. The number gives&amp;amp;nbsp;the position of the file in the file list. For instance, &amp;quot;File %c%&amp;quot; will generate the label &amp;quot;File 2&amp;quot; for the second file in the list.&lt;br /&gt;
&lt;br /&gt;
=== Example: Data averaging in the auditory intensity experiment ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this example, two raw data files, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s1.cnt'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s2.cnt'''&amp;lt;/span&amp;gt;, from the auditory intensity experiment will be batch averaged.&lt;br /&gt;
&lt;br /&gt;
Please note that there are further tutorials covering this experiment. The first file is contaminated by many eyeblinks, and more epochs would be averaged if eye correction were used (see Viewlet demonstration on artifact correction on the BESA website). However, in this tutorial, we will just use artifact rejection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''A. Various ways of creating a File List'''&lt;br /&gt;
&lt;br /&gt;
1. '''Files that were open in BESA Research are automatically added to the File List.''' Start BESA Research and open the files &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s1.cnt '''&amp;lt;/span&amp;gt;and &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s2.cnt '''&amp;lt;/span&amp;gt;in the directory ''Examples\ERP-Auditory-Intensity''.&lt;br /&gt;
&lt;br /&gt;
2. Select ''Process / Batch Scripts''.... You should see the file names in the '''''File List Tab''''' something like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (5).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. You can resort the files in the file list alphabetically by clicking onto the '''''File List column header''''':&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (6).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can mark any file, hold down the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl '''&amp;lt;/span&amp;gt;key and press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Up'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Down arrow '''&amp;lt;/span&amp;gt;to move the file name up or down the list. This is the sequence in which files will be processed in the batch.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (7).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save File List'''&amp;lt;/span&amp;gt; and save the list you have created to &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''ERP-Aud-Ex1.flist'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. Highlight both names and press the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Del '''&amp;lt;/span&amp;gt;button to remove them from the list.&lt;br /&gt;
&lt;br /&gt;
6. '''Files can be dragged from Windows Explorer'''. Start Windows Explorer and navigate to the ''ERP-Auditory-Intensity'' subdirectory of your BESA Research examples folder (located in the ''Public Documents'' folder of your computer). Click on &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s1.cnt'''&amp;lt;/span&amp;gt; and drag it with the mouse onto the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''''File List Tab'''''. Let go of the mouse. BESA Research opens the file, and displays the name in the File List. Repeat for &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s2.cnt.'''&lt;br /&gt;
&lt;br /&gt;
7. Highlight both names and press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Del '''&amp;lt;/span&amp;gt;button to remove them from the list.&lt;br /&gt;
&lt;br /&gt;
8. '''Files can be added using the ''Add File'' button'''. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add File'''&amp;lt;/span&amp;gt; and navigate to the ''Examples\ERP-Auditory-Intensity'' subdirectory. Select &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s1.cnt'''&amp;lt;/span&amp;gt;. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl'''&amp;lt;/span&amp;gt; and select &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s2.cnt'''&amp;lt;/span&amp;gt;. Both names should then be displayed in the ''File Open'' dialog. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to add the files to the file list.&lt;br /&gt;
&lt;br /&gt;
9. Highlight both names and press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Del'''&amp;lt;/span&amp;gt; button to remove them from the list.&lt;br /&gt;
&lt;br /&gt;
10. '''Files can be loaded from a previously saved file list'''. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load File List '''&amp;lt;/span&amp;gt;and select &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''ERP-Aud-Ex1.flist'''&amp;lt;/span&amp;gt;, the list you saved in step 6 above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''B. Setting up the batch'''&lt;br /&gt;
&lt;br /&gt;
1. We will add three commands, '''Paradigm''', '''Artifact Scan''', and '''Average''', to create a batch that will be applied to the two files in the file list.&lt;br /&gt;
&lt;br /&gt;
2. Click on the '''Batch Tab'''.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (8).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Command'''&amp;lt;/span&amp;gt; button to obtain the ''Select Command'' window:&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (9).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Click on &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Paradigm'''&amp;lt;/span&amp;gt; and then on &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; (alternatively, double-click on &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Paradigm'''&amp;lt;/span&amp;gt;). Hit &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse'''&amp;lt;/span&amp;gt;, navigate to the ''Auditory'' folder, and select &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''AEP_Intensity.pdg'''&amp;lt;/span&amp;gt;, the paradigm for the auditory intensity experiment.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (10).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to obtain the ''Load Paradigm Task'' window.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (11).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;, and the first task in the batch is ready, and listed in the Batch Command window. If you want to modify the command, double-click on it to open the above window, that allows to browse for a different paradigm file.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (12).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
7. Next, we add the '''Artifact Scan''' command. Click on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Command'''&amp;lt;/span&amp;gt; button, and select ''Artifact Scan.''&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (13).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to open the ''Artifact Scan Task'' window. We want to be able to view the results of the scan, and adjust thresholds and bad channels if necessary. Therefore, check the ''Wait after scan'' checkbox.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (14).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
9. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to close the ''Artifact Scan Task'' window. Our batch now contains two commands.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (15).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10. Finally, we will add an '''Average''' command. Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Command'''&amp;lt;/span&amp;gt; button and select ''Average''. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to open the ''Average Task ''window.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (16).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11. With the default settings, the average would be saved to the same directory as the data. The file name mask is set by default so that in this example the two averages would be saved to &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s1-av.fsg '''&amp;lt;/span&amp;gt;and &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s2-av.fsg'''&amp;lt;/span&amp;gt;. We will save the averaged files to subdirectory ''&amp;quot;Averages''&amp;quot; of the data directory. Uncheck the ''Use default target'' check box, change the File name mask to '''%basename%_av-test''' in order not to overwrite the predefined files.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (17).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
12. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK '''&amp;lt;/span&amp;gt;to close the ''Average Task'' window. Our batch is now complete.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (18).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
13. We will now save the batch so that it can be used again. Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Batch'''&amp;lt;/span&amp;gt; button, and save to the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''ERP-Aud-ex1.bbat'''&amp;lt;/span&amp;gt;. Note that an easy way to generate new averaging batches is to load a previously save batch and edit the commands -- it may only be necessary to edit the '''Paradigm''' command to select the relevant paradigm file, and maybe to adjust the target directory in the '''Average''' command.&lt;br /&gt;
&lt;br /&gt;
14. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; in the ''Batch'' Window to start the batch running. As requested, the batch pauses after the artifact scan:. &lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (19).gif]]&lt;br /&gt;
&lt;br /&gt;
You may now adjust the number of rejected trials, e.g. by moving the vertical red bar to the left or exclude bad channels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
15. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to continue with averaging.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (20).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
16. Note that, in the background, the ''Batch Running'' window is providing feedback about the current file and current task.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (6).jpg|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
17. The batch will stop again after the next artifact scan. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to allow the batch to run to the end.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (21).gif|400px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
18. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''View Log'''&amp;lt;/span&amp;gt; to view the batch log.&lt;br /&gt;
&lt;br /&gt;
19. The batch log gives feedback about the number of epochs that were averaged for each file.&lt;br /&gt;
&lt;br /&gt;
20. Finally, press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to return to the main BESA Research display. Open the averages in the ''Averages'' subdirectory to confirm that they were generated properly.&lt;br /&gt;
&lt;br /&gt;
=== Example: Merging files using the Export Command ===&lt;br /&gt;
&lt;br /&gt;
Here we will demonstrate the use of the '''Export '''command to merge two files. We will combine the two averages from the previous example (Data averaging in the auditory intensity experiment) into one target file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''A. Generate the file list'''&lt;br /&gt;
&lt;br /&gt;
# Start BESA Research and load the two data files &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S1_av-test.fsg'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S2_av-test.fsg'''&amp;lt;/span&amp;gt; that were saved in the previous example.&lt;br /&gt;
# Select ''Process / Batch Scripts....''The two file names should be displayed in the file list.&lt;br /&gt;
# In the file list, make sure that &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''s1_av-test.fsg '''&amp;lt;/span&amp;gt;is the first file in the list. If it is not, highlight the file, and move it up using &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl+up'''&amp;lt;/span&amp;gt;, or right click and select ''Move Up'' in the context menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''B. Generate the batch'''&lt;br /&gt;
&lt;br /&gt;
1. Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Command'''&amp;lt;/span&amp;gt; button, and select the '''Export''' command.&lt;br /&gt;
&lt;br /&gt;
2. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to open the ''Export Task'' window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (24).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Select Options'''&amp;lt;/span&amp;gt;... button to open the ''Export Dialog''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (25).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Since we are combining averages, select ''Hires (no compression)'' in the '''Target data format''' drop-down list (If we were merging raw data files, it is better to select compression. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK '''&amp;lt;/span&amp;gt;to close the dialog. Check'' Append if file already exists'', so that the files will be merged. Enter '''s1+s2''' in the target file name mask edit box. This ensures that both files will be saved to the same target: &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S1+S2.fsg'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (26).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK '''&amp;lt;/span&amp;gt;to close the ''Export Task'' window. The '''Export '''command is displayed. &amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (27).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. Optionally, you may save the batch file by pressing &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Batch'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to run the batch, and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; in the ''Batch Completed'' window to return to the BESA main window.&lt;br /&gt;
&lt;br /&gt;
8. Finally, open the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S1+S2.fsg'''&amp;lt;/span&amp;gt; to confirm that it contains the two merged files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''C. Merge raw data'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Repeat the above task to merge the two raw data files &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S1.cnt'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S2.cnt'''&amp;lt;/span&amp;gt; into a single target file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S1+S2.foc'''&amp;lt;/span&amp;gt;. In this case, select one of the compression options as the target data format. Note that you would not normally want to merge two files from different subjects. However, several data blocks from the same subject can conveniently be merged using this method.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note that &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;''&amp;lt;nowiki&amp;gt;*.fsg&amp;lt;/nowiki&amp;gt;''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt; files can also be merged using the &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;''Combine Conditions''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt; dialog. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Combine Conditions, Channels ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Combine Condition Scripts ===&lt;br /&gt;
&lt;br /&gt;
With the Combine-Conditions module you can do a variety of operations on BESA averages (files with the extension &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.fsg&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;, and other segment files, such as &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.mul&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.avr&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.swf&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
* Create grand averages&lt;br /&gt;
* Combine averages (add, subtract, weighted/unweighted)&lt;br /&gt;
* Merge files&lt;br /&gt;
* Exclude unwanted averages&lt;br /&gt;
* Rename conditions&lt;br /&gt;
* Rename or resort channels&lt;br /&gt;
* Generate averages or differences over selected channels&lt;br /&gt;
* Transform the data: standard interpolated 81 electrodes, change sampling rate, change interval&lt;br /&gt;
* Determine peaks, mean amplitudes, or integrals on data averages&lt;br /&gt;
* These operations can be performed on one or more files simultaneously. Results of an operation are stored in a single target file.&lt;br /&gt;
&lt;br /&gt;
The module includes four tabbed windows:&lt;br /&gt;
&lt;br /&gt;
* File List: Define a list of files on which the operations will be performed.&lt;br /&gt;
* Condition List: List the condition names, define target condition names, and how input conditions are combined into target conditions.&lt;br /&gt;
* Channel List: List the channel names, define target channel names, and how input channels are combined into target channels.&lt;br /&gt;
* Run Scripts: Define global options for the output (e.g. spatial interpolation, resampling, copy/merge or average, peak analysis). Start the operation.&lt;br /&gt;
* Note that in all four tabs, configurations can be saved for future use, and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Previous'''&amp;lt;/span&amp;gt; button restores the most recently used configuration.&lt;br /&gt;
&lt;br /&gt;
=== Condition List Tab ===&lt;br /&gt;
&lt;br /&gt;
List the condition names, define target condition names, and how input conditions are combined into target conditions.&lt;br /&gt;
&lt;br /&gt;
The first column of the&amp;amp;nbsp;list box shows a list of all the condition names found in the source files.&lt;br /&gt;
&lt;br /&gt;
Rows of the list box define the source conditions. Columns define the target conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Initial setting'''&lt;br /&gt;
&lt;br /&gt;
When first selecting the tab, each column shows each condition name found in the source files (as in the example below). In the list box, there is a &amp;quot;+1&amp;quot; along the diagonal. The result of this selection is that target conditions will have the same name as source conditions. Right click on source condition labels to view properties (e.g. no. of samples, time range, sampling rate).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (28).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Editing the condition list'''&lt;br /&gt;
&lt;br /&gt;
* Target condition names can be edited, inserted or deleted by clicking on the label at the top of each column.&lt;br /&gt;
* Click on a box within the list to toggle between &amp;quot;+1&amp;quot;, &amp;quot;-1&amp;quot; and blank. These correspond to the operations:&lt;br /&gt;
** &amp;quot;+1&amp;quot; = add&lt;br /&gt;
** &amp;quot;-1&amp;quot; = subtract&lt;br /&gt;
** blank = do nothing&lt;br /&gt;
* Right click on a box for further operations: conditions can be weighted by a given factor other than 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Divide result by sum of PLUS factors'''&lt;br /&gt;
&lt;br /&gt;
* Normally, when creating an average over conditions, the sum is divided by the number of conditions or a weighted average is generated (see below). &amp;amp;nbsp;If &amp;quot;''Divide the result by the sum of PLUS factors''&amp;quot; is unchecked, the conditions will be summed rather than averaged.&lt;br /&gt;
* Note that, when making differences between conditions, no such division is required. BESA Research will uncheck the checkbox automatically if subtraction (&amp;quot;-1&amp;quot;) is specified somewhere in the condition list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting of averages'''&lt;br /&gt;
&lt;br /&gt;
* Below the list, click on the ''Weighted Average'' row to toggle &amp;quot;YES&amp;quot; and &amp;quot;NO&amp;quot;. &amp;quot;YES&amp;quot; means that averages will be weighted by the number of epochs contributing to the average. For instance, if average A contained 100 epochs and average B contained 200 epochs, the weighted average will be computed as&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1cm;margin-right:0cm;&amp;quot;&amp;gt;(100 * A + &amp;amp;nbsp;200 * B) / (100 + 200)&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1cm;margin-right:0cm;&amp;quot;&amp;gt;Select &amp;quot;NO&amp;quot; for an unweighted average. For the above example, the average is computed as&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1cm;margin-right:0cm;&amp;quot;&amp;gt;(A + B) / 2&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1cm;margin-right:0cm;&amp;quot;&amp;gt;Weighted averages are not permitted if one of the boxes contains a negative value.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Values other than +1 or -1 in the boxes apply a different kind of weighting. For instance, we want to compute the difference between the means of conditions A, B, C and D, E. Use a right-click to specify the fraction 1/3 for each of A, B, and C, and -1/2 for each of D and E (see example below).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (29).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Save the current condition list'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Condition List'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load a condition list'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Condition List'''&amp;lt;/span&amp;gt;&amp;amp;nbsp;button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load previous settings'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Previous'''&amp;lt;/span&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Feedback'''&lt;br /&gt;
&lt;br /&gt;
* Conditions that have different numbers of electrodes (averaging across different files) can only be combined if channels are interpolated to a standard set of electrodes.&lt;br /&gt;
* Conditions that have different durations or sampling rates can only be combined if the sampling rate and durations are made the same.&lt;br /&gt;
* Feedback about the above situations is displayed by the presence of tick marks above the list box.&lt;br /&gt;
&lt;br /&gt;
=== Channel List Tab ===&lt;br /&gt;
&lt;br /&gt;
List the channel names, define target channel names, and how input channels are combined into target channels.&lt;br /&gt;
&lt;br /&gt;
Note that this tab is very similar in usage to the '''Condition List Tab'''. Note also that some of the functions performed in this tab could also be done in the Montage Editor. It may be a matter of convenience whether you choose to perform these operations here or in the Montage Editor.&lt;br /&gt;
&lt;br /&gt;
The first column of the list box shows a list of all the channel names found in the source files.&lt;br /&gt;
&lt;br /&gt;
Rows of the list box define the ''source'' channel. Columns define the'' target'' channel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Initial setting'''&lt;br /&gt;
&lt;br /&gt;
When first selecting the tab, each column shows each channel name found in the source files (as in the example below). In the list box, there is a &amp;quot;+1&amp;quot; along the diagonal. The result of this selection is that target channel will have the same name as source channel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Combining files'''&lt;br /&gt;
&lt;br /&gt;
If files with different channel configurations are included in the File List, the rows and columns of the Channel List Tab will only contain the labels for the channels that are in common among the files.&lt;br /&gt;
&lt;br /&gt;
If the files in the File List have a different sequence of channels, the sequence of the first file in the list will be adopted in the Channel List.&lt;br /&gt;
&lt;br /&gt;
Thus, for the initial setting, unless the &amp;quot;''Ignore Settings in this Tab''&amp;quot; checkbox is checked, the target grand average or peak/amplitude analysis, etc. will be applied using only channels that are in common among the input files, and using the channel sequence of the first file in the File List. By changing the target channels or by changing the entries in the Channel List, new channels consisting of averages or differences can be generated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What can the Channel List be used for?'''&lt;br /&gt;
&lt;br /&gt;
Some examples:&lt;br /&gt;
&lt;br /&gt;
* Reorder or relabel channels&lt;br /&gt;
* Create channel differences&lt;br /&gt;
* Create averages over channel groups, e.g. for peak analysis&lt;br /&gt;
* Extract a selection of channels for peak analysis or mean amplitudes&lt;br /&gt;
* Create grand averages across files with different channel configurations, just using channels in common among the files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (30).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Editing the channel list'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Target channel names can be edited, inserted or deleted by clicking on the label at the top of each column.&lt;br /&gt;
* Click on a box within the list to toggle between &amp;quot;+1&amp;quot;, &amp;quot;-1&amp;quot; and blank. These correspond to the operations:&lt;br /&gt;
** &amp;quot;+1&amp;quot; = add&lt;br /&gt;
** &amp;quot;-1&amp;quot; = subtract&lt;br /&gt;
** blank = do nothing&lt;br /&gt;
* Right click on a box for further operations: channels can be weighted by a given factor other than 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Divide result by sum of PLUS factors'''&lt;br /&gt;
&lt;br /&gt;
* Normally, when creating an average over channels, the sum is divided by the number of channels or a weighted average is generated (see below). &amp;amp;nbsp;If &amp;quot;Divide result by the sum of PLUS factors&amp;quot; is unchecked, the channels will be summed rather than averaged.&lt;br /&gt;
* Note that, when making differences between channels, no such division is required. BESA Research will uncheck the checkbox automatically if subtraction (&amp;quot;-1&amp;quot;) is specified somewhere in the channel list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Save the current channel list'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Channel List'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load a channel list'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Channel List&amp;amp;nbsp;'''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load previous settings'''&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Previous'''&amp;lt;/span&amp;gt; button&lt;br /&gt;
&lt;br /&gt;
=== Run Scripts Tab ===&lt;br /&gt;
&lt;br /&gt;
Define global options for the output (e.g. spatial interpolation, resampling, copy/merge or average, peak detection. Start the operation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (7).jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load or Save Settings'''&lt;br /&gt;
&lt;br /&gt;
* You can save the current settings of this tab to a file (*.run) which can be loaded later.&lt;br /&gt;
* When you run the script, the current settings are saved automatically to a file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PreviousSettings.run'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Load Previous'''&lt;br /&gt;
&lt;br /&gt;
* Press this button to load the previous settings (from &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PreviousSettings.run'''&amp;lt;/span&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Averages to Generate'''&lt;br /&gt;
&lt;br /&gt;
* '''Generate separate averages for each source file'''. Averages are performed over conditions within the source file, and are then appended to the target file.&lt;br /&gt;
* '''Combine data from source files'''. Conditions are combined over all source files into a single target average.&lt;br /&gt;
* '''No averages, just copy'''. Files are copied and merged to the target file. Use this option for renaming conditions, merging files, removing unwanted averages (see below), changing the sampling rate and interval.&lt;br /&gt;
* '''Peaks and mean amplitudes'''. Specify time ranges for peaks, mean amplitudes, or integrals (areas).&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: When generating or copying averages (first three options), filters and baseline settings are turned off. For Peaks and mean amplitudes, filters and baseline settings are specified in the dialog.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Spatial Interpolation'''&lt;br /&gt;
&lt;br /&gt;
* '''Interpolate to Standard 81 electrodes'''. The target file will contain only electrodes (other channels are omitted), using the Standard 81 configuration (as in other export functions within BESA Research). This cannot be selected if the source data contain less than 16 EEG channels.&lt;br /&gt;
* '''Interpolate Bad Channels'''. Bad electrode channels in the source file will be interpolated. If the above option is deselected and bad channels exist in one or more of the source files, this option is always on.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;BESA Research can interpolate EEG, and MEG if the sensors are axial gradiometers or magnetometers. If other channels are marked as bad in one or more of the source files, these will be defined as bad in the target file. This applies to MEG planar gradiometers, to polygraphic data, and to ICR channels.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Temporal Interpolation'''&lt;br /&gt;
&lt;br /&gt;
* '''Spline to New Sampling Rate and Interval'''. Data can be converted to a new sampling rate, and the interval can be changed.&lt;br /&gt;
** If the sampling rate is reduced, the data will be low-pass filtered at 1/3 sampling frequency before reduction.&lt;br /&gt;
** If the sampling interval is changed, the prestimulus and poststimulus intervals are limited by the smallest intervals in the conditions contributing to the averages. These limits are shown below the edit boxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Peaks and Mean Amplitudes'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (31).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Peaks:'''&lt;br /&gt;
&lt;br /&gt;
* Select the time range between which peaks are to be determined.&lt;br /&gt;
* Select the montage on which the peaks are to be determined.&lt;br /&gt;
* Define the filter settings.&lt;br /&gt;
* Define the baseline settings.&lt;br /&gt;
* Specify whether peaks are to be defined at one latency: if so, select the channel on which peaks are to be detected.&lt;br /&gt;
* Specify whether you want to find positive or negative peaks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Mean amplitudes and areas:'''&lt;br /&gt;
&lt;br /&gt;
* Select the time range over which the mean amplitudes or areas are to be determined.&lt;br /&gt;
* Select the montage on which the mean amplitudes or areas are to be determined.&lt;br /&gt;
* Define the filter settings.&lt;br /&gt;
* Note that when computing areas, data are first rectified (made positive) and then summed over the time range.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Output options of the analysis:'''&lt;br /&gt;
&lt;br /&gt;
* A single ASCII file that contains the result of the analysis for all data sets, conditions, and channels including header and information lines.&lt;br /&gt;
* A sparse output suitable for import in SPSS. Each variable (e.g. a latency, a channel amplitude) constitutes one column of the output file.&lt;br /&gt;
* Direct transfer to MATLAB into a struct besa_peak. For more information on the data transfer from BESA Research to MATLAB, please refer to help chapter ''“The MATLAB interface”.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the Operation'''&lt;br /&gt;
&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;&amp;amp;nbsp;to start the operation. After the operation is completed, and the &amp;quot;Open target file in BESA&amp;quot; box is checked, BESA Research will open the target file. &amp;amp;nbsp;&amp;quot;Open target file in BESA&amp;quot; cannot be checked if &amp;quot;Peaks and mean amplitudes&amp;quot; was selected - then the result of the operation will be an ASCII file or a MATLAB transfer.&lt;br /&gt;
* You will be asked for the name of the target file (unless a MATLAB transfer of peak data has been performed).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Restrictions'''&lt;br /&gt;
&lt;br /&gt;
* Depending on source file configurations, not all options above are selectable. For instance, if two files contain different numbers of electrodes, and the &amp;quot;''Ignore Settings in this Tab''&amp;quot; checkbox is checked in the '''''Channel List''''' Tab, spatial interpolation to Standard 81 is enforced in the target. Similarly, if different sampling rates are used in different files, temporal interpolation is enforced.&lt;br /&gt;
* You are not allowed to add files to the file list if the channel configuration is different, and the data cannot be combined with Standard 81 interpolation. Since Standard 81 interpolation is only possible for EEG, multiple files without EEG can only be loaded if they have the same number of channels.&lt;br /&gt;
&lt;br /&gt;
=== How to Create Grand Averages ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the files you want to average in BESA Research.&lt;br /&gt;
* Start the Combine Conditions Module (''ERP / Combine Conditions...).''&lt;br /&gt;
* Click on the '''Condition List Tab'''. By default, the target conditions receive the same name as the source conditions. To average across different conditions, click in the list boxes to obtain &amp;quot;+1&amp;quot; for each source condition to combine, and rename the target condition to define a meaningful name for the average.&lt;br /&gt;
* Click on the '''Run Scripts Tab'''.&lt;br /&gt;
* If you have more than one file, specify whether averages should be generated across files ('''Combine data from source files''') or within files ('''Generate separate averages for each source file''').&lt;br /&gt;
* Select other options if required (spatial or temporal resampling).&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Generate Differences Between Conditions ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the files you want to operate on in BESA Research.&lt;br /&gt;
* Start the Combine Conditions Module (''ERP / Combine Conditions...).''&lt;br /&gt;
* Click on the '''Condition List Tab'''. By default, the target conditions receive the same name as the source conditions. To create differences, click in the list boxes to obtain &amp;quot;+1&amp;quot; for one of the source conditions, and &amp;quot;-1&amp;quot; for the source condition to subtract, and rename the target condition to define a meaningful name for the difference.&lt;br /&gt;
* Click on the '''Run Scripts Tab'''.&lt;br /&gt;
* If you have more than one file, specify whether averages should be generated across files ('''Combine data from source files''') or within files ('''Generate separate averages for each source file''').&lt;br /&gt;
* Select other options if required (spatial or temporal resampling).&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;. An average of the differences is generated. If only one example of each condition exists, e.g. in a grand average file, the result is the difference between conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Merge Files ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the files you want to merge in BESA Research.&lt;br /&gt;
* Start the Combine Conditions Module (''ERP / Combine Conditions''...).&lt;br /&gt;
* Click on the '''Condition List Tab'''. By default, the target conditions receive the same name as the source conditions.&lt;br /&gt;
* Click on the '''Run Scripts Tab'''. Select &amp;quot;''No averages, just copy''&amp;quot;.&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
* If the source files have different electrode configurations, use the Standard 81 configuration for the target.&lt;br /&gt;
* If the source files have different sampling rates or intervals, use Temporal Interpolation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Remove Unwanted Averages ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Removing one or more unwanted segments'''&lt;br /&gt;
&lt;br /&gt;
* Normally, all conditions are read from a source file. To exclude one or more segments from operations in the Combine Conditions module, mark the segments as artifacts in the main program display. It is sufficient for the beginning or the end of an artifact interval to be within the segment for the segment to be excluded.&lt;br /&gt;
* Open the file you want to operate on in BESA Research.&lt;br /&gt;
* Start the Combine Conditions Module (''ERP / Combine Conditions...).''&lt;br /&gt;
* Click on the '''Condition List Tab'''. By default, the target conditions receive the same name as the source conditions.&lt;br /&gt;
* Click on the '''Run Scripts Tab'''. Select &amp;quot;''No averages, just copy''&amp;quot;.&lt;br /&gt;
* Press&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
* The target file contains the copied data without the conditions that were marked as averages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Removing one or more unwanted conditions (by label)'''&lt;br /&gt;
&lt;br /&gt;
* Open the file you want to operate on in BESA Research.&lt;br /&gt;
* Start the Combine Conditions Module (''ERP / Combine Conditions...).''&lt;br /&gt;
* Click on the '''Condition List Tab'''. By default, the target conditions receive the same name as the source conditions.&lt;br /&gt;
* Deselect the target conditions you want to omit (replace the &amp;quot;+1&amp;quot; by a blank).&lt;br /&gt;
* Click on the '''Run Scripts Tab'''. Select &amp;quot;''No averages, just copy''&amp;quot;.&lt;br /&gt;
* Press&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
* The target file contains the copied data without the conditions that were marked as artifacts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Rename Conditions ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the file you want to operate on in BESA Research.&lt;br /&gt;
* Start the Combine Conditions Module (''ERP / Combine Conditions''...).&lt;br /&gt;
* Click on the '''Condition List Tab'''. By default, the target conditions receive the same name as the source conditions. Click on column headings to rename the target conditions.&lt;br /&gt;
* Click on the''' Run Scripts Tab'''. Select &amp;quot;''No averages, just copy''&amp;quot;.&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
* The target file contains the copied data with the renamed conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Change the Sampling Rate ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Open the file(s) you want to change in BESA Research.&lt;br /&gt;
* Start the Combine Conditions Module (''ERP / Combine Conditions...'').&lt;br /&gt;
* Click on the '''Condition List Tab'''. By default, the target conditions receive the same name as the source conditions.&lt;br /&gt;
* Click on the '''Run Scripts Tab'''. Select &amp;quot;''No averages, just copy''&amp;quot;.&lt;br /&gt;
* Select &amp;quot;''Spline to New Sampling Rate and Interval''&amp;quot; and type the new sampling rate into the edit box.&lt;br /&gt;
* Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example: Create grand average and combinations of conditions ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this example, we will generate a grand average of the results of the Auditory Intensity Experiment. The experiment includes averages from five different stimulus intensities. We will create a grand average over each intensity, but also include means over the two lowest and the two highest intensities, and the difference between these two combinations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''A. File selection'''&lt;br /&gt;
&lt;br /&gt;
# Start BESA Research and open files &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''S1_av.fsg - S10_av.fsg'''&amp;lt;/span&amp;gt; in the ''Examples\ERP-Auditory-Intensity'' folder. The files contain the individual averaged data of the 10 subjects who participated in this study.&lt;br /&gt;
# Select ''ERP / Combine Conditions...'' The file list should display the two files, with feedback about the number of averages and conditions. 8 epochs are found. See the ''“Data averaging in the auditory intensity'' ''experiment”'' example for examples how to manipulate the file list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (32).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''B. Define conditions'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Click on the '''Condition List Tab'''. The initial window defines target conditions with the same name as the source conditions. To generate the grand average over these conditions we could proceed without further changes to the '''Run Scripts Tab'''. However, we want to modify the condition list and create a condition that contains the grand averaged difference between the''' High''' and '''Low''' conditions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (8).jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Click on the '''All '''column label. In the resulting window, rename condition '''All''' to''' Difference'''. Then press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (33).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. The last column is now labeled '''Difference.''' Left-click twice onto the ‘'''+1’''' entry that links this condition to the '''All '''input condition. This will remove the link and leave the field blank. To define the ‘Difference’ condition as the average of ‘High’ minus ‘Low’ over subjects, left-click once into the field linking input '''High''' with target '''Difference''' to generate an entry ‘'''+1’''' in this field. Left-click twice into the field linking input '''Low '''with target '''Difference''' to generate an entry '-'''1'''’.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;[[Image:Batch processing (35).gif]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Save Condition List'''&amp;lt;/span&amp;gt; and save the list to &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''ER&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;P-aud-ex1.clist'''&amp;lt;/span&amp;gt;. This condition combination can thus be loaded later using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Load Condition List'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''C. Run the script'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Click on the '''Run Script Tab'''.&lt;br /&gt;
# The default tab settings are ready for generating the grand average ('''Combine data from source file''' and '''Open target file in BESA''' should be checked). Just press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;. Enter &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''All_Subjects_cc-test.fsg'''&amp;lt;/span&amp;gt; as file name and press&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Save'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The resulting file contains the 8 target conditions, 60db, 70dB, 80dB, 90dB, 100dB, Low, High, and Difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example: Average files from different experiments ===&lt;br /&gt;
&lt;br /&gt;
This example is intended to illustrate several features of the ''Combine Conditions'' Dialog, such as electrode interpolation and resampling. We will combine an average from the Auditory Intensity experiment with one from the P300 auditory experiment. In this particular case, it is not a very meaningful thing to do, but it shows what is possible. For instance, the same experiment may have been performed using different sampling rates or electrode combinations. This example shows how such data may be combined.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''A. File selection'''&lt;br /&gt;
&lt;br /&gt;
# Start BESA Research and open the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''All_Subjects_GA.fsg'''&amp;lt;/span&amp;gt; in the ''Examples\ERP-Auditory-Intensity'' folder. The file contains the grand average data from the auditory intensity experiment.&lt;br /&gt;
# Open the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''RareFrequentResponseLeft.fsg'''&amp;lt;/span&amp;gt; in the ''Examples\ERP-P300-Auditory'' folder. This file contains averages from the P300 auditory experiment.&lt;br /&gt;
# Select ''ERP / Combine Conditions... ''Note that the files have different sampling rates and different numbers of electrodes.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (36).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''B. Define conditions'''&lt;br /&gt;
&lt;br /&gt;
1. Click on the '''Condition List Tab'''. Note that the feedback text at the bottom of the window displays the text &amp;quot;Standard 81 interpolation required to generate average; Across files: resampling or change in time range required to generate average&amp;quot;. The condition labels show all the names from both files.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (37).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.  We will exclude most conditions, and just combine the most similar conditions from the two experiments: the &amp;quot;Standard&amp;quot; and the &amp;quot;80dB&amp;quot; conditions. Click on the title of the first column,''' Blink'''. Select “''Delete all conditions to the right of this column”'', and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (38).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Click on the title again, and rename the target condition to &amp;quot;Standard&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (39).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Click twice in the first line to remove the &amp;quot;+1&amp;quot; entry there. Click once in the third row (&amp;quot;Frequent&amp;quot;), and in the 7th row (&amp;quot;80dB&amp;quot;), to display &amp;quot;+1&amp;quot; at each entry. Thus, just two of the conditions will be combined into one target condition.&lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (40).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''C. Run the script'''&lt;br /&gt;
&lt;br /&gt;
1. Click on the '''Run Script Tab'''. &lt;br /&gt;
&lt;br /&gt;
[[Image:Batch processing (41).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Note that '''Interpolate to Standard 81 electrodes''' is checked and grayed: since two different electrode sets are to be combined, we can only do this by interpolating electrodes. Also, both '''Spline to new sampling rate''' and '''Clip interval '''are checked and grayed. Again, these settings are required in order to be able to average the two data files together. The sampling rate is set to the higher of the two selections. The time range is set to the largest possible range that can be clipped from the two data sets. For now, leave these settings as they are, and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;. Save the target to &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''TestCombineExpts_CC-std81.fsg'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Discrete_Sources</id>
		<title>Discrete Sources</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Discrete_Sources"/>
				<updated>2024-03-11T13:28:03Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
A source is used to model the electro-magnetic activity caused by patches of simultaneously active neurons. There are three types of sources in BESA: &lt;br /&gt;
&lt;br /&gt;
* [[Image:singleDipole.png|40px]] [[#Single Dipole | single dipoles]],&lt;br /&gt;
* [[Image:regionalSource.png|40px]] [[#Regional Source | regional sources]],&lt;br /&gt;
* [[Image:spatialComponent.png|40px]] [[#Spatial Component | spatial components]].&lt;br /&gt;
&lt;br /&gt;
In case of MRI-coregistered datasets the [[#Confidence Ellipsoid and Error Rim | confidence ellipsoid and error rim]] can be displayed for single dipoles and regional sources.&lt;br /&gt;
&lt;br /&gt;
== Single Dipole ==&lt;br /&gt;
&lt;br /&gt;
[[Image:singleDipole.png|40px]] A single dipole source (abbreviation: ''SD'' or ''Dip'') can be regarded as an electric current dipole, which is used for the physical modeling of the physiological activity. It is described by a location and an orientation, and the source waveform describes its amplitude over time.&lt;br /&gt;
&lt;br /&gt;
'''Selected Source'''&lt;br /&gt;
&lt;br /&gt;
A source is selected by clicking onto the source plot in the head box or by clicking onto the source waveform in the source box. It is deselected by selecting another source or by clicking beneath any source plot in the head box.&lt;br /&gt;
&lt;br /&gt;
The selected source is marked with a circle around its source plots in the head box, with a golden halo in the 3D window and a colored rectangle around its On/Off and Fit/No fit button in the source box. If a source is selected its parameters are displayed in the parameter box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Regional Source ==&lt;br /&gt;
&lt;br /&gt;
[[Image:regionalSource.png|40px]] A regional source (abbreviation: ''RS'') is a source which describes all activity originating in the vicinity of its location. It can be regarded as a source with three (MEG spherical head models: two) [[#Single Dipole| single dipoles]] (called components) at the same location but with orthogonal orientations.&lt;br /&gt;
&lt;br /&gt;
[[Image:orientedRegionalSource.png|40px]] A regional source can be rotated such that one of the single orientations of its components explains a maximum of activity at a specified sample. If a regional source has been rotated, the orientation of each component is displayed in the [[Source_Analysis_Functions_of_the_Window#Head_Box | head box]], otherwise only the source body is displayed.&lt;br /&gt;
&lt;br /&gt;
== Spatial Component ==&lt;br /&gt;
&lt;br /&gt;
[[Image:spatialComponent.png|40px]] A spatial component (abbreviation: ''SpC'') is a source represented by a principal vector. This principal vector results from a Principal Component Analysis (PCA) or Independent Component Analysis (ICA) of the covariance data matrix, from the RAP-Music algorithm, or from the measured data at the cursor sample. It describes the contribution of the source at the sensors. The topography of a spatial component need not be of dipolar nature.&lt;br /&gt;
&lt;br /&gt;
If the spatial component results from a PCA, ICA, or the cursor sample, its location is reconstructed by an approximation. Spatial components created by RAP-Music have exactly defined location and orientation but can consist of two components (with one resulting principal vector).&lt;br /&gt;
&lt;br /&gt;
== Confidence Ellipsoid and Error Rim ==&lt;br /&gt;
''(requires BESA Research 7.1 or higher)''&lt;br /&gt;
&lt;br /&gt;
For [[#DSingle Dipole | dipole solutions]] and [[#Regional Source | oriented regional sources]], confidence limits are calculated, displayed, and stored. The last fit interval used for a source is relevant for computing the confidence limit, as well as the baseline interval. These intervals are also stored with the solution. In case of multi-dipole solutions or solutions which include spatial components, the full source model is taken into account for computation. Confidence limits are written to solution files if the coordinate system for export is set to Talairach. For these solutions, an import and display of the solution in BESA MRI is possible (BESA MRI 3.0 or higher). The limit that is computed corresponds to the 95% confidence limit. Computation follows the approach of M. Hämäläinen (Interpretation of neuromagnetic measurements: modeling and statistical considerations, PhD thesis at Helsinki University of Technology 1987, pp 27 ff).&lt;br /&gt;
&lt;br /&gt;
* Note: Confidence limit display in the MRI window is only active if an individual MRI was co-registered.&lt;br /&gt;
* Also note that the confidence limit computed requires a baseline interval that is well defined. The baseline interval can be adjusted by clicking on the baseline indicator bar at the top left of the Source Analysis window. &lt;br /&gt;
* Confidence limits depend on many factors including the number of active sources, the signal-to-noise ratio, and the fit interval. In particular, the confidence limit does not account for other errors, e.g. head model errors, co-registration errors, or influence of artifacts on the solution. They should be regarded as a guideline and serve as a lower limit to the confidence of the solution, not as an upper limit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The confidence ellipsoid radii are computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
First the data predicted by the model (b) is computed using fitting time point i or the fitting interval, and predicted source strength from the inverse operator applied to measured data.&lt;br /&gt;
&lt;br /&gt;
ji is calculated for the time point. Then the Jabobian J can be defined as change in b when moving the dipole in the three main axes of the ellipsoid, e.g. for the first axis (depicted as x axis here):&lt;br /&gt;
&lt;br /&gt;
[[Image:confidenceEllipsoid_eq01.png]] &lt;br /&gt;
&lt;br /&gt;
where h is sufficiently small.&lt;br /&gt;
&lt;br /&gt;
Then compute the C matrix (3x3) from which radii (∆x,∆y,∆z) for a 95% confidence interval can be defined:&lt;br /&gt;
&lt;br /&gt;
[[Image:confidenceEllipsoid_eq02.png]] &lt;br /&gt;
&lt;br /&gt;
[[Image:confidenceEllipsoid_eq03.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
* Hämäläinen, M., 1987. Interpretation of neuromagnetic measurements : modeling and statistical considerations. Helsinki University of Technology.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2024-03-11T13:13:20Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Notepad.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''Documents/BESA/Research_7_1''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_7_1''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_7_1''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| [Defaults]&lt;br /&gt;
| General settings (filters, scaling, and various other settings)&lt;br /&gt;
|-&lt;br /&gt;
| [Folders]&lt;br /&gt;
| Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
|-&lt;br /&gt;
| [Electrodes]&lt;br /&gt;
| Electrode renaming&lt;br /&gt;
|-&lt;br /&gt;
| [Patterns]&lt;br /&gt;
| Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
|-&lt;br /&gt;
| [Artifacts]&lt;br /&gt;
| Settings for artifact correction&lt;br /&gt;
|-&lt;br /&gt;
| [KEYCONTROLS]&lt;br /&gt;
| Function key definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Search]&lt;br /&gt;
| Default parameters for search&lt;br /&gt;
|-&lt;br /&gt;
| [FFT]&lt;br /&gt;
| Frequency band definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Printer]&lt;br /&gt;
| Printer control&lt;br /&gt;
|-&lt;br /&gt;
| [Calibration]&lt;br /&gt;
| Calibration control&lt;br /&gt;
|-&lt;br /&gt;
| [Video]&lt;br /&gt;
| Digital video control&lt;br /&gt;
|-&lt;br /&gt;
| [Mapping]&lt;br /&gt;
| Mapping control&lt;br /&gt;
|-&lt;br /&gt;
| [Updates]&lt;br /&gt;
| Options for program updates&lt;br /&gt;
|-&lt;br /&gt;
| [Matlab]&lt;br /&gt;
| Settings for the MATLAB interface&lt;br /&gt;
|-&lt;br /&gt;
| [fMRI]&lt;br /&gt;
| Settings for the fMRI arfifact removal&lt;br /&gt;
|-&lt;br /&gt;
| [Montages]&lt;br /&gt;
| A setting for a default source montage&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10''' displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org''' montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50''' scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500''' scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500''' scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=200''' scale of MEG/GRA channels in [fT or fT/cm]&lt;br /&gt;
&lt;br /&gt;
'''MagScale=1000''' scale of MAG channels in [fT] (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100''' scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On''' baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent= '''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter=''' low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3''' time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70''' high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50''' notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off''' notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12''' band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off''' band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On''' scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath=''' defines default path for saving segments/averages. If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off''' subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
'''ParallelComputing=On''' defines if parallel computing during extensive computation should be used or not (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0''' set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant''). Valid values are within the range between 1e-8 and 1e-4. Values outside this range will be set to within the range.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button in the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''DataExport=%privateprog%Export''' The path for data to be exported for BESA Connectivity (not listed by default, but can be adjusted by the user)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
'''Windows 7, 8.1, and 10 (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_7_0''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[User]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program Files (x86)\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for OpenGL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''UseDoubleBuffering=On'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; to disable double buffering mechanism that prevents the screen from flickering while paging through data and dragging window (''this feature requires BESA Research 7.1 or higher'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: '''MapSmoothing''', the default map smoothing parameter, can be specified in the '''[Defaults]''' section.&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=64'''&lt;br /&gt;
&lt;br /&gt;
Set '''Platform=32''' if you want to use the x86t version of MATLAB.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us using our [https://besagmbh.atlassian.net/servicedesk/customer/portals support portal].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
Download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FMRI ==&lt;br /&gt;
&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
These settings define the default parameters for the fMRI artifact removal in the BESA Research (see [[BESA_Research_Artifact_Correction#fMRI_artifact_removal|fMRI artifact removal]] chapter for further details). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
[FMRI]&lt;br /&gt;
FMRIRemovalMode=1&lt;br /&gt;
TRDelay=200&lt;br /&gt;
TRLength=800&lt;br /&gt;
NumberOfAverages=21&lt;br /&gt;
fMRImoveThreshold=0.15&lt;br /&gt;
FMRITRID=8015&lt;br /&gt;
ScansToSkip=0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These values indicate:&lt;br /&gt;
&lt;br /&gt;
* '''FMRIRemovalMode''': Removal method (0: Turned off; 1: Allen et al, 2000; 2: Allen et al., 2000 Modified; 3: Moosmann et al.,2003)&lt;br /&gt;
* '''TRDelay''': Delay between marker and start of volume acquisition [ms]&lt;br /&gt;
* '''NumberOfAverages''': Number of artifact occurrence averages&lt;br /&gt;
* '''fMRImoveThreshold''': Movement threshold [mm]&lt;br /&gt;
* '''FMRITRID''': fMRI Trigger code&lt;br /&gt;
* '''ScansToSkip''': Number of scans to skip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Montage ==&lt;br /&gt;
&lt;br /&gt;
'''The section [Montage] allows to specify an initial montage that is set the first time when the source (Src), recorded (Rec), virtual (Vir) or user (Usr) montage button is pressed. If BESA.ini does not specify a montage, pressing the corresponding button opens the drop-down menu offering all the available montages for the current montage type.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Source=25s''' specifies that when the Src button in the control ribbon is pressed for the first time, the source montage &amp;quot;25s&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Recorded=Original Recording''' specifies that when the Rec button in the control ribbon is pressed for the first time, the source montage &amp;quot;Original Recording&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Virtual=Triple Banana''' specifies that when the Vir button in the control ribbon is pressed for the first time, the source montage &amp;quot;Triple Banana&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''User=CA25''' specifies that when the Usr button in the control ribbon is pressed for the first time, the source montage &amp;quot;CA25&amp;quot; will be selected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately. Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2024-03-11T12:21:27Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 12: &amp;quot;''Time-frequency analysis, Connectivity analysis, and Beamforming''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).png|700px|thumb|c|none|Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).png|700px|thumb|c|none|Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).png|700px|thumb|c|none|Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).]]&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).png|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{W}(r) = [\mathrm{L}^T(r)\mathrm{C}^{-1}\mathrm{L}(r)]^{-1}\mathrm{L}^T(r)\mathrm{C}^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF1.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathrm{C}^{-1}&amp;lt;/math&amp;gt; is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}(r,t) = \mathrm{W}(r)\mathrm{M}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF2.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals. The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}(r) = \operatorname{tr^{'}}[\mathrm{W}(r) \cdot \mathrm{C} \cdot \mathrm{W}^T(r)]&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF3.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power. In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
'''''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF4.png|500px|thumb|c|none|Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.]]&lt;br /&gt;
&lt;br /&gt;
'''''Multiple-source beamformer in the Source Analysis window'''''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png|700px|thumb|c|none|Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the beamformer image).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png|700px|thumb|c|none|Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the location (blue square in the figure) is not considered for the multiple-source beamformer.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is performed.&lt;br /&gt;
&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in the current source array.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (*.vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter [[#Regularization_of_distributed_volume_images|''Regularization of distributed volume images'']] for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:&lt;br /&gt;
&lt;br /&gt;
* '''The spatial weighting matrix V''': This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
* '''Regularization''': The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter ''Regularization of Distributed Volume Images''for more information.&lt;br /&gt;
* '''Standardization''': Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* '''Iterations''': Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter ''User-Defined Volume Tab'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''Regularization of distributed volume images'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
** One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
** Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor &amp;lt;/span&amp;gt; of dataset &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
[[File:SA 3Dimaging (42).gif|400px|thumb|c|none|Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References:'''&lt;br /&gt;
&lt;br /&gt;
Please refer to ''Iordanov et al.: LORETA With Cortical Constraint: Choosing an Adequate Surface Laplacian Operator. Front Neurosci 12, Article 746, 2018'', for more information - full article available [https://www.frontiersin.org/articles/10.3389/fnins.2018.00746/full here].&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Three methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
* '''Use the full baseline covariance matrix''': This option is only available if a previous beamformer image in the time-domain was calculated. In this case, it can be selected from the general image settings dialog tab. The baseline covariance interval is the one selected for the beamformer, and is indicated by a thin horizontal bar in the channel box.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (55).png|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300 ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (56).png|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).png|thumb|c|none|650px|MSPS image of the spike peak activity at 0 ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).png|thumb|c|none|650px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).png|700px|thumb|c|none|Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
== SESAME ==&lt;br /&gt;
&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''SESAME''' (Sequential Semi-Analytic Monte-Carlo Estimation) is a Bayesian approach for estimating sources that uses Markov-Chain Monte-Carlo method for efficient computation of the probability distribution as described in Sommariva, S., &amp;amp; Sorrentino, A. &amp;quot;Sequential Monte Carlo samplers for semi-linear inverse problems and application to magnetoencephalography.&amp;quot; Inverse Problems 30.11 (2014): 114020.&lt;br /&gt;
&lt;br /&gt;
It allows to automatically estimate simultaneously the number of dipoles, their locations and time courses requiring virtually no user input. The algorithm is divided in two blocks:&lt;br /&gt;
&lt;br /&gt;
* The first block consists of a Monte Carlo sampling algorithm that produces, with an adaptive number of iterations, a set of samples representing the posterior distribution for the number of dipoles and the dipole locations.&lt;br /&gt;
* The second block estimates the source time courses, given the number of dipoles and the dipole locations.&lt;br /&gt;
&lt;br /&gt;
The Monte Carlo algorithm in the first block works by letting a set of weighted samples evolve with each iteration. At each iteration, the samples (a multi-dipole state) approximates the n-th element of a sequence of distributions p1, …, pN, that reaches the desired posterior distribution (pN = p(x|y)). The sequence is built as pN = p(x) p(y|x) α(n), such that α(1) = 0, α(N) = 1. The actual sequence of values of alpha is determined online. Dipole moments are estimated after the number of dipoles and the dipole locations have been estimated with the Monte Carlo procedure. This continues until a steady state is reached.&lt;br /&gt;
&lt;br /&gt;
The SESAME image in BESA Research displays the final probability of source location along with an estimate for number of sources. Using the menu function &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image / Export Image As...'''&amp;lt;/span&amp;gt; you have the option to save this SESAME image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Non-uniform spatial priors for SESAME'''&lt;br /&gt;
&lt;br /&gt;
By default, SESAME uses a uniform prior distribution on the source location. However, when the Weight by Image button at the top of the variance box is pressed and SESAME image is computed, the currently active 3D image will be used as non-uniform spatial priors for the SESAME computation (the positive values in the active 3D image, scaled to the current image maximum, are used as non-uniform spatial priors). The usage of non-uniform priors can effectively increase the source localization accuracy when the prior distribution is correct (A. Viani, G. Luria and A. Sorrentino, &amp;quot;Non-uniform spatial priors for multi-dipole localization from MEG/EEG data,&amp;quot; 2022 IEEE International Conference on E-health Networking, Application &amp;amp; Services (HealthCom), Genoa, Italy, 2022, pp. 149-154, doi: 10.1109/HealthCom54947.2022.9982792).&lt;br /&gt;
To use this method, a 3D image (e.g. source image or imported fMRI image) should be displayed in the 3D window.&lt;br /&gt;
When the computation is finished, the Weight by Image button will be released.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
*'''Grid spacing:''' Due to memory and computational limitations, it is recommended to use SESAME with a grid spacing of 5 mm or more.&lt;br /&gt;
*'''Fit Interval:'''  SESAME requires a fit interval of more than 2 samples to start the computation.&lt;br /&gt;
*'''Computation time:''' Computation speed during SESAME calculation depends on the grid spacing (computation is faster with larger grid spacing) and number of channels.&lt;br /&gt;
&lt;br /&gt;
== Brain Atlas ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
Brain atlas is a priori data that can be applied over any discrete or distributed source image displayed in the 3D window. It is a reference value that strongly depends on the selected brain atlas and should not be used as medical reference since individual brains may differ from the brain atlas. The display settings can be adjusted in 3D Window Tab.&lt;br /&gt;
&lt;br /&gt;
[[Image:BrainAtlas1.png|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Brain Atlases'''&lt;br /&gt;
&lt;br /&gt;
In BESA Research the atlases listed below are provided. '''BESA is not the author of the atlases; please cite the appropriate publications if you use any of the atlases in your publication.'''&lt;br /&gt;
&lt;br /&gt;
[http://atlas.brainnetome.org/bnatlas.html '''Brainnetome'''] &amp;lt;br&amp;gt;&lt;br /&gt;
This is one of the most modern brain probabilistic atlas where structural, functional, and connectivity information was used to perform cortical parcellation. It was introduce by Fan and colleagues (2016), and is still work in progress. The atlas was created using data from 40 healthy adults taking part in the Human Connectome Project. In March 2018, the atlas consists of 246 structures labeled independently for each hemisphere. In BESA we provide the max probability map with labeling. Please visit the Brainnetome webpage to see more details related to the indicated brain regions (i.e. behavioral domains, paradigm classes and regions connectivity).&lt;br /&gt;
&lt;br /&gt;
'''AAL''' &amp;lt;br&amp;gt;&lt;br /&gt;
Automated Anatomical Labeling atlas was created in 2002 by Tzourio-Mazoyer and collegues (2002). It is the mostly used atlas nowadays. The atlas is based on the averaged brain of one subject (young male) who was scanned 27 times. The atlas resolution is 1 mm isometric. The brain sulci were drawn manually on every 2mm slice and then brain regions were automatically assigned. The atlas consists of 116 regions which are asymmetrical between hemispheres. The atlas is implemented as in the [https://www.fil.ion.ucl.ac.uk/spm/ '''SPM12'''] toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Brodmann''' &amp;lt;br&amp;gt;&lt;br /&gt;
The Brodmann map was created by Brodmann (1909). The brain regions were differentiated by cytoarchitecture of each cortical area using the Nissi method of cell staining. The digitalization of the original Brodmann map was performed by Damasio and Damasio (1989). The digitalized atlas consists of 44 fields that are symmetric between hemispheres. BESA used the atlas implementation as in Chris Roden’s [https://people.cas.sc.edu/rorden/mricro/index.html '''MRICro'''] software.&lt;br /&gt;
&lt;br /&gt;
'''AAL2015''' &amp;lt;br&amp;gt;&lt;br /&gt;
Automated Anatomical Labeling revision 2015. This is the updated AAL atlas. In comparison to the previous version (AAL) mainly the frontal lobe shows a higher degree of parcellation (Rolls, Joliot, and Tzourio-Mazoyer 2015). The atlas is implemented as in the [https://www.fil.ion.ucl.ac.uk/spm/ '''SPM12'''] toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Talairach''' &amp;lt;br&amp;gt;&lt;br /&gt;
Atlas was created in 1988 by Talairach and Tournoux (1988) and it is based on the post mortem brain slices of a 60 year old right handed European female. It was created by drawing and matching regions with the Brodmann map. The atlas is available at 5 tissue levels, however we used only the volumetric gyrus level as it is the most known in neuroscience and is the most appropriate for EEG. The atlas consists of 55 regions that are symmetric between hemispheres. The native resolution of the atlas was 0.43x0.43x2-5 mm. Please note that the poor resolution in Z direction is a direct consequence atlas definition, and since it is a post-mortem atlas it will not correctly match the brain template&lt;br /&gt;
(noticeable mainly on brain edges). The atlas digitalization was performed by Lancaster and colleagues (2000) resulting in a “golden standard” for neuroscience. The atlas was first implemented in a software called [http://www.talairach.org/daemon.html '''talairach daemon'''].&lt;br /&gt;
&lt;br /&gt;
'''Yeo7 and Yeo17''' &amp;lt;br&amp;gt;&lt;br /&gt;
Yeo7 and Yeo17 are the resting state functional connectivity atlases created by Yeo et al. (2011). For atlas creation 1000 subjects, coregistered using surface-based alignment were used. Two versions of parcellation were used resulting for the 7 and 17 networks (Yeo7 and Yeo17 atlas respectively). In the original publication atlases for two different levels of brain structure coverage were prepared: neocortex and liberal. In BESA products, only one of them (liberal) is available. Note that in comparison to the other atlases, here networks are reflected, rather than the individual brain structures. These atlases are in line with [[BESA_Research_Montage_Editor#Standard_Source_Montage_-_Resting_State_Montages | Resting State Source Montages]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Visualization modes'''&lt;br /&gt;
&lt;br /&gt;
'''Just Labels''' &amp;lt;br&amp;gt;&lt;br /&gt;
Displayed are crosshair coordinates (Talairach or MNI), the currently used brain atlas and the region name where the crosshair is placed. No atlas overlay will be visible on the 3D image.&lt;br /&gt;
&lt;br /&gt;
'''brainCOLOR''' &amp;lt;br&amp;gt;&lt;br /&gt;
All information is displayed as in “Just Labels” mode but also the atlas is visible as an overlay over the MRI. The coloring is performed using the algorithm introduced by Klein and colleagues (Klein et al. 2010). With this method of coloring the regions which are part of the same lobe are colored in a similar color but with different color shade. The shade is computed by the algorithm to make these regions visually differentiable from each other as much as possible.&lt;br /&gt;
&lt;br /&gt;
'''Individual Color''' &amp;lt;br&amp;gt;&lt;br /&gt;
In this mode the native brain atlas color is used if provided by the authors of the brain atlas (i.e. Yeo7). Where this was not available BESA autogenerated colors for the atlas using an approach similar to political map coloring. This approach aims to differentiate most regions that are adjacent to each other and no presumptions on lobes is applied.&lt;br /&gt;
&lt;br /&gt;
'''Contour''' &amp;lt;br&amp;gt;&lt;br /&gt;
Only region contours (borders between atlas regions) are drawn with blue color. This is the default mode in BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
* Brodmann, Korbinian. 1909. Vergleichende Lokalisationslehre Der Großhirnrinde. Leipzig: Barth. https://www.livivo.de/doc/437605.&lt;br /&gt;
* Damasio, Hanna, and Antonio R. Damasio. 1989. Lesion Analysis in Neuropsychology. Oxford University Press, USA.&lt;br /&gt;
* Fan, Lingzhong, Hai Li, Junjie Zhuo, Yu Zhang, Jiaojian Wang, Liangfu Chen, Zhengyi Yang, et al. 2016. “The Human Brainnetome Atlas: A New Brain Atlas Based on Connectional Architecture.” Cerebral Cortex 26 (8): 3508–26. https://doi.org/10.1093/cercor/bhw157.&lt;br /&gt;
* Klein, Arno, Andrew Worth, Jason Tourville, Bennett Landman, Tito Dal Canton, Satrajit S. Ghosh, and David Shattuck. 2010. “An Interactive Tool for Constructing Optimal Brain Colormaps.” https://mindboggle.info/braincolor/colormaps/index.html.&lt;br /&gt;
* Lancaster, Jack L., Marty G. Woldorff, Lawrence M. Parsons, Mario Liotti, Catarina S. Freitas, Lacy Rainey, Peter V. Kochunov, Dan Nickerson, Shawn A. Mikiten, and Peter T. Fox. 2000. “Automated Talairach Atlas Labels for Functional Brain Mapping.” Human Brain Mapping 10 (3): 120–131.&lt;br /&gt;
*Rolls, Edmund T., Marc Joliot, and Nathalie Tzourio-Mazoyer. 2015. “Implementation of a New Parcellation of the Orbitofrontal Cortex in the Automated Anatomical Labeling Atlas.” NeuroImage 122 (November): 1–5. https://doi.org/10.1016/j.neuroimage.2015.07.075.&lt;br /&gt;
* Talairach, J, and P Tournoux. 1988. Co-Planar Stereotaxic Atlas of the Human Brain. 3-Dimensional Proportional System: An Approach to Cerebral Imaging. Thieme.&lt;br /&gt;
*Thomas Yeo, B. T., F. M. Krienen, J. Sepulcre, M. R. Sabuncu, D. Lashkari, M. Hollinshead, J. L. Roffman, et al. 2011. “The Organization of the Human Cerebral Cortex Estimated by Intrinsic Functional Connectivity.” Journal of Neurophysiology 106 (3): 1125–65. https://doi.org/10.1152/jn.00338.2011.&lt;br /&gt;
* Tzourio-Mazoyer, N., B. Landeau, D. Papathanassiou, F. Crivello, O. Etard, N. Delcroix, B. Mazoyer, and M. Joliot. 2002. “Automated Anatomical Labeling of Activations in SPM Using a Macroscopic Anatomical Parcellation of the MNI MRI Single-Subject Brain.” NeuroImage 15 (1): 273–89. https://doi.org/10.1006/nimg.2001.0978.&lt;br /&gt;
&lt;br /&gt;
== Slice View ==&lt;br /&gt;
&lt;br /&gt;
''This feature requires BESA Research 7.1 or higher.''&lt;br /&gt;
&lt;br /&gt;
A convenient way to review MRI data and export it in graphical form is a multi-slice view. To enable multi-slice view press the toggle multiple view button until the slice view is shown in the 3D window.&lt;br /&gt;
&lt;br /&gt;
[[Image:SliceView1.png|600px]]&lt;br /&gt;
&lt;br /&gt;
In this view discrete sources, [[Source_Analysis_3D_Imaging#Overview | distributed sources]] and [[Source_Analysis_3D_Imaging#Brain Atlas| brain atlas]] can be also be overlayed. The display matrix can be adjusted by slice view controls that are available in the 3D Window tab of the Preferences Dialog Box. One of the following slicing direction can be selected: Transverse, Coronal, Sagittal by pressing the appropriate button in the 3D window toolbar.&lt;br /&gt;
&lt;br /&gt;
By adjusting First slice and Last slice sliders, the span of the volume that will be displayed can be adjusted. The interval between slices can be adjusted by changing the Spacing slider value. The layout of slices will be automatically adjusted to fill the full space of the main window. All values in the sliders are given in mm.&lt;br /&gt;
&lt;br /&gt;
'''Note''': The last slice value will be adjusted to the closest possible number matching the given first slice and spacing value. During multi-slice view the cursor is disabled and no&lt;br /&gt;
atlas information is provided.&lt;br /&gt;
&lt;br /&gt;
== Glassbrain ==&lt;br /&gt;
&lt;br /&gt;
''This feature requires BESA Research 7.1 or higher.''&lt;br /&gt;
&lt;br /&gt;
[[Image:Glassbrain.png|600px]]&lt;br /&gt;
&lt;br /&gt;
The glass brain can be enabled or disabled in one of the following ways:&lt;br /&gt;
&lt;br /&gt;
* by pressing the button [[File:Buton GlassBrain.png]] in the toolbar,&lt;br /&gt;
* by using the shortcut SHIFT-G or&lt;br /&gt;
* by checking the checkbox in Preferences, 3D Display tab.&lt;br /&gt;
&lt;br /&gt;
The transparency value of the glass brain can be adjusted in one of the following ways:&lt;br /&gt;
&lt;br /&gt;
* by a slider/edit box in Preferences, 3D Display tab or&lt;br /&gt;
* by using the keyboard shortcut SHIFT-UP (to increase transparency by 10%) or SHIFT-DOWN (to decrease transparency by 10%).&lt;br /&gt;
&lt;br /&gt;
Note that If a distributed solution is displayed together with the glass brain, a notification is displayed in the left bottom corner of 3D window to prevent misconception of the glass brain as a cortical image:&lt;br /&gt;
&lt;br /&gt;
“Volume-based image only&amp;quot;, which means that the results of distributed source analysis images are visualized only for the current MRI slice, and are not projected to the displayed surface. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2024-03-11T11:44:17Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Notepad.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_7_0''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| [Defaults]&lt;br /&gt;
| General settings (filters, scaling, and various other settings)&lt;br /&gt;
|-&lt;br /&gt;
| [Folders]&lt;br /&gt;
| Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
|-&lt;br /&gt;
| [Electrodes]&lt;br /&gt;
| Electrode renaming&lt;br /&gt;
|-&lt;br /&gt;
| [Patterns]&lt;br /&gt;
| Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
|-&lt;br /&gt;
| [Artifacts]&lt;br /&gt;
| Settings for artifact correction&lt;br /&gt;
|-&lt;br /&gt;
| [KEYCONTROLS]&lt;br /&gt;
| Function key definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Search]&lt;br /&gt;
| Default parameters for search&lt;br /&gt;
|-&lt;br /&gt;
| [FFT]&lt;br /&gt;
| Frequency band definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Printer]&lt;br /&gt;
| Printer control&lt;br /&gt;
|-&lt;br /&gt;
| [Calibration]&lt;br /&gt;
| Calibration control&lt;br /&gt;
|-&lt;br /&gt;
| [Video]&lt;br /&gt;
| Digital video control&lt;br /&gt;
|-&lt;br /&gt;
| [Mapping]&lt;br /&gt;
| Mapping control&lt;br /&gt;
|-&lt;br /&gt;
| [Updates]&lt;br /&gt;
| Options for program updates&lt;br /&gt;
|-&lt;br /&gt;
| [Matlab]&lt;br /&gt;
| Settings for the MATLAB interface&lt;br /&gt;
|-&lt;br /&gt;
| [fMRI]&lt;br /&gt;
| Settings for the fMRI arfifact removal&lt;br /&gt;
|-&lt;br /&gt;
| [Montages]&lt;br /&gt;
| A setting for a default source montage&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10''' displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org''' montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50''' scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500''' scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500''' scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=200''' scale of MEG/GRA channels in [fT or fT/cm]&lt;br /&gt;
&lt;br /&gt;
'''MagScale=1000''' scale of MAG channels in [fT] (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100''' scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On''' baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent= '''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter=''' low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3''' time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70''' high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50''' notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off''' notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12''' band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off''' band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On''' scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath=''' defines default path for saving segments/averages. If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off''' subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
'''ParallelComputing=On''' defines if parallel computing during extensive computation should be used or not (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0''' set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant''). Valid values are within the range between 1e-8 and 1e-4. Values outside this range will be set to within the range.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button in the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''DataExport=%privateprog%Export''' The path for data to be exported for BESA Connectivity (not listed by default, but can be adjusted by the user)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
'''Windows 7, 8.1, and 10 (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_7_0''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[User]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program Files (x86)\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for OpenGL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''UseDoubleBuffering=On'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; to disable double buffering mechanism that prevents the screen from flickering while paging through data and dragging window (''this feature requires BESA Research 7.1 or higher'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: '''MapSmoothing''', the default map smoothing parameter, can be specified in the '''[Defaults]''' section.&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=64'''&lt;br /&gt;
&lt;br /&gt;
Set '''Platform=32''' if you want to use the x86t version of MATLAB.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us using our [https://besagmbh.atlassian.net/servicedesk/customer/portals support portal].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
Download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FMRI ==&lt;br /&gt;
&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
These settings define the default parameters for the fMRI artifact removal in the BESA Research (see [[BESA_Research_Artifact_Correction#fMRI_artifact_removal|fMRI artifact removal]] chapter for further details). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
[FMRI]&lt;br /&gt;
FMRIRemovalMode=1&lt;br /&gt;
TRDelay=200&lt;br /&gt;
TRLength=800&lt;br /&gt;
NumberOfAverages=21&lt;br /&gt;
fMRImoveThreshold=0.15&lt;br /&gt;
FMRITRID=8015&lt;br /&gt;
ScansToSkip=0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These values indicate:&lt;br /&gt;
&lt;br /&gt;
* '''FMRIRemovalMode''': Removal method (0: Turned off; 1: Allen et al, 2000; 2: Allen et al., 2000 Modified; 3: Moosmann et al.,2003)&lt;br /&gt;
* '''TRDelay''': Delay between marker and start of volume acquisition [ms]&lt;br /&gt;
* '''NumberOfAverages''': Number of artifact occurrence averages&lt;br /&gt;
* '''fMRImoveThreshold''': Movement threshold [mm]&lt;br /&gt;
* '''FMRITRID''': fMRI Trigger code&lt;br /&gt;
* '''ScansToSkip''': Number of scans to skip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Montage ==&lt;br /&gt;
&lt;br /&gt;
'''The section [Montage] allows to specify an initial montage that is set the first time when the source (Src), recorded (Rec), virtual (Vir) or user (Usr) montage button is pressed. If BESA.ini does not specify a montage, pressing the corresponding button opens the drop-down menu offering all the available montages for the current montage type.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Source=25s''' specifies that when the Src button in the control ribbon is pressed for the first time, the source montage &amp;quot;25s&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Recorded=Original Recording''' specifies that when the Rec button in the control ribbon is pressed for the first time, the source montage &amp;quot;Original Recording&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Virtual=Triple Banana''' specifies that when the Vir button in the control ribbon is pressed for the first time, the source montage &amp;quot;Triple Banana&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''User=CA25''' specifies that when the Usr button in the control ribbon is pressed for the first time, the source montage &amp;quot;CA25&amp;quot; will be selected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately. Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2024-03-11T11:32:18Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Notepad.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_7_0''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| [Defaults]&lt;br /&gt;
| General settings (filters, scaling, and various other settings)&lt;br /&gt;
|-&lt;br /&gt;
| [Folders]&lt;br /&gt;
| Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
|-&lt;br /&gt;
| [Electrodes]&lt;br /&gt;
| Electrode renaming&lt;br /&gt;
|-&lt;br /&gt;
| [Patterns]&lt;br /&gt;
| Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
|-&lt;br /&gt;
| [Artifacts]&lt;br /&gt;
| Settings for artifact correction&lt;br /&gt;
|-&lt;br /&gt;
| [KEYCONTROLS]&lt;br /&gt;
| Function key definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Search]&lt;br /&gt;
| Default parameters for search&lt;br /&gt;
|-&lt;br /&gt;
| [FFT]&lt;br /&gt;
| Frequency band definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Printer]&lt;br /&gt;
| Printer control&lt;br /&gt;
|-&lt;br /&gt;
| [Calibration]&lt;br /&gt;
| Calibration control&lt;br /&gt;
|-&lt;br /&gt;
| [Video]&lt;br /&gt;
| Digital video control&lt;br /&gt;
|-&lt;br /&gt;
| [Mapping]&lt;br /&gt;
| Mapping control&lt;br /&gt;
|-&lt;br /&gt;
| [Updates]&lt;br /&gt;
| Options for program updates&lt;br /&gt;
|-&lt;br /&gt;
| [Matlab]&lt;br /&gt;
| Settings for the MATLAB interface&lt;br /&gt;
|-&lt;br /&gt;
| [fMRI]&lt;br /&gt;
| Settings for the fMRI arfifact removal&lt;br /&gt;
|-&lt;br /&gt;
| [Montages]&lt;br /&gt;
| A setting for a default source montage&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10''' displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org''' montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50''' scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500''' scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500''' scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=200''' scale of MEG/GRA channels in [fT or fT/cm]&lt;br /&gt;
&lt;br /&gt;
'''MagScale=1000''' scale of MAG channels in [fT] (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100''' scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On''' baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent= '''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter=''' low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3''' time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70''' high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50''' notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off''' notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12''' band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off''' band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On''' scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath=''' defines default path for saving segments/averages. If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off''' subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
'''ParallelComputing=On''' defines if parallel computing during extensive computation should be used or not (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0''' set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant''). Valid values are within the range between 1e-8 and 1e-4. Values outside this range will be set to within the range.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button in the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''DataExport=%privateprog%Export''' The path for data to be exported for BESA Connectivity (not listed by default, but can be adjusted by the user)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
'''Windows 7, 8.1, and 10 (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_7_0''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[User]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program Files (x86)\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for OpenGL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''UseDoubleBuffering=On'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; to disable double buffering mechanism that prevents the screen from flickering while paging through data and dragging window (''this feature requires BESA Research 7.1 or higher'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: '''MapSmoothing''', the default map smoothing parameter, can be specified in the '''[Defaults]''' section.&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=64'''&lt;br /&gt;
&lt;br /&gt;
Set '''Platform=32''' if you want to use the x86t version of MATLAB.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FMRI ==&lt;br /&gt;
&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
These settings define the default parameters for the fMRI artifact removal in the BESA Research (see [[BESA_Research_Artifact_Correction#fMRI_artifact_removal|fMRI artifact removal]] chapter for further details). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
[FMRI]&lt;br /&gt;
FMRIRemovalMode=1&lt;br /&gt;
TRDelay=200&lt;br /&gt;
TRLength=800&lt;br /&gt;
NumberOfAverages=21&lt;br /&gt;
fMRImoveThreshold=0.15&lt;br /&gt;
FMRITRID=8015&lt;br /&gt;
ScansToSkip=0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These values indicate:&lt;br /&gt;
&lt;br /&gt;
* '''FMRIRemovalMode''': Removal method (0: Turned off; 1: Allen et al, 2000; 2: Allen et al., 2000 Modified; 3: Moosmann et al.,2003)&lt;br /&gt;
* '''TRDelay''': Delay between marker and start of volume acquisition [ms]&lt;br /&gt;
* '''NumberOfAverages''': Number of artifact occurrence averages&lt;br /&gt;
* '''fMRImoveThreshold''': Movement threshold [mm]&lt;br /&gt;
* '''FMRITRID''': fMRI Trigger code&lt;br /&gt;
* '''ScansToSkip''': Number of scans to skip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Montage ==&lt;br /&gt;
&lt;br /&gt;
'''The section [Montage] allows to specify an initial montage that is set the first time when the source (Src), recorded (Rec), virtual (Vir) or user (Usr) montage button is pressed. If BESA.ini does not specify a montage, pressing the corresponding button opens the drop-down menu offering all the available montages for the current montage type.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Source=25s''' specifies that when the Src button in the control ribbon is pressed for the first time, the source montage &amp;quot;25s&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Recorded=Original Recording''' specifies that when the Rec button in the control ribbon is pressed for the first time, the source montage &amp;quot;Original Recording&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Virtual=Triple Banana''' specifies that when the Vir button in the control ribbon is pressed for the first time, the source montage &amp;quot;Triple Banana&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''User=CA25''' specifies that when the Usr button in the control ribbon is pressed for the first time, the source montage &amp;quot;CA25&amp;quot; will be selected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately. Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2024-03-11T11:30:30Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Notepad.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_7_0''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| [Defaults]&lt;br /&gt;
| General settings (filters, scaling, and various other settings)&lt;br /&gt;
|-&lt;br /&gt;
| [Folders]&lt;br /&gt;
| Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
|-&lt;br /&gt;
| [Electrodes]&lt;br /&gt;
| Electrode renaming&lt;br /&gt;
|-&lt;br /&gt;
| [Patterns]&lt;br /&gt;
| Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
|-&lt;br /&gt;
| [Artifacts]&lt;br /&gt;
| Settings for artifact correction&lt;br /&gt;
|-&lt;br /&gt;
| [KEYCONTROLS]&lt;br /&gt;
| Function key definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Search]&lt;br /&gt;
| Default parameters for search&lt;br /&gt;
|-&lt;br /&gt;
| [FFT]&lt;br /&gt;
| Frequency band definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Printer]&lt;br /&gt;
| Printer control&lt;br /&gt;
|-&lt;br /&gt;
| [Calibration]&lt;br /&gt;
| Calibration control&lt;br /&gt;
|-&lt;br /&gt;
| [Video]&lt;br /&gt;
| Digital video control&lt;br /&gt;
|-&lt;br /&gt;
| [Mapping]&lt;br /&gt;
| Mapping control&lt;br /&gt;
|-&lt;br /&gt;
| [Updates]&lt;br /&gt;
| Options for program updates&lt;br /&gt;
|-&lt;br /&gt;
| [Matlab]&lt;br /&gt;
| Settings for the MATLAB interface&lt;br /&gt;
|-&lt;br /&gt;
| [fMRI]&lt;br /&gt;
| Settings for the fMRI arfifact removal&lt;br /&gt;
|-&lt;br /&gt;
| [Montages]&lt;br /&gt;
| A setting for a default source montage&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10''' displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org''' montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50''' scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500''' scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500''' scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=200''' scale of MEG/GRA channels in [fT or fT/cm]&lt;br /&gt;
&lt;br /&gt;
'''MagScale=1000''' scale of MAG channels in [fT] (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100''' scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On''' baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent= '''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter=''' low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3''' time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70''' high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50''' notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off''' notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12''' band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off''' band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On''' scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath=''' defines default path for saving segments/averages. If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off''' subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
'''ParallelComputing=On''' defines if parallel computing during extensive computation should be used or not (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0''' set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant''). Valid values are within the range between 1e-8 and 1e-4. Values outside this range will be set to within the range.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button in the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''DataExport=%privateprog%Export''' The path for data to be exported for BESA Connectivity (not listed by default, but can be adjusted by the user)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
'''Windows 7, 8.1, and 10 (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_7_0''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[User]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program Files (x86)\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for OpenGL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''UseDoubleBuffering=On'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; to disable double buffering mechanism that prevents the screen from flickering while paging through data and dragging window (''this feature requires BESA Research 7.1 or higher'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: '''MapSmoothing''', the default map smoothing parameter, can be specified in the '''[Defaults]''' section.&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=64'''&lt;br /&gt;
&lt;br /&gt;
Set '''Platform=32''' if you want to use the x86t version of MATLAB.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FMRI ==&lt;br /&gt;
&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
These settings define the default parameters for the fMRI artifact removal in the BESA Research (see [[BESA_Research_Artifact_Correction#fMRI_artifact_removal|fMRI artifact removal]] chapter for further details). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
[FMRI]&lt;br /&gt;
FMRIRemovalMode=1&lt;br /&gt;
TRDelay=200&lt;br /&gt;
TRLength=800&lt;br /&gt;
NumberOfAverages=21&lt;br /&gt;
fMRImoveThreshold=0.15&lt;br /&gt;
FMRITRID=8015&lt;br /&gt;
ScansToSkip=0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These values indicate:&lt;br /&gt;
&lt;br /&gt;
* '''FMRIRemovalMode''': Removal method (0: Turned off; 1: Allen et al, 2000; 2: Allen et al., 2000 Modified; 3: Moosmann et al.,2003)&lt;br /&gt;
* '''TRDelay''': Delay between marker and start of volume acquisition [ms]&lt;br /&gt;
* '''NumberOfAverages''': Number of artifact occurrence averages&lt;br /&gt;
* '''fMRImoveThreshold''': Movement threshold [mm]&lt;br /&gt;
* '''FMRITRID''': fMRI Trigger code&lt;br /&gt;
* '''ScansToSkip''': Number of scans to skip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Montage ==&lt;br /&gt;
&lt;br /&gt;
'''This section allows to specify an initial montage that is set the first time when the source (Src), recorded (Rec), virtual (Vir) or user (Usr) montage button is pressed. If BESA.ini does not specify a montage, pressing the corresponding button opens the drop-down menu offering all the available montages for the current montage type.'''&lt;br /&gt;
&lt;br /&gt;
'''Source=25s''' specifies that when the Src button in the control ribbon is pressed for the first time, the source montage &amp;quot;25s&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Recorded=Original Recording''' specifies that when the Rec button in the control ribbon is pressed for the first time, the source montage &amp;quot;Original Recording&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Virtual=Triple Banana''' specifies that when the Vir button in the control ribbon is pressed for the first time, the source montage &amp;quot;Triple Banana&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''User=CA25''' specifies that when the Usr button in the control ribbon is pressed for the first time, the source montage &amp;quot;CA25&amp;quot; will be selected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately. Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini</id>
		<title>The Initialization File: BESA.ini</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=The_Initialization_File:_BESA.ini"/>
				<updated>2024-03-11T11:26:16Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
'''BESA.ini File'''&lt;br /&gt;
&lt;br /&gt;
BESA Research uses settings provided in the initialization file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; whenever BESA Research is started or a new file is opened for the first time. The format of this file conforms with standard initialization files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.ini&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) of Windows. You may change the settings in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; using &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;Notepad.exe&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt; from the ACCESSORIES group, or other plain text editors to adapt BESA Research to '''your own everyday needs'''. The default settings provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; will be used by BESA Research whenever BESA Research or the launch program is started. It is advised that you make a backup copy of &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; before you change the default settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Location of BESA.ini'''&lt;br /&gt;
&lt;br /&gt;
You can place &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; at three possible locations:&lt;br /&gt;
&lt;br /&gt;
# '''Private''': each user on a PC should have his/her own private settings. This is normally in ''Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Public''': all users should use one setting, but they can edit &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; to change the settings. This is normally in ''Public Documents/BESA/Research_7_0''&lt;br /&gt;
# '''Administrator''': the PC administrator determines the settings. This is normally in ''C:Program Files(x86)/BESA/Research_7_0''&lt;br /&gt;
&lt;br /&gt;
The actual folder names depend on the operating system and the system language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;When BESA starts, it first looks for the '''administrator''' version of '''BESA.ini'''. If this is not found, it looks for the '''private''' version. If this is not found, it looks for the '''public''' version. If this is not found, internal default values are used.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''There are 13 general sections, and several reader-specific sections:'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| [Defaults]&lt;br /&gt;
| General settings (filters, scaling, and various other settings)&lt;br /&gt;
|-&lt;br /&gt;
| [Folders]&lt;br /&gt;
| Folders used by BESA Research (Examples, Montages, Scripts, Settings,...)&lt;br /&gt;
|-&lt;br /&gt;
| [Electrodes]&lt;br /&gt;
| Electrode renaming&lt;br /&gt;
|-&lt;br /&gt;
| [Patterns]&lt;br /&gt;
| Rename patterns in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tags'''&amp;lt;/span&amp;gt; menu&lt;br /&gt;
|-&lt;br /&gt;
| [Artifacts]&lt;br /&gt;
| Settings for artifact correction&lt;br /&gt;
|-&lt;br /&gt;
| [KEYCONTROLS]&lt;br /&gt;
| Function key definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Search]&lt;br /&gt;
| Default parameters for search&lt;br /&gt;
|-&lt;br /&gt;
| [FFT]&lt;br /&gt;
| Frequency band definitions&lt;br /&gt;
|-&lt;br /&gt;
| [Printer]&lt;br /&gt;
| Printer control&lt;br /&gt;
|-&lt;br /&gt;
| [Calibration]&lt;br /&gt;
| Calibration control&lt;br /&gt;
|-&lt;br /&gt;
| [Video]&lt;br /&gt;
| Digital video control&lt;br /&gt;
|-&lt;br /&gt;
| [Mapping]&lt;br /&gt;
| Mapping control&lt;br /&gt;
|-&lt;br /&gt;
| [Updates]&lt;br /&gt;
| Options for program updates&lt;br /&gt;
|-&lt;br /&gt;
| [Matlab]&lt;br /&gt;
| Settings for the MATLAB interface&lt;br /&gt;
|-&lt;br /&gt;
| [fMRI]&lt;br /&gt;
| Settings for the fMRI arfifact removal&lt;br /&gt;
|-&lt;br /&gt;
| [Montages]&lt;br /&gt;
| A setting for a default source montage&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Reader-specific settings'''&lt;br /&gt;
&lt;br /&gt;
[BrainLab]&lt;br /&gt;
&lt;br /&gt;
[Bio-Logic]&lt;br /&gt;
&lt;br /&gt;
[EDF+] [BDF] [Trackit]&lt;br /&gt;
&lt;br /&gt;
[EGI]&lt;br /&gt;
&lt;br /&gt;
[Harmonie]&lt;br /&gt;
&lt;br /&gt;
[NeuroScan Keys]&lt;br /&gt;
&lt;br /&gt;
[NKT2100]&lt;br /&gt;
&lt;br /&gt;
[Vangard]&lt;br /&gt;
&lt;br /&gt;
[XLTEK]&lt;br /&gt;
&lt;br /&gt;
== Defaults ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Default settings provided for section [Defaults]:'''&lt;br /&gt;
&lt;br /&gt;
'''DatabaseAllowLocalFiles=Yes''' (If set to &amp;quot;Yes&amp;quot;, BESA Research will write filenames &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.ftg'''&amp;lt;/span&amp;gt;&amp;quot; and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''datafilename.fst&amp;quot;'''&amp;lt;/span&amp;gt; to the data folder, saving current file tag and display settings there. If set to &amp;quot;No&amp;quot;, these files are only written to the database. If set to &amp;quot;Yes&amp;quot;, you can copy these files along with the data to a new folder, and display settings and tags will be preserved.)&lt;br /&gt;
&lt;br /&gt;
'''DataBuffering=Off''' (If set to &amp;quot;On&amp;quot;, an internal buffer of length 180 s of data is kept to speed up paging). This can speed up paging, particularly when the data are in a network folder.&lt;br /&gt;
&lt;br /&gt;
'''DisplayedTime=10''' displayed time window [s] on the screen&lt;br /&gt;
&lt;br /&gt;
'''Montage=Org''' montage used when opening a new file&lt;br /&gt;
&lt;br /&gt;
'''ScpScale=50''' scale of scalp channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''PgrScale=500''' scale of polygraphic channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''IcrScale=500''' scale of intracranial channels in [mV]&lt;br /&gt;
&lt;br /&gt;
'''MegScale=200''' scale of MEG/GRA channels in [fT or fT/cm]&lt;br /&gt;
&lt;br /&gt;
'''MagScale=1000''' scale of MAG channels in [fT] (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''SrcScale=100''' scale of source of source montages&lt;br /&gt;
&lt;br /&gt;
'''BaselineCorrection=On''' baseline correction, do not switch off in AC systems&lt;br /&gt;
&lt;br /&gt;
'''ClippingPercent= '''set from 100 to 200 if you want to clip artifacts in displayed EEG (not used if empty or 0)&lt;br /&gt;
&lt;br /&gt;
'''LowFilter=''' low filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''TimeConstant=0.3''' time constant for low filter cutoff frequency [sec] (fixed forward filter, 0.3 sec is equivalent to 0.53 Hz)&lt;br /&gt;
&lt;br /&gt;
'''HighFilter=70''' high filter cutoff frequency [Hz] (variable filter)&lt;br /&gt;
&lt;br /&gt;
'''NotchFilter=50''' notch filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''NotchFilterStatus=Off''' notch filter is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''BandFilter=12''' band pass filter center frequency [Hz]&lt;br /&gt;
&lt;br /&gt;
'''BandFilterStatus=Off''' band pass is off, set=On if you want to use as default&lt;br /&gt;
&lt;br /&gt;
'''AdditionalChannelFile=''' defines the full path and name of an additional channels montage file, e.g. &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''C:\Program Files\BESA\Research_x\Montages\AdditionalChannels\EKG.sel'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''ColoredWaveforms=On''' scalp waveforms are (not) colored according to region&lt;br /&gt;
&lt;br /&gt;
'''WriteSegmentPath=''' defines default path for saving segments/averages. If blank, the path of the current data file is used.&lt;br /&gt;
&lt;br /&gt;
'''ShowSubjectInfo=Off''' subject info will (not) be displayed.&lt;br /&gt;
&lt;br /&gt;
'''ParallelComputing=On''' defines if parallel computing during extensive computation should be used or not (''this feature requires BESA Research 7.1 or higher'')&lt;br /&gt;
&lt;br /&gt;
'''MapSmoothing=0''' set a non-zero value to specify a default map smoothing parameter (normally specified in ''Options/Mapping/Spline Interpolation Smoothing Constant''). Valid values are within the range between 1e-8 and 1e-4. Values outside this range will be set to within the range.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following optional parameters are not defined as default and can be set manually in&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''' BESA.ini'''&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
'''TextEditor=&amp;quot;Notepad.exe&amp;quot;''' defines the path to your preferred text editor. This will be used when you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit'''&amp;lt;/span&amp;gt; button in the ''Load Coordinate Files dialog box''.&lt;br /&gt;
&lt;br /&gt;
'''NeuroScanDataNumberOfBits=32''' defines the format of NeuroScan data files ('16' for 16-bit, '32' for 32-bit). If this variable is not specified, BESA uses a heuristic to (try to) decide which of the two data formats is used. This variable overrides the heuristic. If you want to specify the NeuroScan data format for specific files, create a file, named &amp;quot;16bit&amp;quot; or &amp;quot;32bit&amp;quot;, and place it in the data folder.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesForNNChannels=25''' Scale waveforms as if a fixed number of channels were displayed in the window (here: 25). A minimum of 10 channels can be used for the scaling. This parameter is superseded if the parameter &amp;quot;''ScaleAmplitudesFixedPixelHeight&amp;quot;'' is specified.&lt;br /&gt;
&lt;br /&gt;
'''ScaleAmplitudesFixedPixelHeight=70''' Set the scale bar for amplitudes to a fixed pixel height (here: 70). If this parameter is set in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file, it supersedes the parameter &amp;quot;''ScaleAmplitudesForNNChannels''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
Check the Menu descriptions for the various definitions of filters, montages etc. For montage preselection, use the labels as visible on the montage push-buttons.&lt;br /&gt;
&lt;br /&gt;
The additional channels file should contain all polygraphic channels (e.g. EKG, EOG, respiratory) that you want to view regularly along with the scalp channels. The entry AdditionalChannelFile must specify the full path pointing to the location of additional channel files (recommended: ''Montages\AdditionalChannels''). If no drive is specified, the installation drive of BESA is used.&lt;br /&gt;
&lt;br /&gt;
If BaselineCorrection is set to 'On', before displaying a screen of data, BESA subtracts for each channel the mean over its displayed time points. This optimizes viewing, because it ensures that the vertical position of each channel is not shifted upward or downward from the channel label at the left of the screen. There are some cases in which you will not want baseline correction, i.e. when the DC level in the data is already correctly defined. This is usually the case, for instance, when reading in files that have been processed by BESA. In this case, BaselineCorrection should be set to 'Off', because otherwise maps and source montage displays may be distorted.&lt;br /&gt;
&lt;br /&gt;
== Folders ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The [Folders] section defines where BESA Research places its files. In versions 5.1 and earlier, files were located in various subfolders of the program folder. This led to problems if the user did not have administrator rights, e.g. to create or write to a file. If you wish, you can also specify paths in the [Folders] section to use the previous locations. The previous location is given for each variable.'''&lt;br /&gt;
&lt;br /&gt;
These settings allow some flexibility that can be useful if you want to tune BESA Research for use by several users, or on a network. For instance, the Examples and Montages folders might be located on a network disk. For the current defaults, the database, Examples, Montages, and Scripts are set up for use by all users on the PC on which BESA Research is installed. The settings files (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.set'''&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Besa.cfg'''&amp;lt;/span&amp;gt;, etc.) are located in private folders so that each user retains his or her own settings.&lt;br /&gt;
&lt;br /&gt;
The '''default''' settings (i.e. settings that BESA Research uses if the entries are omitted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file) are shown for each variable definition.&lt;br /&gt;
&lt;br /&gt;
The folder definitions can use '''placeholders''', labels enclosed by a % sign (e.g. %localapp%), to define paths that vary depending on the language version and on the Windows system. These are defined below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Variables'''&lt;br /&gt;
&lt;br /&gt;
'''Database=%localapp%''' The path of the BESA Research database folder (used to be ''%progdir%System\DB'' in BESA versions up to 5.1.x). Unless the provided path ends with ''\DB'' or ''\Database'', BESA Research will automatically create a folder named ''Database'' in the provided path.&lt;br /&gt;
&lt;br /&gt;
'''Settings=%privatprog%Settings''' The path of the BESA Research settings folder (used to be ''%progdir%System'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Montages=%publicprog%Montages''' The path of the BESA Research montages folder (used to be ''%progdir%Montages'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Scripts=%publicprog%Scripts''' The path of the BESA Research Scripts folder (used to be ''%progdir%Scripts'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''Examples=%publicprog%Examples''' The path of the BESA Research Examples folder (used to be ''%progdir%Examples'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''User=%privatprog%Settings''' The path for user defined settings (used to be ''%progdir%System\Userdirs'' in BESA versions up to 5.1.x)&lt;br /&gt;
&lt;br /&gt;
'''DataExport=%privateprog%Export''' The path for data to be exported for BESA Connectivity (not listed by default, but can be adjusted by the user)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Placeholders'''&lt;br /&gt;
&lt;br /&gt;
The strings enclosed by percent signs (%) are placeholders for the following folders in English-language versions of Windows. Folder names differ depending on Windows version, and for other language settings. BESA Research will substitute the placeholders by the appropriate folder name for the system and the system language:&lt;br /&gt;
&lt;br /&gt;
'''Windows 7, 8.1, and 10 (English):''' &lt;br /&gt;
&lt;br /&gt;
'''%localapp%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Desktop as &amp;quot;''Desktop\[user]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%publicprog%''' = &amp;quot;''C:\Users\Public\Public Documents\BESA\Research_7_0''&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''%privateprog%''' = &amp;quot;''C:\Users\[user]\Documents\BESA\Research_7_0''&amp;quot;, where [user] is the logon name of the current user. This folder is directly accessible from the Windows Explorer as &amp;quot;''Desktop\[User]\Documents\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%progdir%''' = the BESA Research root folder. In a default installation, this is &amp;quot;''C:\Program Files (x86)\BESA\Research_7_0''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
'''%besaroot%''' is the same as '''%progdir%'''&lt;br /&gt;
&lt;br /&gt;
== Electrodes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''This section allows for automatic relabeling of electrodes. For instance, the 10-20 label &amp;quot;T3&amp;quot; can be replaced by the 10-10 convention &amp;quot;T7&amp;quot;.'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Electrodes]:'''&lt;br /&gt;
&lt;br /&gt;
T7=T3&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
T8=T4&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P7=T5&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
P8=T6&amp;amp;nbsp;replace 10-10 label with old 10-20 convention&lt;br /&gt;
&lt;br /&gt;
X1=ECG1&amp;amp;nbsp;define X1 channel to be ECG1&lt;br /&gt;
&lt;br /&gt;
X2=ECG2&amp;amp;nbsp;define X2 channel to be ECG2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other examples, depending on your electrode input box definition, could be:&lt;br /&gt;
&lt;br /&gt;
PG1=LO1&amp;amp;nbsp;define X3 as lateral orbital eye electrode left&lt;br /&gt;
&lt;br /&gt;
PG2=LO2&amp;amp;nbsp;bipolar LO1-LO2 defines horizontal EOG (additional channel)&lt;br /&gt;
&lt;br /&gt;
X3=IO1&amp;amp;nbsp;infraorbital, e.g. use with FP1 as additional channel for VEOG&lt;br /&gt;
&lt;br /&gt;
X9=Rsp&amp;amp;nbsp;define X9 channel to be a respiratory channel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Relabeling of channel names (as stored in the EEG file header) is helpful to predefine your standard sequence of channels and to avoid the need for reading and/or editing a Channel Configuration file for every EEG file.&lt;br /&gt;
&lt;br /&gt;
'''Note 1''': For polygraphic channels, or if your EKG has been recorded differentially, you should edit and define an ''Additional Channels Montage'' according to your recording channel configuration (e.g. Fp1-IO1=vertical EOG). The Additional Channels group permits to display these channels regularly below the scalp montages with individual scales.&lt;br /&gt;
&lt;br /&gt;
'''Note 2''': EOG channels record both eye and scalp activity. In digital EEG systems, EOG electrodes should be labeled according to their position in the 10-10 system (see &amp;quot;''Electrode Conventions''&amp;quot;). This permits use of these electrodes for mapping and suppression of eye artifacts. The standard definitions above give an example of how to relabel extra channels (X1...X10, PG1, PG2) for the use of EOG, EKG and respiratory (Rsp) channels. Use an ''Additional Channels'' file to define horizontal and vertical EOG channels by using the appropriate electrodes in a bipolar montage (an example is provided in &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''eog-ecg.mtg'''&amp;lt;/span&amp;gt; in ''Montages\AdditionalChannels''). Differentially recorded EKG and respiratory channel can be defined in the same file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Patterns ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Patterns]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define labels for each of the five patterns. The labels are shown* in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Tags'''&amp;lt;/span&amp;gt; menu,&lt;br /&gt;
* in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''TAG push-button'''&amp;lt;/span&amp;gt; popup menu, and&lt;br /&gt;
* when displaying tag info clicking with the right mouse on a tag at the bottom of the EEG or on the event bar.&lt;br /&gt;
&lt;br /&gt;
By default, no labels are defined. Define a label, e.g. for Pattern1 and Pattern2, as in the following example:&lt;br /&gt;
&lt;br /&gt;
Pattern1=Spike&lt;br /&gt;
&lt;br /&gt;
Pattern2=Sharp Wave&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Artifacts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Artifact default settings:'''&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;quot;''Artifact Correction / Reference / Artifact settings in the BESA.ini file''&amp;quot; in the online help.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default settings for pattern search.&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Options ''Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThreshold''' = '''75%'''&lt;br /&gt;
&lt;br /&gt;
'''AmplitudeThreshold = 100 µV'''&lt;br /&gt;
&lt;br /&gt;
'''GradientThreshold = 25'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default Settings for the ''Search/Average/View'' (SAV) Dialog box:'''&lt;br /&gt;
&lt;br /&gt;
'''PreCursor = -250 ms'''&lt;br /&gt;
&lt;br /&gt;
'''PostCursor = 150 ms'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassFreq =&amp;amp;nbsp;2 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassSlope = 12 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''HighPassType = 0 (0 = zero phase, 1 = forward, 2 = backward'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassFreq = 35 Hz'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassSlope = 24 dB/Octave'''&lt;br /&gt;
&lt;br /&gt;
'''LowPassType = 0 (0 = zero phase, 1 = forward, 2 = backward)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdNoMarked = 60%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if no channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdOneMarked = 85%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if one channel label is marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''CorrelationThresholdFourMarked = 65%'''&lt;br /&gt;
&lt;br /&gt;
Default correlation threshold if between two channel labels are marked when the SAV Dialog is opened.&lt;br /&gt;
&lt;br /&gt;
'''SelectedViewWindowWidthMultiplier = 300%'''&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearch = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, a File Save dialog will open, to allow to save the search average to a file (as with the SAW function).&lt;br /&gt;
&lt;br /&gt;
'''WriteAfterSearchCheckBox = No'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, an additional checkbox &amp;quot;Write after search&amp;quot; is displayed at the bottom of the SAV Dialog, allowing to choose whether or not to write the search average after a search:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (1).gif ‎ ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''PreserveDefaults = Yes'''&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;No&amp;quot;, the SAV Dialog will open with the same boxes checked as the last time the dialog was opened during the current session.&lt;br /&gt;
&lt;br /&gt;
If set to &amp;quot;Yes&amp;quot;, the default frequency, buffer width, selected view after search, and default threshold are always checked when the dialog is opened.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== KeyControls ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the [KeyControls] section you can specify functions that can be allocated to &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function keys'''&amp;lt;/span&amp;gt; or to the ''Del'' key. Specify using the form:&lt;br /&gt;
&lt;br /&gt;
'''Fn=function''' or&lt;br /&gt;
&lt;br /&gt;
'''Del=function'''&lt;br /&gt;
&lt;br /&gt;
where &amp;quot;''n''&amp;quot; is a number between 2 and 12 (F1 is reserved for Help). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;F2 = Batch1&lt;br /&gt;
&lt;br /&gt;
Possible functions are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Setting or removing events:'''&lt;br /&gt;
&lt;br /&gt;
'''Pattern''n''''', where ''n''&amp;lt;nowiki&amp;gt;=1-5: Sets the tag number &amp;lt;/nowiki&amp;gt;''n'' at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Epochfast:''' sets one boundary of an epoch at the cursor latency, but does not open&amp;amp;nbsp;the epoch text box to define a label.&lt;br /&gt;
&lt;br /&gt;
'''Marker:'''&amp;amp;nbsp;&amp;amp;nbsp;sets a marker at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Comment:'''&amp;amp;nbsp;sets a comment at the cursor latency and opens the comment box to enter&amp;amp;nbsp;text.&lt;br /&gt;
&lt;br /&gt;
'''Epoch:'''&amp;amp;nbsp;sets one boundary of an epoch at the cursor latency and opens the epoch&amp;amp;nbsp;text box to enter a label.&lt;br /&gt;
&lt;br /&gt;
'''Artifact:'''&amp;amp;nbsp;sets one boundary of an artifact segment at the cursor latency.&lt;br /&gt;
&lt;br /&gt;
'''Delete:'''&amp;amp;nbsp;&amp;amp;nbsp;deletes a tag at the cursor latency&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Batches and Montages:'''&lt;br /&gt;
&lt;br /&gt;
'''Batch''n''''', where n=1-12: Runs a predefined batch file corresponding to the number ''n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a batch, pressing it will open a ''File Open Dialog'' to select a batch. The setting you have chosen will be retained across BESA Research sessions. Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt;'''&amp;lt;/span&amp;gt; key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will always open the dialog. Hold the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' &amp;lt;ctrl&amp;gt; '''&amp;lt;/span&amp;gt;key with the function key to open the associated batch in the batch edit dialog.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Montage''n''''', where n=1-12: Sets a montage corresponding to the number'' n''.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;If a key has not yet been associated with a montage, pressing it will generate a message asking you to associate a montage as follows: Holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''&amp;lt;shift&amp;gt; '''&amp;lt;/span&amp;gt;key while pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''function key'''&amp;lt;/span&amp;gt; will remove the current association, and substitute it with the current montage.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default settings after program installation are listed in the online help chapter ''Review / Reference / Controls / Mouse and Keyboard / Keyboard Controls''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FFT ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [FFT]:'''&lt;br /&gt;
&lt;br /&gt;
These settings define the setup in the Spectral Analysis section of the BESA Research program (FFT window, see the chapter &amp;quot;''Spectral Analysis / FFT''&amp;quot;). Up to 7 frequency bands may be defined. Five are defined by default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''FFTBand1=On'''&amp;amp;nbsp;FFT Bands 1-5 are defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand2=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand3=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand4=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand5=On'''&lt;br /&gt;
&lt;br /&gt;
'''FFTBand6=Off'''&amp;amp;nbsp;FFT Bands 6-7 are not defined&lt;br /&gt;
&lt;br /&gt;
'''FFTBand7=Off'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand1=Delta'''&amp;amp;nbsp;Names of the defined bands&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand2=Theta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand3=Alpha'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand4=Beta'''&lt;br /&gt;
&lt;br /&gt;
'''FFTNameBand5=Gamma'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand1=RGB(0,0,0)''' &amp;amp;nbsp;Default color of each band&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand2=RGB(0,128,64)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand3=RGB(128,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand4=RGB(255,0,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand5=RGB(255,128,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand6=RGB(255,192,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTColorBand7=RGB(255,255,0)'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand1=1'''&amp;amp;nbsp;Delta from 1-4 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand1=4'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand2=4'''&amp;amp;nbsp;Theta from 4-8 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand2=8'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand3=8''' Alpha from 8-14 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand3=14'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand4=14'''&amp;amp;nbsp;Beta from 14-30 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand4=30'''&lt;br /&gt;
&lt;br /&gt;
'''FFTLowBand5=30'''&amp;amp;nbsp;Gamma from 30-50 Hz&lt;br /&gt;
&lt;br /&gt;
'''FFTHighBand5=50'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These values are best set from within BESA Research, using the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu in the FFT window (see the chapter &amp;quot;''Spectral Analysis / FFT / FFT Options Menu''&amp;quot;). Current settings are stored after each session and retrieved in the next session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Printer ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Printer]:'''&lt;br /&gt;
&lt;br /&gt;
'''PrinterMarginPercent=100'''&amp;amp;nbsp;controls size of printout&lt;br /&gt;
&lt;br /&gt;
'''PrinterColors=256'''&amp;amp;nbsp;set to 1/2 for black&amp;amp;white, 0/256 for color printers&lt;br /&gt;
&lt;br /&gt;
'''PrinterLineMode=1'''&amp;amp;nbsp;set to 2 for thicker lines and to save printer memory&lt;br /&gt;
&lt;br /&gt;
'''PrinterMapResolution=1'''&amp;amp;nbsp;set to 2, 3, 4 to save printer memory and increase speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Calibration]:'''&lt;br /&gt;
&lt;br /&gt;
'''AutoCalibration=Off'''&amp;amp;nbsp;On: automatic calibration of signals &amp;gt;= 4 cycles&lt;br /&gt;
&lt;br /&gt;
'''MicrovoltCalibration=50'''&amp;amp;nbsp;peak voltage of calibration signal&lt;br /&gt;
&lt;br /&gt;
If calibration is set to'' On'', the menu item ''Calibration ''will appear in the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Process '''&amp;lt;/span&amp;gt;menu. Position your current screen at an epoch containing at least 4 regular cycles of the calibration signal (in all channels!) and select Calibration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Video ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Video]:'''&lt;br /&gt;
&lt;br /&gt;
'''DVCFilePath=C:\DVC\DVPlay.exe''' holds the path to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''DVCCommandLineArguments=/S:3 /M:P /T:M''' &amp;amp;nbsp;arguments to be passed to the digital video player&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetLeft=0.2 &amp;amp;nbsp;'''&lt;br /&gt;
&lt;br /&gt;
'''CursorPagingOffsetRight=0.8'''&lt;br /&gt;
&lt;br /&gt;
'''CursorMinDistToBorderBeforePaging=0.02'''&lt;br /&gt;
&lt;br /&gt;
'''PageDisplayIfCursorIsBelowVideo=1'''&lt;br /&gt;
&lt;br /&gt;
'''MappingRepetitionRateWithVideoInMS=100''' &amp;amp;nbsp;gives the number of milliseconds between two maps if the mapping window is open while the video is running. If the graphics board encounters problems during the display, this value should be increased.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mapping ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Mapping]:'''&lt;br /&gt;
&lt;br /&gt;
'''UseBitmapDrawing=Off'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if 3D maps show a strange pattern of black triangular shapes (this is frequently observed with modern Intel On-Board graphics controllers, and is a result of inadequate drivers for OpenGL).&lt;br /&gt;
&lt;br /&gt;
'''Use3DVBlending=Auto'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window does not show up properly (this may happen with some older graphics cards).&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;On&amp;quot; if the 3D view in the Montage Editor or the Source Analysis window shows a ragged surface boundary.&lt;br /&gt;
&lt;br /&gt;
'''UseDoubleBuffering=On'''&lt;br /&gt;
&lt;br /&gt;
Set this to &amp;quot;Off&amp;quot; to disable double buffering mechanism that prevents the screen from flickering while paging through data and dragging window (''this feature requires BESA Research 7.1 or higher'').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: '''MapSmoothing''', the default map smoothing parameter, can be specified in the '''[Defaults]''' section.&lt;br /&gt;
&lt;br /&gt;
== Matlab ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Default settings for the [Matlab] section:'''&lt;br /&gt;
&lt;br /&gt;
'''Platform=32'''&lt;br /&gt;
&lt;br /&gt;
Set '''Platform=64''' if you want to use the 64-bit version of MATLAB.&lt;br /&gt;
&lt;br /&gt;
== Updates ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This section is not normally required, but the variables here can be altered or defined to determine how BESA Research checks for dongle and program updates.&lt;br /&gt;
&lt;br /&gt;
'''DaysBetweenUpdateChecks=7'''&lt;br /&gt;
&lt;br /&gt;
Sets the number of days between automatic checks for updates. Set the value to 0 to check every time BESA Research is started. Set to -1 to turn off automatic update checks.&lt;br /&gt;
&lt;br /&gt;
'''CheckNetworkDongle=Off'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator: If set to &amp;quot;On&amp;quot;, BESA Research will check the dongle on the network for updates. Otherwise the state of the network dongle will be ignored.&lt;br /&gt;
&lt;br /&gt;
'''LocalPath'''&lt;br /&gt;
&lt;br /&gt;
For the network administrator. This can be set to a path on the local network to the BESA update files, so that users can obtain their updates locally. The path is given to the text file &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''UpdateVersions.txt'''&amp;lt;/span&amp;gt;&amp;quot; (e.g. ''LocalPath=\\transtec-sak\zarascratch\BESA\Updates\UpdateVersions.txt''), which contains further details for the program to obtain its updates. If you want to use this feature, please contact us at [mailto:support@besa.de support@besa.de].&lt;br /&gt;
&lt;br /&gt;
The following variables are not required, because BESA Research has the paths hardwired:&lt;br /&gt;
&lt;br /&gt;
'''FTP1 (also FTP2, FTP3)'''&lt;br /&gt;
&lt;br /&gt;
ftp download server&lt;br /&gt;
&lt;br /&gt;
'''Path1 (also Path2, Path3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to UpdateVersions.txt.&lt;br /&gt;
&lt;br /&gt;
'''HaspPath1 (also HaspPath2, HaspPath3)'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to HASP (dongle) update files.&lt;br /&gt;
&lt;br /&gt;
'''History'''&lt;br /&gt;
&lt;br /&gt;
Path on the server to general history file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FMRI ==&lt;br /&gt;
&lt;br /&gt;
''(requires Besa Research 7.0 or higher)''&lt;br /&gt;
&lt;br /&gt;
These settings define the default parameters for the fMRI artifact removal in the BESA Research (see [[BESA_Research_Artifact_Correction#fMRI_artifact_removal|fMRI artifact removal]] chapter for further details). For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
[FMRI]&lt;br /&gt;
FMRIRemovalMode=1&lt;br /&gt;
TRDelay=200&lt;br /&gt;
TRLength=800&lt;br /&gt;
NumberOfAverages=21&lt;br /&gt;
fMRImoveThreshold=0.15&lt;br /&gt;
FMRITRID=8015&lt;br /&gt;
ScansToSkip=0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These values indicate:&lt;br /&gt;
&lt;br /&gt;
* '''FMRIRemovalMode''': Removal method (0: Turned off; 1: Allen et al, 2000; 2: Allen et al., 2000 Modified; 3: Moosmann et al.,2003)&lt;br /&gt;
* '''TRDelay''': Delay between marker and start of volume acquisition [ms]&lt;br /&gt;
* '''NumberOfAverages''': Number of artifact occurrence averages&lt;br /&gt;
* '''fMRImoveThreshold''': Movement threshold [mm]&lt;br /&gt;
* '''FMRITRID''': fMRI Trigger code&lt;br /&gt;
* '''ScansToSkip''': Number of scans to skip&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Montage ==&lt;br /&gt;
&lt;br /&gt;
'''This section allows to specify an initial montage that is set the first time when the source (Src), recorded (Rec), virtual (Vir) or user (Usr) montage button is pressed. If BESA.ini does not specify a montage, pressing the corresponding button opens the drop-down menu offering all the available montages for the current montage type.'''&lt;br /&gt;
&lt;br /&gt;
'''Source=25s''' specifies that when the Src button in the control ribbon is pressed for the first time, the source montage &amp;quot;25s&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Recorded=Original Recording''' specifies that when the Rec button in the control ribbon is pressed for the first time, the source montage &amp;quot;Original Recording&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Virtual=Triple Banana''' specifies that when the Vir button in the control ribbon is pressed for the first time, the source montage &amp;quot;Triple Banana&amp;quot; will be selected. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''User=CA25''' specifies that when the Usr button in the control ribbon is pressed for the first time, the source montage &amp;quot;CA25&amp;quot; will be selected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reader-Specific Settings ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== BrainLab ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [BrainLab]:'''&lt;br /&gt;
&lt;br /&gt;
'''BrainLabFormat=New''' this entry ensures that the newer BrainLab file format can be read by BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bio-Logic ===&lt;br /&gt;
&lt;br /&gt;
'''FileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If there are several Bio-Logic files in a data folder, the reader can check if the files have the same settings. There are three possible options:&lt;br /&gt;
&lt;br /&gt;
* Open a dialog to ask if the files should be treated as a single data set, or as individual, separate files. &lt;br /&gt;
&lt;br /&gt;
[[Image:ST Besa ini (2).jpg ‎]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:0.953cm;margin-right:0cm;&amp;quot;&amp;gt;in this case, use '''FileSelect=Yes''' (this is the default setting) Note that the choice made in the dialog will apply to the file(s) within a BESA Research session. For a given file and session, the dialog will only be opened once, even if the file is closed and reopened.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Always concatenate such files into a single data set. In this case use '''FileSelect=All'''&lt;br /&gt;
* Always open the files as single, separate files. In this case use '''FileSelect=Single'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EDF+/BDF/Trackit ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On'''&lt;br /&gt;
&lt;br /&gt;
Set '''TriggerScan=Off '''to prevent BESA Research from scanning the file for triggers. This is done separately for EDF+, BDF, and Trackit files in sections '''[EDF+], [BDF],''' and '''[Trackit]''' in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''BESA.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EGI ===&lt;br /&gt;
&lt;br /&gt;
The treatment of DIN events can be modified in the''' [EGI] '''section:&lt;br /&gt;
&lt;br /&gt;
'''CombineDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you want to treat DIN events separately, and not generate combined values.&lt;br /&gt;
&lt;br /&gt;
'''SeparateDINevents'''&amp;lt;nowiki&amp;gt;=yes/no&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;(default is “yes”)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set to “no” if you don’t want to treat DIN events separately. Thus, using the above two parameters, you can choose whether you want to treat DIN events as combined, separate, both, or completely ignored.&lt;br /&gt;
&lt;br /&gt;
'''CombineDINeventsPrefix'''&amp;lt;nowiki&amp;gt;=dinComb&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This defines the text preceding the number when DIN events are combined. The default is “dinComb”.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Harmonie ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [Harmonie] (Stellate Harmonie systems):'''&lt;br /&gt;
&lt;br /&gt;
'''SeizurePreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''SeizurePostEpoch=60'''&amp;amp;nbsp;length of the epoch following a seizure detection in s&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPreEpoch=60'''&amp;amp;nbsp;length of the epoch preceding a push button detection&lt;br /&gt;
&lt;br /&gt;
'''PushButtonPostEpoch=60'''&amp;amp;nbsp;length of the epoch following a push button detection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When BESA Research encounters a seizure detection event or a push button detection event in a Stellate Harmonie file, it automatically sets an epoch around the event, which makes it convenient to view just those epochs for analysis. The length of the epochs preceding and following the events can be adjusted in the &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.ini'''&amp;lt;/span&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Neuroscan Keys ===&lt;br /&gt;
&lt;br /&gt;
'''Note that there is a setting &amp;quot;NeuroScanDataNumberOfBits&amp;quot; in the [Defaults] section of BESA.ini that is used for distinguishing the data format of Neuroscan files (16 or 32-bit).'''&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NeuroScan Keys] (NeuroScan systems):'''&lt;br /&gt;
&lt;br /&gt;
Event1=Movement&amp;amp;nbsp;Text corresponding to keyboard events 1 through 10&lt;br /&gt;
&lt;br /&gt;
Event2=Blink&lt;br /&gt;
&lt;br /&gt;
Event3=Talking&lt;br /&gt;
&lt;br /&gt;
Event4=Cough&lt;br /&gt;
&lt;br /&gt;
Event5=Muscle&lt;br /&gt;
&lt;br /&gt;
Event6=Jaw&lt;br /&gt;
&lt;br /&gt;
Event7=Sneeze&lt;br /&gt;
&lt;br /&gt;
Event8=Swallow&lt;br /&gt;
&lt;br /&gt;
Event9=Eye movement&lt;br /&gt;
&lt;br /&gt;
Event10=Hiccup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NKT2100 ===&lt;br /&gt;
&lt;br /&gt;
'''Default settings provided for section [NKT2100] (Nihon Kohden EEG 21xx systems):'''&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=On''' &amp;amp;nbsp;&amp;amp;nbsp;Set to &amp;quot;Off&amp;quot; to prevent a scan for trigger events.&lt;br /&gt;
&lt;br /&gt;
'''Country=NotKanji'''&amp;amp;nbsp;set to NotKanji for non-Kanji characters else to Kanji&lt;br /&gt;
&lt;br /&gt;
'''KanjiCharSize=16'''&amp;amp;nbsp;Kanji character size&lt;br /&gt;
&lt;br /&gt;
'''KanjiPrinterCharSize=32'''&amp;amp;nbsp;Kanji printer character size&lt;br /&gt;
&lt;br /&gt;
'''EEG_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden EEG-2100 system&lt;br /&gt;
&lt;br /&gt;
'''DC_Sensitivity=50'''&amp;amp;nbsp;default sensitivity of Nihon Kohden DAE-2100 system&lt;br /&gt;
&lt;br /&gt;
'''QJ_Sensitivity=100''' default sensitivity of Nihon Kohden QJ-403 system&lt;br /&gt;
&lt;br /&gt;
'''Mark_Sensitivity=100'''&amp;amp;nbsp;default sensitivity of EEG-2100 marker channels&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These settings need to be changed only if the manufacturer has specified different gains for your system. Otherwise do not alter these settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Vangard ===&lt;br /&gt;
&lt;br /&gt;
'''AlwaysOpenFileSelect=Yes'''&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;Yes&amp;quot; is selected, each time a Vangard file is opened, a dialog box will open, asking for a selection of the segment type to display.&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;No&amp;quot; is selected, the selection dialog is opened whenever a Vangard file is opened for the first time, or if the ''Channel and digitized head surface point information dialog box'' is opened (e.g. with &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''ctrl-L'''&amp;lt;/span&amp;gt; or ''File/Head Surface Points and Sensors/Load Coordinate Files...'' ).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== XLTEK ===&lt;br /&gt;
&lt;br /&gt;
'''TriggerScan=Off '''Set to &amp;quot;On&amp;quot; to scan the data file for trigger events&lt;br /&gt;
&lt;br /&gt;
'''MontageNo=2''' Set to 1 or 2. If two montages for the data file are defined, this variable determines whether the first or the second alternative should be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI</id>
		<title>Integration with MRI and fMRI</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI"/>
				<updated>2021-11-25T13:14:21Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&amp;lt;br/&amp;gt;BESA MRI&lt;br /&gt;
|version = BESA Research 6.1 or higher&amp;lt;br/&amp;gt;BESA MRI 2.0 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- = BESA Research Integration with MRI and fMRI = --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Both for developing and evaluating dipole source models of EEG or MEG activity, it is useful to have access to structural MRI or fMRI data.&lt;br /&gt;
&lt;br /&gt;
The BESA MRI software allows to preprocess structural MRI data so that the individual anatomical information contained in the MRI can be utilized in BESA Research.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
BESA MRI makes it possible ...&lt;br /&gt;
&lt;br /&gt;
*... to align the EEG and MEG sensors with the structural MRI data.&lt;br /&gt;
&lt;br /&gt;
*... to read and display the aligned, individual Talairach structural MRIs directly in the BESA Research Source Analysis module. In this way, source analysis results can be presented on top of the aligned MRIs, which allows us to evaluate the anatomical regions to which the reconstructed sources may correspond.&lt;br /&gt;
&lt;br /&gt;
*... to use an individual, realistically shaped FEM or BEM head model for source analysis in BESA Research. FEM and BEM head models take into account the individual volume conduction properties of the subject's head derived from the structural MRI data. This allows for more accurate source analysis (Yvert 1997, Lanfer 2012).&lt;br /&gt;
&lt;br /&gt;
*... overlay source analysis results obtained in BESA Research with fMRI data.&lt;br /&gt;
&lt;br /&gt;
*... use fMRI BOLD regions or MRI structures to initialize dipole models.&lt;br /&gt;
&lt;br /&gt;
*... use fMRI image to constrain EEG/MEG source localization &lt;br /&gt;
&lt;br /&gt;
*... send discrete source analysis results from BESA Research to BESA MRI to visualize them in both Talairach and subject-specific (ACPC) coordinates.&lt;br /&gt;
&lt;br /&gt;
The chapters below describe the steps necessary to integrate the MRI and fMRI data with BESA Research. &lt;br /&gt;
&lt;br /&gt;
It is also possible to use BESA Research with BrainVoyager. Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website: &lt;br /&gt;
[https://www.brainvoyager.com/downloads/downloads.html BrainVoyager Downloads].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Aligning Coordinate Systems'''&lt;br /&gt;
&lt;br /&gt;
* For a given BESA data set, the electrode and other head surface points need to be aligned to the MRI coordinates.&lt;br /&gt;
* The basic steps necessary to align the EEG electrode locations, the MEG sensors and the MRI are described in Section [[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How Coregistration is done]].&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BESA MRI can be found in the coregistration quick guide which is available on the BESA homepage ([http://www.besa.de/downloads/quick-guides/ Quick Guides]).&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BrainVoyager are described in Section [[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How To set up Coregistration between BESA and BrainVoyager]].&lt;br /&gt;
* In BESA Research, all necessary settings with regard to the alignment are made in the [[Integration_with_MRI_and_fMRI#The_Coregistration_Dialog|Coregistration Dialog]].&lt;br /&gt;
* Requirements with respect to the MRI data for a good coregistration can be found in Section [[#MRI_Requirements_for_Good_Coregistration|MRI Requirements for Good Coregistration]].&lt;br /&gt;
* Requirements with respect to EEG and MEG data for a good coregistration can be found in Section [[#EEG/MEG Data Requirements for Good Coregistration|EEG/MEG Data Requirements for Good Coregistration]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Generating an individual, realistically shaped FEM head model'''&lt;br /&gt;
&lt;br /&gt;
* The generation of a FEM head model that can be used in BESA Research is done in BESA MRI as an additional step following the EEG / MEG to MRI coregistration.&lt;br /&gt;
* Detailed instructions on how to generate the FEM head model can be found in the coregistration quick guide which is available on the BESA homepage ([http://www.besa.de/downloads/quick-guides/ Quick Guides]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Co-locating dipoles and MRI locations'''&lt;br /&gt;
&lt;br /&gt;
* After aligning the EEG / MEG and the MRI data it is possible to co-locate dipoles and MRI locations. This means, it is possible to visualize the dipoles and to specify the dipole parameters in the MRI coordinate system.&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-locate sources and MRI in the BESA Research Source Module]] describes how in the BESA Research Source Analysis module dipoles can directly be visualized in the space of the individual MRI.&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a discrete Solution to BESA MRI]] describes how to export the current solution to the co-registered MRI and open it in BESA MRI.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
Lanfer, B., I. Paul-Jordanov, M. Scherg, and C. H. Wolters. “Influence of Interior Cerebrospinal Fluid Compartments on EEG Source Analysis.” In Proceedings BMT 2012, Vol. 57. Jena: De Gruyter, 2012. doi:10.1515/bmt-2012-4020.&lt;br /&gt;
&lt;br /&gt;
Yvert, B., O. Bertrand, M. Thévenet, J. F. Echallier, and J. Pernier. “A Systematic Evaluation of the Spherical Model Accuracy in EEG Dipole Localization.” Electroencephalography and Clinical Neurophysiology 102, no. 5 (May 1997): 452–59. doi:16/S0921-884X(97)96611-X.&lt;br /&gt;
&lt;br /&gt;
== How Coregistration is done ==&lt;br /&gt;
&lt;br /&gt;
This section outlines the basic steps to coregister the EEG / MEG data to an individual MRI. These steps are necessary to load an individual MRI into BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What happens:'''&lt;br /&gt;
&lt;br /&gt;
* EEG / MEG sensor locations and the MRI data are defined in different coordinate systems. Setting up coregistration is the process of aligning the two coordinate systems.&lt;br /&gt;
* BESA Research uses the ''Coregistration Dialog'' to coordinate the alignment procedure.&lt;br /&gt;
* Alignment is done with the ''AC-PC-transformed MRI''.&lt;br /&gt;
* BESA Research displays the ''Talairach-transformed MRI'' in the source analysis module.&lt;br /&gt;
* A coregistration file (with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.sfh'''&amp;lt;/span&amp;gt;&amp;quot;) is used to mediate between BESA Research and BESA MRI (or BrainVoyagerQX):&lt;br /&gt;
* BESA Research writes the coregistration file which contains the coordinates of head surface points (fiducials, electrodes, other digitized surface points).&lt;br /&gt;
* The coordinates are read into BESA MRI (or BrainVoyager), and aligned with the AC-PC-transformed MRI. The alignment information is then appended to the ''coregistration file''. The names of the AC-PC MRI (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.vmr&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) and the surface mesh (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.srf&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;), and, if available, the Talairach transformation, are also appended.&lt;br /&gt;
* BESA Research reads the coregistration file and appends the name of the Talairach-transformed MRI and head surface. If a brain surface has been created, this is also appended.&lt;br /&gt;
* Subsequently, BESA Research reads the coregistration file automatically when loading the data file.&lt;br /&gt;
* In the BESA Research source module, the individual MRI is displayed instead of the standard MRI. Talairach coordinates of dipoles are the &amp;quot;real&amp;quot; Talairach coordinates as defined, e.g., in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The steps you have to take (once for each data set):'''&lt;br /&gt;
&lt;br /&gt;
* From the BESA Research ''Coregistration Dialog'', write a coregistration file. Switch to BESA MRI (or BrainVoyagerQX).&lt;br /&gt;
* If BESA MRI is used follow the steps in the coregistration quickguide which is available on the BESA homepage ([http://www.besa.de/downloads/quick-guides/ Quick Guides]).&lt;br /&gt;
* If BrainVoyager is used follow the steps in Section “''How to set up coregistration between BESA and BrainVoyager”.''&lt;br /&gt;
* Back in BESA Research, reload the altered '''coregistration file'''. When using BESA MRI the file names of the generated surface and volume data files will be automatically filled in. When using BrainVoyager file names are only filled in automatically when the files are named according to the file naming conventions. Otherwise, file names have to be set manually.&lt;br /&gt;
* The coregistration file is now associated with the data file in the BESA Research database and will be used automatically the next time the file is opened in BESA Research. If the database entry is cleared, and the data are reloaded, you must make sure the coregistration file is also loaded (either using the ''Coregistration Dialog'' or the ''Channel and digitized head surface point information Dialog'').&lt;br /&gt;
&lt;br /&gt;
==  Alignment of BESA and MRICoordinate Systems  ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration Dialog ===&lt;br /&gt;
&lt;br /&gt;
The dialog is opened either from the ''Channel and digitized head surface point information'' (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) ''dialog ''by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit/Coreg'''&amp;lt;/span&amp;gt; button, or from the main menu (&amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File/MRI&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Coregistration...'''&amp;lt;/span&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the coregistration dialog is invoked from an EEG data set in which no digitized electrode coordinates are available (i.e. standard electrode positions located on a sphere are assumed), BESA Research presents a warning message, saying that for MRI coregistration realistic electrode coordinates produce better results. BESA Research has a list of such realistic standard coordinates (i.e. located on a pre-defined standard head surface) for various electrodes available in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;, which is located in the Standard Electrode folder. If all electrodes in the dataset are listed in this file, a dialog window suggests to apply this file to the current data set, i.e. to switch from standard sphere coordinates to the standard realistic electrode coordinates in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;. If the suggestion is accepted, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''default.sfp'''&amp;lt;/span&amp;gt; is assigned to the dataset (see Channel and digitized head surface point information (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) dialog).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Dialog:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (1).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Select MRI prog'''&amp;lt;/span&amp;gt; button to select your preferred MRI program. The current choice is between ''BESA MRI.exe'' and ''BrainVoyagerQX.exe''. The path to the MRI program is saved (in ''System\BESA.set'') and will be remembered by BESA Research. The top right hand button (now showing '''BESA MRI''') shows the current selection.&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BESA MRI'''&amp;lt;/span&amp;gt; button to start the process of aligning the BESA Research and MRI coordinate systems. If no coregistration (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.sfh&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) file is defined in the dialog (empty ''Surface coregistration file edit box''), BESA Research will first prompt for a file name. We recommend saving this file to the folder where the MRIs are kept. The MRI program will then be started. When you return to the ''Coregistration Dialog'', BESA Research checks if the ''Coregistration File'' has changed. If so, the dialog is updated with the new information.&lt;br /&gt;
* Press the top &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse... '''&amp;lt;/span&amp;gt;button to select a preexisting ''Coregistration File''.&lt;br /&gt;
* The entries in the edit boxes below show the files that will be used in the BESA Research Source Analysis module when the individual MRI is loaded. When using BESA MRI the file names will be automatically filled in. If you are using BrainVoagerQX and you are following our (and the BrainVoyagerQX) recommended naming conventions for files, and the files exist, then the names will be filled in automatically after you have completed the alignment procedure in BrainVoyagerQX. Otherwise you may have to browse for the files.&lt;br /&gt;
* Below the edit boxes the FEM field states whether all necessary information for the individual FEM head model were found in the coregistration file. If the field says ''Individual FEM for EEG'' ''defined!'' then all necessary data was found and the individual FEM EEG head model can be used in the BESA Research Source Analysis module. A similar message indicates whether the FEM MEG head model is available.&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note that the MRI and the surfaces are Talairach-transformed! Alignment between BESA Research and the individual MRI is done with the MRI transformed to the AC-PC coordinate system, but the BESA Research Source Analysis module uses the Talairach-transformed image data and surfaces.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Coregistration Using BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
It is assumed that you know how to load an MRI as a 3D data set into BrainVoyagerQX, and how to clean the image so that regions outside the head are black. We also assume knowledge of how to create AC-PC-aligned and Talairach-transformed MRIs.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps:&lt;br /&gt;
&lt;br /&gt;
* BESA Research. Start the ''Coregistration Dialog''. Export the Coregistration File (head surface points) from your data by pressing the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''BrainVoyagerQX'''&amp;lt;/span&amp;gt; button in the dialog. Save the file to the directory where your MRI is located. BrainVoyagerQX is started.&lt;br /&gt;
* BrainVoyagerQX. Load the MRI corresponding to the EEG/MEG data. For optimal performance, the MRI should be cleaned so that regions outside the head are black. Prepare an AC-PC-transformed MRI and a Talairach MRI. For each, generate a surface mesh. Save these files following our recommended naming conventions (see chapter [[Integration_with_MRI_and_fMRI#MRI_file_Name_Conventions|MRI File Name Conventions]]). Save the Talairach coordinate file (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;). If these steps have already been performed, load the ACPC MRI and load the ACPC mesh. If you want to generate a brain surface mesh, see chapter [[Integration_with_MRI_and_fMRI#How_to_Generate_a_Brain_Surface_Mesh|How to Generate a Brain Surface Mesh]].&lt;br /&gt;
* BrainVoyagerQX. Load the Coregistration File (''EEG-MEG BESA/Load Surface Points''). The points will be displayed, but they are not aligned to the head:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (2).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Define fiducial points on the head surface. Right click on the 3D head display and select the ''Fiducials Dialog'' in the drop-down menu:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (3).gif ‎]]  [[Image:MRI Integration (4).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Rotate the head (by holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift '''&amp;lt;/span&amp;gt;button down and clicking and dragging with the mouse) so that the Nasion is clearly visible. Move the mouse to the Nasion, and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl+Left Click'''&amp;lt;/span&amp;gt;. The coordinates of the Nasion are inserted into the dialog. Repeat for the left preauricular point, and then for the right preauricular point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (5).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: if you have defined your fiducials differently in your BESA Research data (e.g. ear holes), click on the corresponding points in the MRI. If you have additional head surface points (step 8), accuracy in pinpointing the fiducials is not critical.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. In the Fiducials Dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit fiducials'''&amp;lt;/span&amp;gt; button. The head surface points are now more or less aligned to the head.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (6).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Now select '''''EEG-MEG BESA/Fit Surface Points...'''''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (7).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you do not see the right half of the dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Advanced &amp;gt;&amp;gt;'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Specify the distances of the digitization points from the skin. In the illustration above, the digitization points for electrodes are estimated to be 8 mm from the surface of the head. For the purpose of accurate alignment, the distance of digitization points from skin section of the dialog needs to be filled in correctly. We recommend that &amp;quot;Restrain solution around fiducials&amp;quot; is checked, and a reasonable limit (here 3 mm) of the restraint is defined. Then press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (8).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BrainVoyager fits the points to the head, stretching x, y, and z coordinates to obtain a better fit than before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: The fit performed during this step accounts for scaling inequalities between the x, y, and z axes in the MRI. Coregistration gains in accuracy over the use of fiducials alone a) because more head surface points are used, and b) because the scaling inequalities are accounted for.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Alignment is now completed. If you only want to display the structural MRI in the BESA Source Module, you can return to the BESA Coregistration Dialog.&lt;br /&gt;
* BESA Research. When you switch back to the Coregistration Dialog, BESA Research will try to fill in the names of the Talairach MRI and surface meshes. If the names are not filled in, use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse...'''&amp;lt;/span&amp;gt; buttons to select the MRI and surface meshes. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to save the Coregistration File. Alignment is completed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The alignment steps need only be performed once for a given MRI and EEG/MEG data set. Otherwise, after starting BrainVoyager, just load the MRI, the surface mesh, and the surface points (see [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done |How to Set Up Coregistration with BrainVoyager after Alignment has been Done]]). Now the following actions are possible: see chapters&lt;br /&gt;
&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-Locate Sources and MRI in the BESA Research Source Module]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]&lt;br /&gt;
&lt;br /&gt;
=== MRI file Name Conventions ===&lt;br /&gt;
&lt;br /&gt;
If you follow the naming conventions for file names as described here, BESA Research detects the file names it requires, and the ''Coregistration Dialog'' is filled in automatically.&lt;br /&gt;
&lt;br /&gt;
Please note that BESA MRI automatically uses these naming conventions for the generated files.&lt;br /&gt;
&lt;br /&gt;
* '''The AC-PC MRI file name''' should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.srf'''&amp;lt;/span&amp;gt;&amp;quot;. After alignment, BrainVoyagerQX writes these names to the Coregistration File.&lt;br /&gt;
* '''The Talairach MRI file name '''should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If defined, the brain surface mesh should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot; ('''WM''' = '''w'''hite '''m'''atter).&lt;br /&gt;
* '''How BESA Research finds the Talairach files.''' When BESA Research rereads the Coregistration File after alignment of the coordinate systems, it finds the ACPC file names and defines the corresponding TAL file names. If these files exist, the names are entered into the Coregistration Dialog. For instance, if the Coregistration File contains the name &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for the files &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;, and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If these files exist, they are entered into the dialog.&lt;br /&gt;
* '''Older BrainVoyager version.''' If you use BrainVoyager.exe to align coordinate systems, the file names are not saved with the Coregistration File. In this case, browse for the Talairach or the ACPC MRI from the Coregistration Dialog. BESA Research will use the rules as described above to insert the correct file names into the dialog.&lt;br /&gt;
* '''Missing Talairach coordinates.''' If, after aligning coordinate systems, the Talairach coordinates are missing from the Coregistration File (you forgot to load the Talairach coordinates in BrainVoyagerQX, or you used BrainVoyager.exe), BESA Research will look for a file ending with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot;, and read the coordinates from this file. You can also browse for a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file in the Coregistration Dialog. For instance, if the MRI file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot; or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MR_'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot; to find the Talairach coordinates.&lt;br /&gt;
* '''File names in the Coregistration File are saved relative to the Coregistration File location, if they are in the same folder.''' If the MRIs are in the same folder as the Coregistration File they will be recorded as &amp;quot;.\filename&amp;quot; (e.g. &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.\MRI PB_tal.vmr'''&amp;lt;/span&amp;gt;&amp;quot;). This means that you can copy the Coregistration File together with the MRIs and meshes to a different folder, and BESA Research will be able to locate the files when the Coregistration File is opened. If the MRIs are saved in a different folder from the Coregistration File, the absolute paths are saved in the file. If the files are moved to new locations, you will have to restart the Coregistration Dialog and redefine the file locations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Generate a Brain Surface Mesh ===&lt;br /&gt;
&lt;br /&gt;
BESA Research is able to compute surface images, such as (Cortical LORETA, Cortical CLARA, Minimum Norm) using an individual cortex surface as the source space. A suitable cortex surface for this purpose can be effortlessly created using BESA MRI. Alternatively, BrainVoyager can be used for the creation of the brain surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BESA MRI'''&lt;br /&gt;
* The brain surface generation is performed as one work step of the BESA MRI segmentation workflow.&lt;br /&gt;
* The cortex surface reconstruction is done using a robust and accurate automatic segmentation procedure.&lt;br /&gt;
* Details on how to generate the brain surface mesh in BESA MRI can be found in the coregistration quickguide which is available on the BESA homepage: [http://www.besa.de/downloads/quick-guides/ Quick Guides].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BrainVoyager'''&lt;br /&gt;
* BrainVoyagerQX provides a semiautomatic procedure to generate meshes for the brain surface of the Talairach MRI. Please refer to the BrainVoyager Help to find out how to do this.&lt;br /&gt;
* The result of the BrainVoyager procedure is two meshes, one for the left and one for the right hemisphere.&lt;br /&gt;
* BESA Research requires a single mesh. Therefore, load first one mesh (''Meshes/Load Mesh..''.), and append the other mesh (''Meshes/Add Mesh...''). Merge these two meshes (''Meshes/Merge'' ''meshes in surface window'') and then save the result (''Meshes/Save Mesh...''). If possible, use the recommended name conventions for the resulting file (file name ends in &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf&amp;quot;). '''&amp;lt;/span&amp;gt;For instance, if the Talairach MRI is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, name the brain surface mesh &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
* See also the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website: [http://brainvoyager.com/Downloads.html BrainVoyager Downloads].&lt;br /&gt;
&lt;br /&gt;
==  Co-locating Dipoles and MRI Locations ==&lt;br /&gt;
&lt;br /&gt;
=== Co-locating Sources and MRI in the BESA Research Source Module ===&lt;br /&gt;
&lt;br /&gt;
If the alignment procedure using BESA MRI (or BrainVoyager) has been completed then you can load the individual structural MRI in the Source Module by pressing &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''''A''''&amp;lt;/span&amp;gt; or using a mouse right click and selecting '''''Display MRI'''''.&lt;br /&gt;
&lt;br /&gt;
Sources in the current model are then overlayed onto the individual MRI.&lt;br /&gt;
&lt;br /&gt;
A double-click at any location in the MRI will define a new source at the corresponding location in the BESA Research head model.&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (9).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
=== Coregistration with BrainVoyager after Alignment has been Done ===&lt;br /&gt;
&lt;br /&gt;
Alignment between BESA Research and BrainVoyager is only required once for a given BESA Research data set and the corresponding MRI. At a later time, if you want to Co-locate sources between BESA Research and BrainVoyager, perform the following steps in BrainVoyager:&lt;br /&gt;
* Load the MRI.&lt;br /&gt;
* Load the head surface mesh (''Meshes/Load Mesh..''.).&lt;br /&gt;
* Load the Coregistration File (''EEG-MEG BESA/Load Surface Points..''.).&lt;br /&gt;
&lt;br /&gt;
BrainVoyager is now ready for Co-location.&lt;br /&gt;
&lt;br /&gt;
=== Send a Dipole from BESA Research to BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
First, start BrainVoyager(QX). This can be done from the BESA Research Source Module by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager '''&amp;lt;/span&amp;gt;button. Note that in the Source Module, the ''Options / Preferences / BrainVoyager'' tab allows to define the path to BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
In BrainVoyager, [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|set up coregistration]].&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, highlight the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, click on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
Program control will automatically switch to BrainVoyager. The head will be cut at the section corresponding to the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (10).gif‎|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that all dipoles in the current model are sent to BrainVoyager. The highlighted dipole (here, the red dipole) determines the plane at which the head will be cut.&lt;br /&gt;
&lt;br /&gt;
Note that the dipoles are visible in both the surface module and in the 2D view:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (11).gif|400px]]&lt;br /&gt;
&lt;br /&gt;
=== Define a Dipole in BESA Research at a Location Defined in the MRI ===&lt;br /&gt;
&lt;br /&gt;
First set up coregistration (see chapter [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|Coregistration with BrainVoyager after Alignment has been Done]]).&lt;br /&gt;
&lt;br /&gt;
In the BrainVoyager 2D MRI view, place the mouse over the point at which you would like to define a dipole. Right click at this point. If this point lies within an fRMI cluster, BrainVoyager will automatically determine its center and use it as a seeding point instead. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send Seed Point To BESA....'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (12).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
The following Dialog is opened:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (13).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send to BESA'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The BESA Source Analysis window appears. The new dipole or regional source (depending on the setting in the ‘Options’ dialog in the Source Analysis window is now displayed at the corresponding location. If a dipole is seeded, BESA automatically fits its orientation. For further adjustment of the model, you may need to refit the orientation, e.g. at a certain time range, or in the presence of other sources.&lt;br /&gt;
&lt;br /&gt;
Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website: [http://brainvoyager.com/Downloads.html BrainVoyager Downloads].&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration File (*.sfh) ===&lt;br /&gt;
&lt;br /&gt;
This file is used to mediate between BESA Research and BESA MRI (or BrainVoyager(QX)). When it is first written by BESA Research, it contains a list of the digitized head surface points (fiducials, electrodes, other digitized points), e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
NrOfPoints: 68&lt;br /&gt;
 Fid_Nz                    0.00000     103.10000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T9                  -78.40000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T10                  73.00000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Ele_E1                  -28.70000      23.90000     122.30000   3 255    0    0&lt;br /&gt;
 Ele_E2                  -80.40000      19.80000      75.90000   3 255    0    0&lt;br /&gt;
 Ele_E3                  -84.00000      37.90000       9.00000   3 255    0    0&lt;br /&gt;
 Ele_E4                  -17.60000      92.90000      89.10000   3 255    0    0&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
 Ele_E63                  -6.80000    -104.00000      54.40000   3 255    0    0&lt;br /&gt;
 Ele_E64                 -42.80000     -46.90000     115.60000   3 255    0    0&lt;br /&gt;
 Ele_Cz'                  -2.10000       2.20000     131.10000   3 255    0    0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each line contains a label, the coordinates in the Head Coordinate system, and parameters specifying the size and color of the sensor or head surface point as displayed in BESA MRI (or BrainVoyager).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After aligning the coordinate systems, BESA MRI (or BrainVoyagerQX) appends lines defining the transformation between the BESA Research and the MRI coordinate systems:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Trans-data(in BV-coords): 3 translation, 3 rotation (in grad), 3 scale&lt;br /&gt;
37.435 15.811 2.820 0.025 1.938 8.779  1.009 0.973 0.977&lt;br /&gt;
Fiducials:&lt;br /&gt;
41.7873  148.0180  128.0844&lt;br /&gt;
154.7772  169.4783  204.1080&lt;br /&gt;
147.0154  168.9746  54.1266&lt;br /&gt;
Midpoint (in BV-coords):&lt;br /&gt;
128.0000  128.0000  128.0000&lt;br /&gt;
Volume:  C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.vmr&lt;br /&gt;
Surface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.srf&lt;br /&gt;
AC: 128 128 128&lt;br /&gt;
PC: 154 128 128&lt;br /&gt;
AP: 58 128 128&lt;br /&gt;
PP: 241 129 130&lt;br /&gt;
SP: 154 50 128&lt;br /&gt;
IP: 128 172 128&lt;br /&gt;
RP: 128 128 60&lt;br /&gt;
LP: 165 128 198&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Older versions of BrainVoyager.exe do not append the lines starting with &amp;quot;Volume&amp;quot;. In addition, the Talairach coordinates (starting at &amp;quot;AC: ...&amp;quot;) are not appended if they were not loaded in BrainVoyagerQX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, when the Coregistration Dialog in BESA Research has found the Talairach MRI and surface meshes, and you press the OK button, BESA Research appends the additional file names:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TalVolume: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.vmr&lt;br /&gt;
TalSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.srf&lt;br /&gt;
TalBrainSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal_wm.srf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA MRI already inserts the correct file names into the coregistration file when doing the coregistration. When also an EEG or MEG  FEM head model is generated then additional lines are appended to the coregistration file containing the file names of the generated FEM data files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRI Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend a high quality T1-weighted anatomical image with 1 mm³ voxels (e.g. 256 x 256 saggital scan with 1 mm spacing).&lt;br /&gt;
&lt;br /&gt;
In order to define the surface mesh, a clear contrast between the head surface and the outside of the head (T1-weighting) is required. Noise and measurement artifacts can influence the representation of the scalp surface. When doing the coregistration in BrainVoyager improvements in noisy images often can be achieved by cleaning up the image after first reading it using the tools provided by BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
For coregistration with head surface points, it is useful to include the whole head in the image, including nose and ears. If surface points on the nose are included with the EEG/MEG data set, these points help to stabilize the fit of head surface points to the surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EEG/MEG Data Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend several (30 or more) digitized head surface points in addition to the fiducials, including points on the nose (nose tip and sides). These points may include electrodes. In the case of electrodes, it is important to measure the distance from the scalp to the digitization point, i.e. the electrode thickness.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI</id>
		<title>Integration with MRI and fMRI</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Integration_with_MRI_and_fMRI"/>
				<updated>2021-11-25T13:10:20Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&amp;lt;br/&amp;gt;BESA MRI&lt;br /&gt;
|version = BESA Research 6.1 or higher&amp;lt;br/&amp;gt;BESA MRI 2.0 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- = BESA Research Integration with MRI and fMRI = --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Both for developing and evaluating dipole source models of EEG or MEG activity, it is useful to have access to structural MRI or fMRI data.&lt;br /&gt;
&lt;br /&gt;
The BESA MRI software allows to preprocess structural MRI data so that the individual anatomical information contained in the MRI can be utilized in BESA Research.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
BESA MRI makes it possible ...&lt;br /&gt;
&lt;br /&gt;
*... to align the EEG and MEG sensors with the structural MRI data.&lt;br /&gt;
&lt;br /&gt;
*... to read and display the aligned, individual Talairach structural MRIs directly in the BESA Research Source Analysis module. In this way, source analysis results can be presented on top of the aligned MRIs, which allows us to evaluate the anatomical regions to which the reconstructed sources may correspond.&lt;br /&gt;
&lt;br /&gt;
*... to use an individual, realistically shaped FEM or BEM head model for source analysis in BESA Research. FEM and BEM head models take into account the individual volume conduction properties of the subject's head derived from the structural MRI data. This allows for more accurate source analysis (Yvert 1997, Lanfer 2012).&lt;br /&gt;
&lt;br /&gt;
*... overlay source analysis results obtained in BESA Research with fMRI data.&lt;br /&gt;
&lt;br /&gt;
*... use fMRI BOLD regions or MRI structures to initialize dipole models.&lt;br /&gt;
&lt;br /&gt;
*... use fMRI image to constrain EEG/MEG source localization &lt;br /&gt;
&lt;br /&gt;
*... send discrete source analysis results from BESA Research to BESA MRI to visualize them in both Talairach and subject-specific (ACPC) coordinates.&lt;br /&gt;
&lt;br /&gt;
The chapters below describe the steps necessary to integrate the MRI and fMRI data with BESA Research. &lt;br /&gt;
&lt;br /&gt;
It is also possible to use BESA Research with BrainVoyager. Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website: &lt;br /&gt;
[https://www.brainvoyager.com/downloads/downloads.html BrainVoyager Downloads].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Aligning Coordinate Systems'''&lt;br /&gt;
&lt;br /&gt;
* For a given BESA data set, the electrode and other head surface points need to be aligned to the MRI coordinates.&lt;br /&gt;
* The basic steps necessary to align the EEG electrode locations, the MEG sensors and the MRI are described in Section [[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How Coregistration is done]].&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BESA MRI can be found in the coregistration quick guide which is available on the BESA homepage ([http://www.besa.de/downloads/quick-guides/ Quick Guides]).&lt;br /&gt;
* Detailed instructions on how to align EEG / MEG and MRI data using BrainVoyager are described in Section [[Integration_with_MRI_and_fMRI#Setting_Up_Coregistration_Using_BrainVoyager|How To set up Coregistration between BESA and BrainVoyager]].&lt;br /&gt;
* In BESA Research, all necessary settings with regard to the alignment are made in the [[Integration_with_MRI_and_fMRI#The_Coregistration_Dialog|Coregistration Dialog]].&lt;br /&gt;
* Requirements with respect to the MRI data for a good coregistration can be found in Section [[#MRI_Requirements_for_Good_Coregistration|MRI Requirements for Good Coregistration]].&lt;br /&gt;
* Requirements with respect to EEG and MEG data for a good coregistration can be found in Section [[#EEG/MEG Data Requirements for Good Coregistration|EEG/MEG Data Requirements for Good Coregistration]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Generating an individual, realistically shaped FEM head model'''&lt;br /&gt;
&lt;br /&gt;
* The generation of a FEM head model that can be used in BESA Research is done in BESA MRI as an additional step following the EEG / MEG to MRI coregistration.&lt;br /&gt;
* Detailed instructions on how to generate the FEM head model can be found in the coregistration quick guide which is available on the BESA homepage ([http://www.besa.de/downloads/quick-guides/ Quick Guides]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Co-locating dipoles and MRI locations'''&lt;br /&gt;
&lt;br /&gt;
* After aligning the EEG / MEG and the MRI data it is possible to co-locate dipoles and MRI locations. This means, it is possible to visualize the dipoles and to specify the dipole parameters in the MRI coordinate system.&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-locate sources and MRI in the BESA Research Source Module]] describes how in the BESA Research Source Analysis module dipoles can directly be visualized in the space of the individual MRI.&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]] describes how to send a source model from BESA Research to BrainVoyager for further inspection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
Lanfer, B., I. Paul-Jordanov, M. Scherg, and C. H. Wolters. “Influence of Interior Cerebrospinal Fluid Compartments on EEG Source Analysis.” In Proceedings BMT 2012, Vol. 57. Jena: De Gruyter, 2012. doi:10.1515/bmt-2012-4020.&lt;br /&gt;
&lt;br /&gt;
Yvert, B., O. Bertrand, M. Thévenet, J. F. Echallier, and J. Pernier. “A Systematic Evaluation of the Spherical Model Accuracy in EEG Dipole Localization.” Electroencephalography and Clinical Neurophysiology 102, no. 5 (May 1997): 452–59. doi:16/S0921-884X(97)96611-X.&lt;br /&gt;
&lt;br /&gt;
== How Coregistration is done ==&lt;br /&gt;
&lt;br /&gt;
This section outlines the basic steps to coregister the EEG / MEG data to an individual MRI. These steps are necessary to load an individual MRI into BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''What happens:'''&lt;br /&gt;
&lt;br /&gt;
* EEG / MEG sensor locations and the MRI data are defined in different coordinate systems. Setting up coregistration is the process of aligning the two coordinate systems.&lt;br /&gt;
* BESA Research uses the ''Coregistration Dialog'' to coordinate the alignment procedure.&lt;br /&gt;
* Alignment is done with the ''AC-PC-transformed MRI''.&lt;br /&gt;
* BESA Research displays the ''Talairach-transformed MRI'' in the source analysis module.&lt;br /&gt;
* A coregistration file (with the extension &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.sfh'''&amp;lt;/span&amp;gt;&amp;quot;) is used to mediate between BESA Research and BESA MRI (or BrainVoyagerQX):&lt;br /&gt;
* BESA Research writes the coregistration file which contains the coordinates of head surface points (fiducials, electrodes, other digitized surface points).&lt;br /&gt;
* The coordinates are read into BESA MRI (or BrainVoyager), and aligned with the AC-PC-transformed MRI. The alignment information is then appended to the ''coregistration file''. The names of the AC-PC MRI (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.vmr&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) and the surface mesh (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.srf&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;), and, if available, the Talairach transformation, are also appended.&lt;br /&gt;
* BESA Research reads the coregistration file and appends the name of the Talairach-transformed MRI and head surface. If a brain surface has been created, this is also appended.&lt;br /&gt;
* Subsequently, BESA Research reads the coregistration file automatically when loading the data file.&lt;br /&gt;
* In the BESA Research source module, the individual MRI is displayed instead of the standard MRI. Talairach coordinates of dipoles are the &amp;quot;real&amp;quot; Talairach coordinates as defined, e.g., in BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The steps you have to take (once for each data set):'''&lt;br /&gt;
&lt;br /&gt;
* From the BESA Research ''Coregistration Dialog'', write a coregistration file. Switch to BESA MRI (or BrainVoyagerQX).&lt;br /&gt;
* If BESA MRI is used follow the steps in the coregistration quickguide which is available on the BESA homepage ([http://www.besa.de/downloads/quick-guides/ Quick Guides]).&lt;br /&gt;
* If BrainVoyager is used follow the steps in Section “''How to set up coregistration between BESA and BrainVoyager”.''&lt;br /&gt;
* Back in BESA Research, reload the altered '''coregistration file'''. When using BESA MRI the file names of the generated surface and volume data files will be automatically filled in. When using BrainVoyager file names are only filled in automatically when the files are named according to the file naming conventions. Otherwise, file names have to be set manually.&lt;br /&gt;
* The coregistration file is now associated with the data file in the BESA Research database and will be used automatically the next time the file is opened in BESA Research. If the database entry is cleared, and the data are reloaded, you must make sure the coregistration file is also loaded (either using the ''Coregistration Dialog'' or the ''Channel and digitized head surface point information Dialog'').&lt;br /&gt;
&lt;br /&gt;
==  Alignment of BESA and MRICoordinate Systems  ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration Dialog ===&lt;br /&gt;
&lt;br /&gt;
The dialog is opened either from the ''Channel and digitized head surface point information'' (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) ''dialog ''by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Edit/Coreg'''&amp;lt;/span&amp;gt; button, or from the main menu (&amp;quot;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''File/MRI&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Coregistration...'''&amp;lt;/span&amp;gt;&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the coregistration dialog is invoked from an EEG data set in which no digitized electrode coordinates are available (i.e. standard electrode positions located on a sphere are assumed), BESA Research presents a warning message, saying that for MRI coregistration realistic electrode coordinates produce better results. BESA Research has a list of such realistic standard coordinates (i.e. located on a pre-defined standard head surface) for various electrodes available in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;, which is located in the Standard Electrode folder. If all electrodes in the dataset are listed in this file, a dialog window suggests to apply this file to the current data set, i.e. to switch from standard sphere coordinates to the standard realistic electrode coordinates in file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Default.sfp'''&amp;lt;/span&amp;gt;. If the suggestion is accepted, &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''default.sfp'''&amp;lt;/span&amp;gt; is assigned to the dataset (see Channel and digitized head surface point information (&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-L'''&amp;lt;/span&amp;gt;) dialog).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The Dialog:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (1).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Select MRI prog'''&amp;lt;/span&amp;gt; button to select your preferred MRI program. The current choice is between ''BESA MRI.exe'' and ''BrainVoyagerQX.exe''. The path to the MRI program is saved (in ''System\BESA.set'') and will be remembered by BESA Research. The top right hand button (now showing '''BESA MRI''') shows the current selection.&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BESA MRI'''&amp;lt;/span&amp;gt; button to start the process of aligning the BESA Research and MRI coordinate systems. If no coregistration (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.sfh&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;) file is defined in the dialog (empty ''Surface coregistration file edit box''), BESA Research will first prompt for a file name. We recommend saving this file to the folder where the MRIs are kept. The MRI program will then be started. When you return to the ''Coregistration Dialog'', BESA Research checks if the ''Coregistration File'' has changed. If so, the dialog is updated with the new information.&lt;br /&gt;
* Press the top &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse... '''&amp;lt;/span&amp;gt;button to select a preexisting ''Coregistration File''.&lt;br /&gt;
* The entries in the edit boxes below show the files that will be used in the BESA Research Source Analysis module when the individual MRI is loaded. When using BESA MRI the file names will be automatically filled in. If you are using BrainVoagerQX and you are following our (and the BrainVoyagerQX) recommended naming conventions for files, and the files exist, then the names will be filled in automatically after you have completed the alignment procedure in BrainVoyagerQX. Otherwise you may have to browse for the files.&lt;br /&gt;
* Below the edit boxes the FEM field states whether all necessary information for the individual FEM head model were found in the coregistration file. If the field says ''Individual FEM for EEG'' ''defined!'' then all necessary data was found and the individual FEM EEG head model can be used in the BESA Research Source Analysis module. A similar message indicates whether the FEM MEG head model is available.&lt;br /&gt;
* &amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note that the MRI and the surfaces are Talairach-transformed! Alignment between BESA Research and the individual MRI is done with the MRI transformed to the AC-PC coordinate system, but the BESA Research Source Analysis module uses the Talairach-transformed image data and surfaces.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting Up Coregistration Using BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
It is assumed that you know how to load an MRI as a 3D data set into BrainVoyagerQX, and how to clean the image so that regions outside the head are black. We also assume knowledge of how to create AC-PC-aligned and Talairach-transformed MRIs.&lt;br /&gt;
&lt;br /&gt;
Perform the following steps:&lt;br /&gt;
&lt;br /&gt;
* BESA Research. Start the ''Coregistration Dialog''. Export the Coregistration File (head surface points) from your data by pressing the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''BrainVoyagerQX'''&amp;lt;/span&amp;gt; button in the dialog. Save the file to the directory where your MRI is located. BrainVoyagerQX is started.&lt;br /&gt;
* BrainVoyagerQX. Load the MRI corresponding to the EEG/MEG data. For optimal performance, the MRI should be cleaned so that regions outside the head are black. Prepare an AC-PC-transformed MRI and a Talairach MRI. For each, generate a surface mesh. Save these files following our recommended naming conventions (see chapter [[Integration_with_MRI_and_fMRI#MRI_file_Name_Conventions|MRI File Name Conventions]]). Save the Talairach coordinate file (&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt;). If these steps have already been performed, load the ACPC MRI and load the ACPC mesh. If you want to generate a brain surface mesh, see chapter [[Integration_with_MRI_and_fMRI#How_to_Generate_a_Brain_Surface_Mesh|How to Generate a Brain Surface Mesh]].&lt;br /&gt;
* BrainVoyagerQX. Load the Coregistration File (''EEG-MEG BESA/Load Surface Points''). The points will be displayed, but they are not aligned to the head:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (2).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Define fiducial points on the head surface. Right click on the 3D head display and select the ''Fiducials Dialog'' in the drop-down menu:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (3).gif ‎]]  [[Image:MRI Integration (4).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Rotate the head (by holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift '''&amp;lt;/span&amp;gt;button down and clicking and dragging with the mouse) so that the Nasion is clearly visible. Move the mouse to the Nasion, and press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl+Left Click'''&amp;lt;/span&amp;gt;. The coordinates of the Nasion are inserted into the dialog. Repeat for the left preauricular point, and then for the right preauricular point.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (5).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: if you have defined your fiducials differently in your BESA Research data (e.g. ear holes), click on the corresponding points in the MRI. If you have additional head surface points (step 8), accuracy in pinpointing the fiducials is not critical.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. In the Fiducials Dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit fiducials'''&amp;lt;/span&amp;gt; button. The head surface points are now more or less aligned to the head.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (6).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BrainVoyagerQX. Now select '''''EEG-MEG BESA/Fit Surface Points...'''''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (7).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you do not see the right half of the dialog, press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Advanced &amp;gt;&amp;gt;'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Specify the distances of the digitization points from the skin. In the illustration above, the digitization points for electrodes are estimated to be 8 mm from the surface of the head. For the purpose of accurate alignment, the distance of digitization points from skin section of the dialog needs to be filled in correctly. We recommend that &amp;quot;Restrain solution around fiducials&amp;quot; is checked, and a reasonable limit (here 3 mm) of the restraint is defined. Then press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (8).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BrainVoyager fits the points to the head, stretching x, y, and z coordinates to obtain a better fit than before.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;Note: The fit performed during this step accounts for scaling inequalities between the x, y, and z axes in the MRI. Coregistration gains in accuracy over the use of fiducials alone a) because more head surface points are used, and b) because the scaling inequalities are accounted for.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Alignment is now completed. If you only want to display the structural MRI in the BESA Source Module, you can return to the BESA Coregistration Dialog.&lt;br /&gt;
* BESA Research. When you switch back to the Coregistration Dialog, BESA Research will try to fill in the names of the Talairach MRI and surface meshes. If the names are not filled in, use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Browse...'''&amp;lt;/span&amp;gt; buttons to select the MRI and surface meshes. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt; to save the Coregistration File. Alignment is completed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The alignment steps need only be performed once for a given MRI and EEG/MEG data set. Otherwise, after starting BrainVoyager, just load the MRI, the surface mesh, and the surface points (see [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done |How to Set Up Coregistration with BrainVoyager after Alignment has been Done]]). Now the following actions are possible: see chapters&lt;br /&gt;
&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Co-locating_Sources_and_MRI_in_the_BESA_Research_Source_Module|How to Co-Locate Sources and MRI in the BESA Research Source Module]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Send_a_Dipole_from_BESA_Research_to_BrainVoyager|How to Send a Dipole from BESA Research to BrainVoyager]]&lt;br /&gt;
* [[Integration_with_MRI_and_fMRI#Define_a_Dipole_in_BESA_Research_at_a_Location_Defined_in_the_MRI|How to Define a Dipole in BESA Research at a Location Defined in the MRI]]&lt;br /&gt;
&lt;br /&gt;
=== MRI file Name Conventions ===&lt;br /&gt;
&lt;br /&gt;
If you follow the naming conventions for file names as described here, BESA Research detects the file names it requires, and the ''Coregistration Dialog'' is filled in automatically.&lt;br /&gt;
&lt;br /&gt;
Please note that BESA MRI automatically uses these naming conventions for the generated files.&lt;br /&gt;
&lt;br /&gt;
* '''The AC-PC MRI file name''' should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.srf'''&amp;lt;/span&amp;gt;&amp;quot;. After alignment, BrainVoyagerQX writes these names to the Coregistration File.&lt;br /&gt;
* '''The Talairach MRI file name '''should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, and the corresponding surface mesh name should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If defined, the brain surface mesh should end with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot; ('''WM''' = '''w'''hite '''m'''atter).&lt;br /&gt;
* '''How BESA Research finds the Talairach files.''' When BESA Research rereads the Coregistration File after alignment of the coordinate systems, it finds the ACPC file names and defines the corresponding TAL file names. If these files exist, the names are entered into the Coregistration Dialog. For instance, if the Coregistration File contains the name &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for the files &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL.srf'''&amp;lt;/span&amp;gt;&amp;quot;, and &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;. If these files exist, they are entered into the dialog.&lt;br /&gt;
* '''Older BrainVoyager version.''' If you use BrainVoyager.exe to align coordinate systems, the file names are not saved with the Coregistration File. In this case, browse for the Talairach or the ACPC MRI from the Coregistration Dialog. BESA Research will use the rules as described above to insert the correct file names into the dialog.&lt;br /&gt;
* '''Missing Talairach coordinates.''' If, after aligning coordinate systems, the Talairach coordinates are missing from the Coregistration File (you forgot to load the Talairach coordinates in BrainVoyagerQX, or you used BrainVoyager.exe), BESA Research will look for a file ending with &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot;, and read the coordinates from this file. You can also browse for a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.tal&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file in the Coregistration Dialog. For instance, if the MRI file is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.vmr'''&amp;lt;/span&amp;gt;&amp;quot; or &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MR_'''&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, BESA Research will look for &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI_PB_ACPC.tal'''&amp;lt;/span&amp;gt;&amp;quot; to find the Talairach coordinates.&lt;br /&gt;
* '''File names in the Coregistration File are saved relative to the Coregistration File location, if they are in the same folder.''' If the MRIs are in the same folder as the Coregistration File they will be recorded as &amp;quot;.\filename&amp;quot; (e.g. &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''.\MRI PB_tal.vmr'''&amp;lt;/span&amp;gt;&amp;quot;). This means that you can copy the Coregistration File together with the MRIs and meshes to a different folder, and BESA Research will be able to locate the files when the Coregistration File is opened. If the MRIs are saved in a different folder from the Coregistration File, the absolute paths are saved in the file. If the files are moved to new locations, you will have to restart the Coregistration Dialog and redefine the file locations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How to Generate a Brain Surface Mesh ===&lt;br /&gt;
&lt;br /&gt;
BESA Research is able to compute surface images, such as (Cortical LORETA, Cortical CLARA, Minimum Norm) using an individual cortex surface as the source space. A suitable cortex surface for this purpose can be effortlessly created using BESA MRI. Alternatively, BrainVoyager can be used for the creation of the brain surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BESA MRI'''&lt;br /&gt;
* The brain surface generation is performed as one work step of the BESA MRI segmentation workflow.&lt;br /&gt;
* The cortex surface reconstruction is done using a robust and accurate automatic segmentation procedure.&lt;br /&gt;
* Details on how to generate the brain surface mesh in BESA MRI can be found in the coregistration quickguide which is available on the BESA homepage: [http://www.besa.de/downloads/quick-guides/ Quick Guides].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''BrainVoyager'''&lt;br /&gt;
* BrainVoyagerQX provides a semiautomatic procedure to generate meshes for the brain surface of the Talairach MRI. Please refer to the BrainVoyager Help to find out how to do this.&lt;br /&gt;
* The result of the BrainVoyager procedure is two meshes, one for the left and one for the right hemisphere.&lt;br /&gt;
* BESA Research requires a single mesh. Therefore, load first one mesh (''Meshes/Load Mesh..''.), and append the other mesh (''Meshes/Add Mesh...''). Merge these two meshes (''Meshes/Merge'' ''meshes in surface window'') and then save the result (''Meshes/Save Mesh...''). If possible, use the recommended name conventions for the resulting file (file name ends in &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''_TAL_WM.srf&amp;quot;). '''&amp;lt;/span&amp;gt;For instance, if the Talairach MRI is named &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL.vmr'''&amp;lt;/span&amp;gt;&amp;quot;, name the brain surface mesh &amp;quot;&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''MRI PB_TAL_WM.srf'''&amp;lt;/span&amp;gt;&amp;quot;.&lt;br /&gt;
* See also the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website: [http://brainvoyager.com/Downloads.html BrainVoyager Downloads].&lt;br /&gt;
&lt;br /&gt;
==  Co-locating Dipoles and MRI Locations ==&lt;br /&gt;
&lt;br /&gt;
=== Co-locating Sources and MRI in the BESA Research Source Module ===&lt;br /&gt;
&lt;br /&gt;
If the alignment procedure using BESA MRI (or BrainVoyager) has been completed then you can load the individual structural MRI in the Source Module by pressing &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''''A''''&amp;lt;/span&amp;gt; or using a mouse right click and selecting '''''Display MRI'''''.&lt;br /&gt;
&lt;br /&gt;
Sources in the current model are then overlayed onto the individual MRI.&lt;br /&gt;
&lt;br /&gt;
A double-click at any location in the MRI will define a new source at the corresponding location in the BESA Research head model.&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (9).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
=== Coregistration with BrainVoyager after Alignment has been Done ===&lt;br /&gt;
&lt;br /&gt;
Alignment between BESA Research and BrainVoyager is only required once for a given BESA Research data set and the corresponding MRI. At a later time, if you want to Co-locate sources between BESA Research and BrainVoyager, perform the following steps in BrainVoyager:&lt;br /&gt;
* Load the MRI.&lt;br /&gt;
* Load the head surface mesh (''Meshes/Load Mesh..''.).&lt;br /&gt;
* Load the Coregistration File (''EEG-MEG BESA/Load Surface Points..''.).&lt;br /&gt;
&lt;br /&gt;
BrainVoyager is now ready for Co-location.&lt;br /&gt;
&lt;br /&gt;
=== Send a Dipole from BESA Research to BrainVoyager ===&lt;br /&gt;
&lt;br /&gt;
First, start BrainVoyager(QX). This can be done from the BESA Research Source Module by pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager '''&amp;lt;/span&amp;gt;button. Note that in the Source Module, the ''Options / Preferences / BrainVoyager'' tab allows to define the path to BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
In BrainVoyager, [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|set up coregistration]].&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, highlight the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
In the BESA Research Source Module, click on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
Program control will automatically switch to BrainVoyager. The head will be cut at the section corresponding to the dipole of interest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (10).gif‎|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that all dipoles in the current model are sent to BrainVoyager. The highlighted dipole (here, the red dipole) determines the plane at which the head will be cut.&lt;br /&gt;
&lt;br /&gt;
Note that the dipoles are visible in both the surface module and in the 2D view:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (11).gif|400px]]&lt;br /&gt;
&lt;br /&gt;
=== Define a Dipole in BESA Research at a Location Defined in the MRI ===&lt;br /&gt;
&lt;br /&gt;
First set up coregistration (see chapter [[Integration_with_MRI_and_fMRI#Coregistration_with_BrainVoyager_after_Alignment_has_been_Done|Coregistration with BrainVoyager after Alignment has been Done]]).&lt;br /&gt;
&lt;br /&gt;
In the BrainVoyager 2D MRI view, place the mouse over the point at which you would like to define a dipole. Right click at this point. If this point lies within an fRMI cluster, BrainVoyager will automatically determine its center and use it as a seeding point instead. Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send Seed Point To BESA....'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (12).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
The following Dialog is opened:&lt;br /&gt;
&lt;br /&gt;
[[Image:MRI Integration (13).gif ‎]]&lt;br /&gt;
&lt;br /&gt;
Press &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Send to BESA'''&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#00000a;&amp;quot;&amp;gt;.&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The BESA Source Analysis window appears. The new dipole or regional source (depending on the setting in the ‘Options’ dialog in the Source Analysis window is now displayed at the corresponding location. If a dipole is seeded, BESA automatically fits its orientation. For further adjustment of the model, you may need to refit the orientation, e.g. at a certain time range, or in the presence of other sources.&lt;br /&gt;
&lt;br /&gt;
Detailed instructions on (f)MRI import and processing in Brain Voyager is provided by the '''BrainVoyager Getting Started Guide''' that can be downloaded from the Brain Innovation website: [http://brainvoyager.com/Downloads.html BrainVoyager Downloads].&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
=== The Coregistration File (*.sfh) ===&lt;br /&gt;
&lt;br /&gt;
This file is used to mediate between BESA Research and BESA MRI (or BrainVoyager(QX)). When it is first written by BESA Research, it contains a list of the digitized head surface points (fiducials, electrodes, other digitized points), e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
NrOfPoints: 68&lt;br /&gt;
 Fid_Nz                    0.00000     103.10000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T9                  -78.40000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Fid_T10                  73.00000       0.00000       0.00000   3 255  128  255&lt;br /&gt;
 Ele_E1                  -28.70000      23.90000     122.30000   3 255    0    0&lt;br /&gt;
 Ele_E2                  -80.40000      19.80000      75.90000   3 255    0    0&lt;br /&gt;
 Ele_E3                  -84.00000      37.90000       9.00000   3 255    0    0&lt;br /&gt;
 Ele_E4                  -17.60000      92.90000      89.10000   3 255    0    0&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
 Ele_E63                  -6.80000    -104.00000      54.40000   3 255    0    0&lt;br /&gt;
 Ele_E64                 -42.80000     -46.90000     115.60000   3 255    0    0&lt;br /&gt;
 Ele_Cz'                  -2.10000       2.20000     131.10000   3 255    0    0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each line contains a label, the coordinates in the Head Coordinate system, and parameters specifying the size and color of the sensor or head surface point as displayed in BESA MRI (or BrainVoyager).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After aligning the coordinate systems, BESA MRI (or BrainVoyagerQX) appends lines defining the transformation between the BESA Research and the MRI coordinate systems:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Trans-data(in BV-coords): 3 translation, 3 rotation (in grad), 3 scale&lt;br /&gt;
37.435 15.811 2.820 0.025 1.938 8.779  1.009 0.973 0.977&lt;br /&gt;
Fiducials:&lt;br /&gt;
41.7873  148.0180  128.0844&lt;br /&gt;
154.7772  169.4783  204.1080&lt;br /&gt;
147.0154  168.9746  54.1266&lt;br /&gt;
Midpoint (in BV-coords):&lt;br /&gt;
128.0000  128.0000  128.0000&lt;br /&gt;
Volume:  C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.vmr&lt;br /&gt;
Surface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_acpc.srf&lt;br /&gt;
AC: 128 128 128&lt;br /&gt;
PC: 154 128 128&lt;br /&gt;
AP: 58 128 128&lt;br /&gt;
PP: 241 129 130&lt;br /&gt;
SP: 154 50 128&lt;br /&gt;
IP: 128 172 128&lt;br /&gt;
RP: 128 128 60&lt;br /&gt;
LP: 165 128 198&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Older versions of BrainVoyager.exe do not append the lines starting with &amp;quot;Volume&amp;quot;. In addition, the Talairach coordinates (starting at &amp;quot;AC: ...&amp;quot;) are not appended if they were not loaded in BrainVoyagerQX.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, when the Coregistration Dialog in BESA Research has found the Talairach MRI and surface meshes, and you press the OK button, BESA Research appends the additional file names:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TalVolume: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.vmr&lt;br /&gt;
TalSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal.srf&lt;br /&gt;
TalBrainSurface: C:\BESA\Examples\ERP P300-Auditory\MRI_PB_tal_wm.srf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA MRI already inserts the correct file names into the coregistration file when doing the coregistration. When also an EEG or MEG  FEM head model is generated then additional lines are appended to the coregistration file containing the file names of the generated FEM data files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MRI Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend a high quality T1-weighted anatomical image with 1 mm³ voxels (e.g. 256 x 256 saggital scan with 1 mm spacing).&lt;br /&gt;
&lt;br /&gt;
In order to define the surface mesh, a clear contrast between the head surface and the outside of the head (T1-weighting) is required. Noise and measurement artifacts can influence the representation of the scalp surface. When doing the coregistration in BrainVoyager improvements in noisy images often can be achieved by cleaning up the image after first reading it using the tools provided by BrainVoyager.&lt;br /&gt;
&lt;br /&gt;
For coregistration with head surface points, it is useful to include the whole head in the image, including nose and ears. If surface points on the nose are included with the EEG/MEG data set, these points help to stabilize the fit of head surface points to the surface mesh.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EEG/MEG Data Requirements for Good Coregistration ===&lt;br /&gt;
&lt;br /&gt;
We recommend several (30 or more) digitized head surface points in addition to the fiducials, including points on the nose (nose tip and sides). These points may include electrodes. In the case of electrodes, it is important to measure the distance from the scalp to the digitization point, i.e. the electrode thickness.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Research Manual]]&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_Functions_of_the_Window</id>
		<title>Source Analysis Functions of the Window</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_Functions_of_the_Window"/>
				<updated>2021-11-25T13:02:00Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The Source Analysis module window is subdivided into six main parts (boxes) which will be explained briefly in the following sections:&lt;br /&gt;
* The Channel Box (left)&lt;br /&gt;
* The Variance Box (top center)&lt;br /&gt;
* The Source Box (bottom center)&lt;br /&gt;
* The Parameter Box (top right)&lt;br /&gt;
* The Head Box (mid right)&lt;br /&gt;
* The 3D Window (bottom right)&lt;br /&gt;
&lt;br /&gt;
Note that the 3D window will not normally appear automatically (unless specified in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options / Preferences'''&amp;lt;/span&amp;gt; menu), and the head box will take up more space if the 3D window is not displayed.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (1).gif ]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to jump to the associated section. Use the Back button of the Windows® help to jump back to this page.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''title bar''' contains information about the data file, the filename, the condition name, the filter settings, and the selected time interval.&lt;br /&gt;
&lt;br /&gt;
Most of the functions and commands can be chosen from the main '''menu bar''' below the title bar. However, all important commands are also available via a right mouse click. Whenever you right-click, a context-sensitive popup menu will appear containing the available commands.&lt;br /&gt;
&lt;br /&gt;
A detailed description of the commands of the '''menu bar''' and the different popup menus is given in the online help ''Reference ''chapter.&lt;br /&gt;
&lt;br /&gt;
At the bottom, you will notice the '''status bar''', which gives information about the current mouse position (latency or 3D position) and the current cursor location or the fit interval(s). (See the section on the '''status bar''' in the online help ''Reference ''chapter).&lt;br /&gt;
&lt;br /&gt;
The individual size of the boxes can be modified: Try placing the mouse over the vertical double line that separates the source box and the head box. The horizontal arrow that appears indicates that you can move this separator by dragging with the left mouse button.&lt;br /&gt;
&lt;br /&gt;
The same is possible for the horizontal double line bounding the variance box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Channel Box ==&lt;br /&gt;
&lt;br /&gt;
The channel box normally shows the signals at each channel. The display depends on the state of the push buttons at the top of the channel box.&lt;br /&gt;
&lt;br /&gt;
The figure below shows an example with the display of the measured data waveforms (violet) and the residual waveforms (red) at each channel. The channel labels are displayed to the left of each waveform.&lt;br /&gt;
&lt;br /&gt;
An overplot of all waveforms is displayed above the single waveforms (labeled ''All'').&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (2).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below the first row of buttons, there is a '''description of the current condition''' containing the condition name, the filter settings and the condition epoch. Below the condition epoch, the baseline of the current condition is displayed as horizontal black/red line.&lt;br /&gt;
&lt;br /&gt;
At the bottom, you see the''' figure legend '''describing the used colors and the number of displayed channels (or PCA components).&lt;br /&gt;
&lt;br /&gt;
The '''Channel buttons''' at the top of the channels box specify which waveforms are displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Data'''&amp;lt;/span&amp;gt; button toggles the display of the data (measured signals) of the visible channels (violet waveforms). If you double click on this button the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Model '''&amp;lt;/span&amp;gt;and&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Residual'''&amp;lt;/span&amp;gt; buttons are released and the channels are re-sorted by the amplitude of the measured data.&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; button to toggle the display of the modeled data (blue waveforms). The modeled data are calculated from the waveforms of the active sources in the current solution using the currently chosen head model. (The source waveforms are displayed in the source box, the head model is set and displayed in the parameter box.) Pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model '''&amp;lt;/span&amp;gt;button toggles between the display of all active sources (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''M-A'''&amp;lt;/span&amp;gt;) and the display of the model waveforms which result from the contributions of all sources whose Fit/No fit button is pressed (button is labeled M-F). Note that the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Residual'''&amp;lt;/span&amp;gt; button is released if the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; button is pressed without holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
* Press the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Residual'''&amp;lt;/span&amp;gt; button to toggle the residual (unexplained) signal (red waveforms), i.e. the difference between measured and modeled data. If you double click on this button the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Data'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; buttons are released and the channels are re-sorted by the amplitude of the residual. Note that the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Model'''&amp;lt;/span&amp;gt; button is released if the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Residual'''&amp;lt;/span&amp;gt; button is pressed without holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key.'''&amp;lt;/span&amp;gt;&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Sort'''&amp;lt;/span&amp;gt; button (fourth button from the left) changes the ordering of the channels. Pushing this button switches between original order (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Order'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ord'''&amp;lt;/span&amp;gt;.), sorting by the amplitude of the measured data (||Data|| or ||D||), and sorting by the amplitude of the residual (||Res.|| or ||R||). In practice, by using one of the sorting modes ||Data|| or ||Residual||, you will only have to display the first few channels during the fitting procedure, since the channels with the largest signals are shown at the top.&lt;br /&gt;
* Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''P.C.A.'''&amp;lt;/span&amp;gt; button to start a Principal Components Analysis (PCA) over the marked fit interval(s) (if no fit interval is set the PCA is computed over the whole epoch). The percentage variance accounted for by each component is shown at the left of each waveform. When the PCA is displayed, data, model, and residual waveforms are not visible. Note that if the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Residual '''&amp;lt;/span&amp;gt;button is down and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Data'''&amp;lt;/span&amp;gt; button is up, the PCA is computed for the residual data and not the measured data.&lt;br /&gt;
* The button at the far right is the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''EEG/MEG/MEEG'''&amp;lt;/span&amp;gt; button. Pushing this button toggles between the data sets (EEG, MEG and MEEG) of the current condition, if combined EEG and MEG have been recorded. The label of the button shows which data set is currently displayed.&lt;br /&gt;
For combined recordings, it is possible to combine EEG and MEG for fitting. In this case, each channel is normalized by the signal in the defined baseline interval. Changing the baseline interval leads to a re-computation of data in this case. In order to use MEEG, the head models of EEG and MEG need to match to ensure a common source space (e.g. spherical head models for both, or individual FEM / BEM for both). Adjust the head models individually for the EEG and MEG modes first before entering MEEG mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the top left below the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Data'''&amp;lt;/span&amp;gt; button, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Condition'''&amp;lt;/span&amp;gt; buttons (labeled with two arrows) enable fast switching between different conditions. They are enabled only if at least two conditions have been loaded.&lt;br /&gt;
&lt;br /&gt;
Below the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Condition'''&amp;lt;/span&amp;gt; buttons, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Toggle Electrode Configuration'''&amp;lt;/span&amp;gt; button toggles between using the original channels (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Org'''&amp;lt;/span&amp;gt;) or using an interpolated montage of 81 electrodes at standard locations (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Std'''&amp;lt;/span&amp;gt;). This montage allows comparison of different subjects at standard electrode locations. Note: If MEG channels are displayed this button is not available.&lt;br /&gt;
&lt;br /&gt;
The channel box is bounded at the right by three scroll bars. Use the topmost one to change the number of displayed channels. The scroll bar below ('''select displayed channels''') can be used to scroll through the channels. The bottom one, consisting only of two arrows, changes the amplitude scaling of the displayed signals ('''scale waveforms''').&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MAG'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''GRD'''&amp;lt;/span&amp;gt; buttons at the bottom of the channel box appear only if an MEG data set containing both magnetometer and gradiometer sensors is displayed, or if MEEG mode is active. The buttons are used to toggle the display of the magnetometer and gradiometer channels. In case of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MEEG'''&amp;lt;/span&amp;gt; mode, &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''EEG'''&amp;lt;/span&amp;gt; and either of &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MAG'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''GRD'''&amp;lt;/span&amp;gt; buttons (or both) are displayed. Combination of any MEG mode with the EEG data can then be toggled in that way.&lt;br /&gt;
&lt;br /&gt;
In the figure above you see one '''fit interval''', shown in a darker color. The fit interval is used for fitting, computing the PCA, and more.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
In the channel box, it is possible to set the cursor or a fit interval with the left mouse button. If you click on the text in the top left corner, you may change the condition name. By clicking on the baseline, a new baseline interval can be specified.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the channel box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Channel Box popup menu'''&amp;lt;/span&amp;gt; appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
== Variance Box ==&lt;br /&gt;
&lt;br /&gt;
The variance box shows &amp;lt;span style=&amp;quot;color:#0000FF;&amp;quot;&amp;gt;the global field power (blue)&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#FF0000;&amp;quot;&amp;gt;the residual variance (red)&amp;lt;/span&amp;gt; in logarithmic scaling, relative to the maximum global field power.&lt;br /&gt;
* '''The global field power''': the sum of squares of the activity over all channels of the current data set&lt;br /&gt;
* '''The residual variance''': the sum of squares of the unexplained signal&lt;br /&gt;
&lt;br /&gt;
Note that the global field power is scaled from bottom to top, whereas the residual variance is scaled from top to bottom. The corresponding waveform scales at the left of the variance box are given in percent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (3).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description or jump to the associated chapter.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the top left, the '''residual variance''' (RV) over all samples inside the fit interval(s) is displayed (labeled '''R.V'''.). Below, the minimum residual variance inside the fit intervals (labeled '''Best''') is shown. If no fit interval is selected, values for the whole epoch are given. If a cursor is set, the RV over the whole epoch and the value of the RV at the cursor sample are displayed (labeled '''Curs'''.).&lt;br /&gt;
&lt;br /&gt;
At the top right, second row, you see the current value of the '''regularization constant''', a parameter used to reduce the interaction between sources. (You can set the regularization constant with the '''Regularization''' '''Constant: X%''' menu entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu or by clicking on the current value.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Criterion buttons'''&amp;lt;/span&amp;gt; at the top of the variance box toggle the corresponding fit criteria on and off. Starting from the left the buttons represent the residual variance criterion, the energy criterion, the minimum distance criterion, and the residual variance - q value (S/N) criterion. You will find additional information in the section &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Criterion Buttons'''&amp;lt;/span&amp;gt; in the online help ''Reference'' chapter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
In the variance box, it is possible to set the cursor or a fit interval with the left mouse button. If you click on the regularization constant ('''RC'''), you may set a new value.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the variance box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Variance Box popup menu'''&amp;lt;/span&amp;gt; appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Box ==&lt;br /&gt;
&lt;br /&gt;
The source box shows the source waveforms of the current solution. The source waveforms are computed over the whole epoch of the current data set using the currently chosen head model. (The head model is set and displayed in the parameter box.) If no solution is available the source box is empty.&lt;br /&gt;
&lt;br /&gt;
A single dipole or a spatial component has one source waveform, a regional source has three waveforms for EEG and two for MEG (one waveform for each component). A spatial component is labeled SC just below its waveform.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (4).gif]]&lt;br /&gt;
&lt;br /&gt;
(Click on the region of interest to view a description)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the top of the source box you will find the following buttons:&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''All on'''&amp;lt;/span&amp;gt; button activates or deactivates all sources (switches all sources on or off). Spatial components whose principal vector does not match with the current data set cannot be activated.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''All fit'''&amp;lt;/span&amp;gt; button enables all active sources (not spatial components) for fitting.&lt;br /&gt;
* The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Start fit '''&amp;lt;/span&amp;gt;button fits the enabled sources within the specified fit interval(s). If no fit interval is set the sources the whole epoch is used for fitting, if a cursor is set they are fitted only at the cursor sample. Another way to start fitting is given by the ''Fit Enabled Sources''... entry in the standard popup menu.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection button'''&amp;lt;/span&amp;gt; button allows for a quick computation of a 3D image. The type of the image to be computed is shown in the button label. By default, this is the previously computed 3D image. For details on the available image types in BESA Research, please refer to chapter 3D imaging. When you click on this button while keeping CTRL button pressed the new computation will be performed applying weighting based on current image. When you click on this button while keeping SHIFT button pressed the computation will be performed from scratch (leadfields will be re initialized)&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager '''&amp;lt;/span&amp;gt;button will start the BrainVoyager program. If the BrainVoyager path has not been set correctly the BrainVoyager tab of the ''Preferences ''dialog box is displayed to allow you to set the valid path. If the BrainVoyager program is already running the current solution is sent to BrainVoyager for display in the structural MRT image (c.f. ''Integration with MRI/fMRI'').&lt;br /&gt;
&lt;br /&gt;
Each source waveform has two push buttons assigned to it:&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''On/Off'''&amp;lt;/span&amp;gt; buttons to the left of the source waveforms activate or deactivate the associated sources. Spatial components whose principal vector does not match with the current data set cannot be activated. If a source is inactive, it does not contribute to the model.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit '''&amp;lt;/span&amp;gt;buttons below the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''On/Off'''&amp;lt;/span&amp;gt; buttons enable or disable the associated source for fitting. If a source is selected, it is enabled for fitting automatically. On the other hand, a source is automatically selected if you push the corresponding &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; button. Note that spatial components have no &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; button since they cannot be enabled for fitting. You can enable several sources for fitting by keeping the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; on your keyboard pressed and pushing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons of the sources you would like to fit simultaneously. If the model waveforms of fit enabled sources are displayed in the channel box (the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; button in the channel box shows ''M-F''), or if the model data of fit enabled sources are mapped in the 3D window, only sources whose &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; button is down are taken into account for the waveform or map display. Otherwise the associated source will not contribute to the model waveforms or model map.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Map/No map'''&amp;lt;/span&amp;gt; buttons are visible only if the model waveforms of fit enabled sources are displayed in the channel box (the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Model'''&amp;lt;/span&amp;gt; button in the channel box shows ''M-F'') or if the model data of fit enabled sources are mapped in the 3D window. They are available for spatial components only, since other sources use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons to enable/disable the source for mapping or to display the model waveforms. Only spatial components whose &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Map/No map'''&amp;lt;/span&amp;gt; button is down are taken into account in the waveform or map display. Otherwise the associated source will not contribute to the model waveforms or model map. You can enable several sources for mapping by keeping the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; on your keyboard pressed and pushing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Map/No map '''&amp;lt;/span&amp;gt;buttons (for spatial components) or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons (for other source types) of the sources you would like to contribute to the model waveforms or model map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Waveform Scale'''&amp;lt;/span&amp;gt; buttons (labeled with two arrows) at the bottom right of the source box to adjust the waveform amplitude scale. If you hold the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; in combination, the scale is reset to default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
Click on a source waveform if you want to select the associated source. The selected source is marked by a colored rectangle around its &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''On/Off'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
&lt;br /&gt;
If the current solution contains more than one sources you can change the source order by dragging the baseline of the source waveform up and down.&lt;br /&gt;
&lt;br /&gt;
As in the Channel Box, you can set the cursor or a fit interval with the left mouse button.&lt;br /&gt;
&lt;br /&gt;
You may double click on the '''source label''' to specify a new label.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the source box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Source Box'''&amp;lt;/span&amp;gt; popup menu appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button on a source label or source number at the right-hand side of the source waveforms, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Source Label'''&amp;lt;/span&amp;gt; popup menu is displayed.&lt;br /&gt;
&lt;br /&gt;
== Parameter Box ==&lt;br /&gt;
&lt;br /&gt;
The parameter box shows either the parameters of the current head model or of the selected source.&lt;br /&gt;
&lt;br /&gt;
'''If no source is selected the parameter box looks like the figure below:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (5).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The top row shows the currently selected head model. The default model for EEG is the 4-shell ellipsoidal model. Different EEG models can be selected using the ''Head Model Selection'' list.&lt;br /&gt;
&lt;br /&gt;
For EEG, you can select a standardized Realistic Head Model Approximation based on finite elements (FEM) with different conductivity ratios of brain to skull and anisotropies. For a detailed description of the different head models see chapter ''Head Models''.&lt;br /&gt;
&lt;br /&gt;
If the current channel type is MEG (as indicated by the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''EEG/MEG'''&amp;lt;/span&amp;gt; button in the '''channel box'''), the spherical MEG head model (Sarvas, 1987) and the individual FEM head model are available. Please note, that the individual FEM head model first has to be created in BESA MRI.&lt;br /&gt;
&lt;br /&gt;
The '''head radius''' in millimeters which is used in the head models is given in the first text field labeled head. If the head radius is computed from the individual head it cannot be modified.&lt;br /&gt;
&lt;br /&gt;
The '''head model parameters '''of the different head compartments are given in the text fields: The thicknesses of the scalp, of the bone, and of the cerebral spinal fluid (csf) are displayed in the second, third and fourth text fields of the upper row. The relative conductivities of brain, scalp, bone, and csf are displayed in the bottom row. Click onto the text fields to edit the current value.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button on a text filed while at least one head model parameter differs from its default value, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Head Model Text Field'''&amp;lt;/span&amp;gt; popup menu appears which allows to reset values to the default.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The head model parameters are used in the ''4 shell ellipsoidal'' and ''Polynomial'' ''4 shells'' head models only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''If a source is selected, the parameter box looks like this:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (6).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coordinate system which is used to display or modify the source coordinates can be switched with the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Coordinate System'''&amp;lt;/span&amp;gt; button at the top left. The following coordinate systems are available:&lt;br /&gt;
&lt;br /&gt;
* '''(Cartesian) head coordinates''': Defined by three reference points on the head known as ''fiducials''. The unit is millimeter. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Cart./HC'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* '''Talairach coordinates''': &lt;br /&gt;
*# Talairach coordinates calculated using the individual MRI information of the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Talairach'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
*# Approximate ''Talairach coordinates'' estimated by a default transformation to the BESA Research standard brain that is used for the 3D anatomical view if an individual MRI is not available for the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tal.'''&amp;lt;/span&amp;gt; (''appr''.). For additional information, please see the chapter [[Integration with MRI and fMRI]]),&lt;br /&gt;
&lt;br /&gt;
* '''MNI coordinates''':&lt;br /&gt;
*# MNI coordinates (SPM convention) calculated using the individual MRI information of the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MNI'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
*# Approximate MNI coordinates estimated by a default transformation to the BESA Research standard brain that is used for the 3D anatomical view if an individual MRI is not available for the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MNI (appr.)'''&amp;lt;/span&amp;gt;. For additional information, please see the chapter [[Integration with MRI and fMRI]]),&lt;br /&gt;
&lt;br /&gt;
* '''(Cartesian) unit sphere coordinates''' (BESA coordinates): Defined by the best fit sphere. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Cart./US'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* '''Polar unit sphere coordinates''' (polar BESA coordinates): Same coordinate system as above, but the coordinates are given in'' polar coordinates''. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Polar/US'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note: A detailed description of the coordinate systems is given in the chapter [[Electrodes and Surface Locations]].&lt;br /&gt;
&lt;br /&gt;
To the left of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Coordinate System'''&amp;lt;/span&amp;gt; button the location and orientation coordinates of the selected source are given in the text fields labeled as follows:&lt;br /&gt;
&lt;br /&gt;
* '''x-loc''', '''y-loc''', and '''z-loc''': Location of the selected source in cartesian coordinates.&lt;br /&gt;
* '''x-ori''', '''y-ori''', and '''z-ori''': Orientation of the selected source in cartesian coordinates (the length of the vector specified by the three orientation coordinates is 1)&lt;br /&gt;
* '''ecc''', '''theta''', and '''phi''': Location of the selected source in polar coordinates (eccentricity, azimuth, and polar angle), visible only if polar coordinates are displayed.&lt;br /&gt;
* '''o-the''' and '''o-phi''': Orientation of the selected source in polar coordinates (azimuth and polar angle). These text fields are visible only if polar coordinates are displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The second and third row shows the '''current location and orientation constraints''' for the selected source. Four states are possible:&lt;br /&gt;
&lt;br /&gt;
* '''Free:''' No constraint is set. The source location/orientation can be fitted.&lt;br /&gt;
* '''Fixed''': The source location/orientation is fixed during the next fit and will not be modified.&lt;br /&gt;
* '''Symmetric to''' (available for the source location only): The source location is set symmetric (mirrored into the other hemisphere) to the referenced source which is specified in the middle text field. The offsets to the symmetric location of the referenced source are given in the text field to the right.&lt;br /&gt;
* '''Bound to''' (available for the source location only): The source location is bound to the referenced source which is specified in the middle text field. The offsets to the location of the specified source are given in the text field to the right.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you click onto the middle text field of the referenced source or the text field containing the location offset, the ''Set source constraint ''dialog box will open which allows to modify the referenced source and the location offset.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
A left mouse click in the ''parameter ''box will toggle the display of the selected source parameters and the display of the head model parameters.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the parameter box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Parameter Box popup menu'''&amp;lt;/span&amp;gt;  appears with specific commands to this box.&lt;br /&gt;
&lt;br /&gt;
Click on the '''source label''' to specify a new label.&lt;br /&gt;
&lt;br /&gt;
== Head Box ==&lt;br /&gt;
&lt;br /&gt;
The Head Box shows six head schemes with the sources of the current solution. Each of the three standard views is displayed twice from opposite directions: First row sagittal view from left (left scheme) and from right (right scheme), second row transversal top view (left) and transversal view from bottom (right), and third row coronal view from behind (left) and frontal coronal view (right).&lt;br /&gt;
&lt;br /&gt;
Note: If the ''3D window'' is open the appearance of the head box is different. Only two head schemes are displayed. You will find more information at the end of this page.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (7).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A source is plotted in one view only if it is located in the forward hemisphere or slightly in the back hemisphere, so that, e.g. for the sagittal view (first row), a source is plotted only in the left head scheme if it is located in the left hemisphere, and not in the right top head scheme (in the figure below all sources except for the green one).&lt;br /&gt;
&lt;br /&gt;
Note: You can specify the depth up to which sources are plotted in the back hemisphere (the so-called ''source transparency'') in the'' Boxes'' Tab of the ''Preferences ''dialog box.&lt;br /&gt;
&lt;br /&gt;
If the cursor is set, the size of the source plot depends on the strength of the source (the amplitude of the source waveform) at the cursor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''description and filename''' of the current solution is given at the top of the head box. If the solution has not been stored yet the text ''New solution...'' is displayed. If any modifications of the solution have not yet been saved, this is indicated by appending the text ''&amp;quot;modified&amp;quot;'' to the filename. Set a new description by clicking on the text with the left mouse button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Solution'''&amp;lt;/span&amp;gt; buttons at the top left corner, marked with small arrows, allow to switch between solutions. They are enabled only if there are at least two solutions. If you right click on these buttons while they are enabled the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Solution '''&amp;lt;/span&amp;gt;popup menu opens which allows for changing to a specified solution.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Hold'''&amp;lt;/span&amp;gt; button below the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Solution'''&amp;lt;/span&amp;gt; buttons becomes important if more than one condition has been uploaded or the condition has more than one data set. It toggles between two settings:&lt;br /&gt;
* '''Up:''' When the user switches between data sets or conditions, it will also be switched to the solution which was last modified when the new data set was active.&lt;br /&gt;
* '''Down:''' When the user switches between conditions, the current solution will not be changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''''+' '''&amp;lt;/span&amp;gt;button at the top right creates a new solution and copies the current solution to the new one. If the solution which was copied already has a file path (i.e. has been loaded or saved before), the file path of the new solution is modified such that it does not specify an existing file.&lt;br /&gt;
&lt;br /&gt;
The button is disabled if no solution is available.&lt;br /&gt;
&lt;br /&gt;
Note: The entry ''New Copy of Displayed Solution'' in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Solution'''&amp;lt;/span&amp;gt; menu provides the same functionality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Source Plot Scale'''&amp;lt;/span&amp;gt; buttons at the bottom right of the head box are used to adjust the size of the source plots. Note that two different settings are stored: One for the source display if the cursor has been set, one for the display without cursor. If you hold the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; in combination, the scale is reset to default. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
A double-click on one of the head schemes creates a new source at that location. The type of the new source can be specified using the menu entry &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options/Default Source Type'''&amp;lt;/span&amp;gt;. A double click on an existing source deletes it.&lt;br /&gt;
&lt;br /&gt;
If a source is under the mouse the mouse changes to [[Image:|top]]. A single click with the left button turns the source under the mouse into the selected source. A double click deletes the source.&lt;br /&gt;
&lt;br /&gt;
If the source under the mouse can be moved the mouse changes to [[Image:|top]]. You can move the source by dragging with the left mouse button (spatial components may not be moved). The source location is bound to the limits which have been set in the ''Limit of source location section'' in the'' Preferences'' dialog box.&lt;br /&gt;
&lt;br /&gt;
If the orientation of a source can be modified the mouse changes to [[Image:|top]]( single dipoles only). Drag the vertex of the orientation to rotate the dipole. Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-key'''&amp;lt;/span&amp;gt; in combination if you want to rotate the orientation in the specified view only.&lt;br /&gt;
&lt;br /&gt;
Note: If you want to drag the orientation even if it is hidden use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; in combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you double click on the filename of the solution, which is given at the top of the head box, a text box is displayed in which you may enter a description. If a solution description has been set, it is displayed instead of the filename. This description will be stored when the solution is saved.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the head box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Head Box'''&amp;lt;/span&amp;gt; popup menu appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Head box display if the 3D window is open'''&lt;br /&gt;
&lt;br /&gt;
If the ''3D window'' is open the appearance of the head box is different. Only two head schemes are displayed.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (11).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Flip Head Scheme'''&amp;lt;/span&amp;gt; buttons (labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Flp'''&amp;lt;/span&amp;gt;) at the bottom right and left of the window flip the associated head scheme. E.g. clicking onto the left &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Flp'''&amp;lt;/span&amp;gt; button in this image would switch the sagittal view from the left to the sagittal view from the right.&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift Head Scheme'''&amp;lt;/span&amp;gt; buttons (second and third button to the left, marked with small arrows) to scroll the head schemes until you see your desired view.&lt;br /&gt;
&lt;br /&gt;
The '''Transparency scroll bar '''in the mid bottom changes the source transparency. A source is plotted in one view only if it is located in the forward hemisphere or as far in the back hemisphere as set by the transparency value - the depth up to which sources are plotted in the back hemisphere. Please see additional information in the section ''Source Transparency'', (''Preferences'' dialog box), use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Back'''&amp;lt;/span&amp;gt; button of the Windows® help to jump back to this page.&lt;br /&gt;
&lt;br /&gt;
== 3D Window ==&lt;br /&gt;
&lt;br /&gt;
The 3D window is opened if a 3D map (fig. 1) or the anatomical view of an individual MRI or the BESA Research standard Brain (fig. 2) is displayed. It also opens if any of the 3D volume imaging or 3D surface imaging methods are used. (Use the popup menu entries &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Display MRI'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Display 3D Maps'''&amp;lt;/span&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:3D_Window_-_Cortical_Map.png|thumb|425px|Fig. 1]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:3D_Window_-_Rolandic.png|thumb|425px|Fig. 2]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sources of the current solution are displayed in the anatomical view (fig. 2), or in the cortical imaging view if this is activated via the popup menu using the right mouse button. The selected source is displayed with a golden halo around the source body. If EEG/MEG data is coregistered with MRI the confidence elipsoids and error rims are displayed around fitted sources&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''3D window toolbar''' is explained in details in the ''3D Window Toolbar'' section in the BESA help ''Reference'' chapter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Keyboard'''&lt;br /&gt;
&lt;br /&gt;
A number of key combinations are useful for navigation/display in the 3D window if the 3D window is active. The most important commands with their default keys are listed here. Note that you can change the default keys in the ''Define hot keys'' dialog box, which also allows to specify additional key commands.&lt;br /&gt;
&lt;br /&gt;
Command default key(s) and effects:&lt;br /&gt;
&lt;br /&gt;
* '''Decrement/Increment scale''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Num-, Num+:'''&amp;lt;/span&amp;gt; Decrements/Increments the map scale in the 3D map or the source plot size in the anatomical view.&lt;br /&gt;
* '''Move down/left/right/up''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Numpad-2, Numpad-4, Numpad-6, Numpad-8'''&amp;lt;/span&amp;gt;: If a source is selected, the source is moved within the current slice in steps of one millimeter in the corresponding direction. If no source is selected, the slicing center is moved instead. This only applies to the anatomical view.&lt;br /&gt;
* '''Slice backwards/forward''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Down, Up'''&amp;lt;/span&amp;gt;: If a source is selected the source is moved into the next slice, one millimeter out of or into the current anatomical view. If no source is selected the slicing center is sliced down or up instead. This only applies to the anatomical view.&lt;br /&gt;
* '''Switch to specific slice''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-C, Shift-S, Shift-T'''&amp;lt;/span&amp;gt;: Switches to the coronal, sagittal, or transversal slice (anatomical view only).&lt;br /&gt;
* '''Display 3D maps''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''M'''&amp;lt;/span&amp;gt;: Switches from the anatomical view to the 3D map. Works only if the cursor has been set.&lt;br /&gt;
* '''Display standard MRI''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''A'''&amp;lt;/span&amp;gt;: Switches from the 3D map to the anatomical view.&lt;br /&gt;
* '''Display brain atlas overlay''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' ''Shift-A'''''&amp;lt;/span&amp;gt;: Toggles on or off brain atlas overlay on anatomical view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
Whenever an action with the left mouse button is possible the mouse cursor will change from the standard arrow to a special icon. The following mouse actions are possible:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''New source'''&lt;br /&gt;
&lt;br /&gt;
A double click on a surface (skin or brain) or inside an anatomical view will insert a new source at the associated 3D location. The type of the new source can be specified using the menu entry &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options/Default Source Type'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Delete source'''&lt;br /&gt;
&lt;br /&gt;
A double click on an existing source will delete the source after a confirmation box is closed with ''Yes''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (14).gif]] '''Rotate'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will rotate the current view. This action is available on a 3D map or on the 3D view of the anatomical view. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Rotation Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar '''or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-key'''&amp;lt;/span&amp;gt; have to be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (15).gif]] '''Zoom'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will zoom the current view. This action is available on a 3D map or on the 3D view of the anatomical view. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Zoom Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; have to be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (16).gif]] '''Move'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will rotate the current view. This action is available on a 3D map or on the 3D view of the anatomical view. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Move Mode'''&amp;lt;/span&amp;gt; button of the''' 3D window toolbar '''or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; have to be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (17).gif]] '''Slice Vertically'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will slice the current slicing center up and down. This action is available on the anatomical view only. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; have to be pressed in combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (18).gif]] '''Slice Horizontally'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will slice the current slicing center horizontally. This action is available on the 2D anatomical views only. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; must not be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (19).gif]] '''Set Slicing Center to Source Location'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected) and set the current slicing center to the source location. A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
This action is available on the anatomical view only if a source is under the mouse and this source must not be moved (e.g. a spatial component).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (9).gif]] '''Move Source'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected). A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will move the source horizontally to the displayed slice.&lt;br /&gt;
&lt;br /&gt;
This action is available only if a source is under the mouse, this source may be moved (no spatial component), and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Move Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; are pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (20).gif]] '''Move Source and Slice Horizontally'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected) and set the current slicing center to the source location. A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will move the source horizontally to the displayed slice and set the current slicing center to the new source location.&lt;br /&gt;
&lt;br /&gt;
This action is available only if a source is under the mouse, this source may be moved (no spatial component) and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Move Mode'''&amp;lt;/span&amp;gt; button, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode '''&amp;lt;/span&amp;gt;button (of the '''3D window toolbar'''), the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; are not pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (21).gif]] '''Move Source and Slice Vertically'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected) and set the current slicing center to the source location. A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will move the source vertically to the displayed slice and set the current slicing center to the new source location.&lt;br /&gt;
&lt;br /&gt;
This action is available only if a source is under the mouse, this source may be moved (no spatial component) and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; are pressed.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the 3D window, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''3D Window'''&amp;lt;/span&amp;gt; popup menu appears with commands specific to this window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_Functions_of_the_Window</id>
		<title>Source Analysis Functions of the Window</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_Functions_of_the_Window"/>
				<updated>2021-11-25T12:52:08Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The Source Analysis module window is subdivided into six main parts (boxes) which will be explained briefly in the following sections:&lt;br /&gt;
* The Channel Box (left)&lt;br /&gt;
* The Variance Box (top center)&lt;br /&gt;
* The Source Box (bottom center)&lt;br /&gt;
* The Parameter Box (top right)&lt;br /&gt;
* The Head Box (mid right)&lt;br /&gt;
* The 3D Window (bottom right)&lt;br /&gt;
&lt;br /&gt;
Note that the 3D window will not normally appear automatically (unless specified in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options / Preferences'''&amp;lt;/span&amp;gt; menu), and the head box will take up more space if the 3D window is not displayed.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (1).gif ]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to jump to the associated section. Use the Back button of the Windows® help to jump back to this page.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''title bar''' contains information about the data file, the filename, the condition name, the filter settings, and the selected time interval.&lt;br /&gt;
&lt;br /&gt;
Most of the functions and commands can be chosen from the main '''menu bar''' below the title bar. However, all important commands are also available via a right mouse click. Whenever you right-click, a context-sensitive popup menu will appear containing the available commands.&lt;br /&gt;
&lt;br /&gt;
A detailed description of the commands of the '''menu bar''' and the different popup menus is given in the online help ''Reference ''chapter.&lt;br /&gt;
&lt;br /&gt;
At the bottom, you will notice the '''status bar''', which gives information about the current mouse position (latency or 3D position) and the current cursor location or the fit interval(s). (See the section on the '''status bar''' in the online help ''Reference ''chapter).&lt;br /&gt;
&lt;br /&gt;
The individual size of the boxes can be modified: Try placing the mouse over the vertical double line that separates the source box and the head box. The horizontal arrow that appears indicates that you can move this separator by dragging with the left mouse button.&lt;br /&gt;
&lt;br /&gt;
The same is possible for the horizontal double line bounding the variance box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Channel Box ==&lt;br /&gt;
&lt;br /&gt;
The channel box normally shows the signals at each channel. The display depends on the state of the push buttons at the top of the channel box.&lt;br /&gt;
&lt;br /&gt;
The figure below shows an example with the display of the measured data waveforms (violet) and the residual waveforms (red) at each channel. The channel labels are displayed to the left of each waveform.&lt;br /&gt;
&lt;br /&gt;
An overplot of all waveforms is displayed above the single waveforms (labeled ''All'').&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (2).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below the first row of buttons, there is a '''description of the current condition''' containing the condition name, the filter settings and the condition epoch. Below the condition epoch, the baseline of the current condition is displayed as horizontal black/red line.&lt;br /&gt;
&lt;br /&gt;
At the bottom, you see the''' figure legend '''describing the used colors and the number of displayed channels (or PCA components).&lt;br /&gt;
&lt;br /&gt;
The '''Channel buttons''' at the top of the channels box specify which waveforms are displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Data'''&amp;lt;/span&amp;gt; button toggles the display of the data (measured signals) of the visible channels (violet waveforms). If you double click on this button the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Model '''&amp;lt;/span&amp;gt;and&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Residual'''&amp;lt;/span&amp;gt; buttons are released and the channels are re-sorted by the amplitude of the measured data.&lt;br /&gt;
* Press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; button to toggle the display of the modeled data (blue waveforms). The modeled data are calculated from the waveforms of the active sources in the current solution using the currently chosen head model. (The source waveforms are displayed in the source box, the head model is set and displayed in the parameter box.) Pressing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model '''&amp;lt;/span&amp;gt;button toggles between the display of all active sources (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''M-A'''&amp;lt;/span&amp;gt;) and the display of the model waveforms which result from the contributions of all sources whose Fit/No fit button is pressed (button is labeled M-F). Note that the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Residual'''&amp;lt;/span&amp;gt; button is released if the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; button is pressed without holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
* Press the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Residual'''&amp;lt;/span&amp;gt; button to toggle the residual (unexplained) signal (red waveforms), i.e. the difference between measured and modeled data. If you double click on this button the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Data'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; buttons are released and the channels are re-sorted by the amplitude of the residual. Note that the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Model'''&amp;lt;/span&amp;gt; button is released if the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Residual'''&amp;lt;/span&amp;gt; button is pressed without holding the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key.'''&amp;lt;/span&amp;gt;&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Sort'''&amp;lt;/span&amp;gt; button (fourth button from the left) changes the ordering of the channels. Pushing this button switches between original order (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Order'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ord'''&amp;lt;/span&amp;gt;.), sorting by the amplitude of the measured data (||Data|| or ||D||), and sorting by the amplitude of the residual (||Res.|| or ||R||). In practice, by using one of the sorting modes ||Data|| or ||Residual||, you will only have to display the first few channels during the fitting procedure, since the channels with the largest signals are shown at the top.&lt;br /&gt;
* Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''P.C.A.'''&amp;lt;/span&amp;gt; button to start a Principal Components Analysis (PCA) over the marked fit interval(s) (if no fit interval is set the PCA is computed over the whole epoch). The percentage variance accounted for by each component is shown at the left of each waveform. When the PCA is displayed, data, model, and residual waveforms are not visible. Note that if the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Residual '''&amp;lt;/span&amp;gt;button is down and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Data'''&amp;lt;/span&amp;gt; button is up, the PCA is computed for the residual data and not the measured data.&lt;br /&gt;
* The button at the far right is the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''EEG/MEG/MEEG'''&amp;lt;/span&amp;gt; button. Pushing this button toggles between the data sets (EEG, MEG and MEEG) of the current condition, if combined EEG and MEG have been recorded. The label of the button shows which data set is currently displayed.&lt;br /&gt;
For combined recordings, it is possible to combine EEG and MEG for fitting. In this case, each channel is normalized by the signal in the defined baseline interval. Changing the baseline interval leads to a re-computation of data in this case. In order to use MEEG, the head models of EEG and MEG need to match to ensure a common source space (e.g. spherical head models for both, or individual FEM / BEM for both). Adjust the head models individually for the EEG and MEG modes first before entering MEEG mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the top left below the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Data'''&amp;lt;/span&amp;gt; button, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Condition'''&amp;lt;/span&amp;gt; buttons (labeled with two arrows) enable fast switching between different conditions. They are enabled only if at least two conditions have been loaded.&lt;br /&gt;
&lt;br /&gt;
Below the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Condition'''&amp;lt;/span&amp;gt; buttons, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Toggle Electrode Configuration'''&amp;lt;/span&amp;gt; button toggles between using the original channels (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Org'''&amp;lt;/span&amp;gt;) or using an interpolated montage of 81 electrodes at standard locations (button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Std'''&amp;lt;/span&amp;gt;). This montage allows comparison of different subjects at standard electrode locations. Note: If MEG channels are displayed this button is not available.&lt;br /&gt;
&lt;br /&gt;
The channel box is bounded at the right by three scroll bars. Use the topmost one to change the number of displayed channels. The scroll bar below ('''select displayed channels''') can be used to scroll through the channels. The bottom one, consisting only of two arrows, changes the amplitude scaling of the displayed signals ('''scale waveforms''').&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MAG'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''GRD'''&amp;lt;/span&amp;gt; buttons at the bottom of the channel box appear only if an MEG data set containing both magnetometer and gradiometer sensors is displayed, or if MEEG mode is active. The buttons are used to toggle the display of the magnetometer and gradiometer channels. In case of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MEEG'''&amp;lt;/span&amp;gt; mode, &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''EEG'''&amp;lt;/span&amp;gt; and either of &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MAG'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''GRD'''&amp;lt;/span&amp;gt; buttons (or both) are displayed. Combination of any MEG mode with the EEG data can then be toggled in that way.&lt;br /&gt;
&lt;br /&gt;
In the figure above you see one '''fit interval''', shown in a darker color. The fit interval is used for fitting, computing the PCA, and more.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
In the channel box, it is possible to set the cursor or a fit interval with the left mouse button. If you click on the text in the top left corner, you may change the condition name. By clicking on the baseline, a new baseline interval can be specified.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the channel box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Channel Box popup menu'''&amp;lt;/span&amp;gt; appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
== Variance Box ==&lt;br /&gt;
&lt;br /&gt;
The variance box shows &amp;lt;span style=&amp;quot;color:#0000FF;&amp;quot;&amp;gt;the global field power (blue)&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#FF0000;&amp;quot;&amp;gt;the residual variance (red)&amp;lt;/span&amp;gt; in logarithmic scaling, relative to the maximum global field power.&lt;br /&gt;
* '''The global field power''': the sum of squares of the activity over all channels of the current data set&lt;br /&gt;
* '''The residual variance''': the sum of squares of the unexplained signal&lt;br /&gt;
&lt;br /&gt;
Note that the global field power is scaled from bottom to top, whereas the residual variance is scaled from top to bottom. The corresponding waveform scales at the left of the variance box are given in percent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (3).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description or jump to the associated chapter.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the top left, the '''residual variance''' (RV) over all samples inside the fit interval(s) is displayed (labeled '''R.V'''.). Below, the minimum residual variance inside the fit intervals (labeled '''Best''') is shown. If no fit interval is selected, values for the whole epoch are given. If a cursor is set, the RV over the whole epoch and the value of the RV at the cursor sample are displayed (labeled '''Curs'''.).&lt;br /&gt;
&lt;br /&gt;
At the top right, second row, you see the current value of the '''regularization constant''', a parameter used to reduce the interaction between sources. (You can set the regularization constant with the '''Regularization''' '''Constant: X%''' menu entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options'''&amp;lt;/span&amp;gt; menu or by clicking on the current value.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Criterion buttons'''&amp;lt;/span&amp;gt; at the top of the variance box toggle the corresponding fit criteria on and off. Starting from the left the buttons represent the residual variance criterion, the energy criterion, the minimum distance criterion, and the residual variance - q value (S/N) criterion. You will find additional information in the section &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Criterion Buttons'''&amp;lt;/span&amp;gt; in the online help ''Reference'' chapter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
In the variance box, it is possible to set the cursor or a fit interval with the left mouse button. If you click on the regularization constant ('''RC'''), you may set a new value.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the variance box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Variance Box popup menu'''&amp;lt;/span&amp;gt; appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Source Box ==&lt;br /&gt;
&lt;br /&gt;
The source box shows the source waveforms of the current solution. The source waveforms are computed over the whole epoch of the current data set using the currently chosen head model. (The head model is set and displayed in the parameter box.) If no solution is available the source box is empty.&lt;br /&gt;
&lt;br /&gt;
A single dipole or a spatial component has one source waveform, a regional source has three waveforms for EEG and two for MEG (one waveform for each component). A spatial component is labeled SC just below its waveform.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (4).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the top of the source box you will find the following buttons:&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''All on'''&amp;lt;/span&amp;gt; button activates or deactivates all sources (switches all sources on or off). Spatial components whose principal vector does not match with the current data set cannot be activated.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''All fit'''&amp;lt;/span&amp;gt; button enables all active sources (not spatial components) for fitting.&lt;br /&gt;
* The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Start fit '''&amp;lt;/span&amp;gt;button fits the enabled sources within the specified fit interval(s). If no fit interval is set the sources the whole epoch is used for fitting, if a cursor is set they are fitted only at the cursor sample. Another way to start fitting is given by the ''Fit Enabled Sources''... entry in the standard popup menu.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection button'''&amp;lt;/span&amp;gt; button allows for a quick computation of a 3D image. The type of the image to be computed is shown in the button label. By default, this is the previously computed 3D image. For details on the available image types in BESA Research, please refer to chapter 3D imaging. When you click on this button while keeping CTRL button pressed the new computation will be performed applying weighting based on current image. When you click on this button while keeping SHIFT button pressed the computation will be performed from scratch (leadfields will be re initialized)&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''BrainVoyager '''&amp;lt;/span&amp;gt;button will start the BrainVoyager program. If the BrainVoyager path has not been set correctly the BrainVoyager tab of the ''Preferences ''dialog box is displayed to allow you to set the valid path. If the BrainVoyager program is already running the current solution is sent to BrainVoyager for display in the structural MRT image (c.f. ''Integration with MRI/fMRI'').&lt;br /&gt;
&lt;br /&gt;
Each source waveform has two push buttons assigned to it:&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''On/Off'''&amp;lt;/span&amp;gt; buttons to the left of the source waveforms activate or deactivate the associated sources. Spatial components whose principal vector does not match with the current data set cannot be activated. If a source is inactive, it does not contribute to the model.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit '''&amp;lt;/span&amp;gt;buttons below the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''On/Off'''&amp;lt;/span&amp;gt; buttons enable or disable the associated source for fitting. If a source is selected, it is enabled for fitting automatically. On the other hand, a source is automatically selected if you push the corresponding &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; button. Note that spatial components have no &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; button since they cannot be enabled for fitting. You can enable several sources for fitting by keeping the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; on your keyboard pressed and pushing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons of the sources you would like to fit simultaneously. If the model waveforms of fit enabled sources are displayed in the channel box (the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Model'''&amp;lt;/span&amp;gt; button in the channel box shows ''M-F''), or if the model data of fit enabled sources are mapped in the 3D window, only sources whose &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; button is down are taken into account for the waveform or map display. Otherwise the associated source will not contribute to the model waveforms or model map.&lt;br /&gt;
* The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Map/No map'''&amp;lt;/span&amp;gt; buttons are visible only if the model waveforms of fit enabled sources are displayed in the channel box (the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Model'''&amp;lt;/span&amp;gt; button in the channel box shows ''M-F'') or if the model data of fit enabled sources are mapped in the 3D window. They are available for spatial components only, since other sources use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons to enable/disable the source for mapping or to display the model waveforms. Only spatial components whose &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Map/No map'''&amp;lt;/span&amp;gt; button is down are taken into account in the waveform or map display. Otherwise the associated source will not contribute to the model waveforms or model map. You can enable several sources for mapping by keeping the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; on your keyboard pressed and pushing the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Map/No map '''&amp;lt;/span&amp;gt;buttons (for spatial components) or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons (for other source types) of the sources you would like to contribute to the model waveforms or model map.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Waveform Scale'''&amp;lt;/span&amp;gt; buttons (labeled with two arrows) at the bottom right of the source box to adjust the waveform amplitude scale. If you hold the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; in combination, the scale is reset to default.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
Click on a source waveform if you want to select the associated source. The selected source is marked by a colored rectangle around its &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''On/Off'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit/No fit'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
&lt;br /&gt;
If the current solution contains more than one sources you can change the source order by dragging the baseline of the source waveform up and down.&lt;br /&gt;
&lt;br /&gt;
As in the Channel Box, you can set the cursor or a fit interval with the left mouse button.&lt;br /&gt;
&lt;br /&gt;
You may double click on the '''source label''' to specify a new label.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the source box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Source Box'''&amp;lt;/span&amp;gt; popup menu appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button on a source label or source number at the right-hand side of the source waveforms, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Source Label'''&amp;lt;/span&amp;gt; popup menu is displayed.&lt;br /&gt;
&lt;br /&gt;
== Parameter Box ==&lt;br /&gt;
&lt;br /&gt;
The parameter box shows either the parameters of the current head model or of the selected source.&lt;br /&gt;
&lt;br /&gt;
'''If no source is selected the parameter box looks like the figure below:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (5).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The top row shows the currently selected head model. The default model for EEG is the 4-shell ellipsoidal model. Different EEG models can be selected using the ''Head Model Selection'' list.&lt;br /&gt;
&lt;br /&gt;
For EEG, you can select a standardized Realistic Head Model Approximation based on finite elements (FEM) with different conductivity ratios of brain to skull and anisotropies. For a detailed description of the different head models see chapter ''Head Models''.&lt;br /&gt;
&lt;br /&gt;
If the current channel type is MEG (as indicated by the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''EEG/MEG'''&amp;lt;/span&amp;gt; button in the '''channel box'''), the spherical MEG head model (Sarvas, 1987) and the individual FEM head model are available. Please note, that the individual FEM head model first has to be created in BESA MRI.&lt;br /&gt;
&lt;br /&gt;
The '''head radius''' in millimeters which is used in the head models is given in the first text field labeled head. If the head radius is computed from the individual head it cannot be modified.&lt;br /&gt;
&lt;br /&gt;
The '''head model parameters '''of the different head compartments are given in the text fields: The thicknesses of the scalp, of the bone, and of the cerebral spinal fluid (csf) are displayed in the second, third and fourth text fields of the upper row. The relative conductivities of brain, scalp, bone, and csf are displayed in the bottom row. Click onto the text fields to edit the current value.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button on a text filed while at least one head model parameter differs from its default value, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Head Model Text Field'''&amp;lt;/span&amp;gt; popup menu appears which allows to reset values to the default.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The head model parameters are used in the ''4 shell ellipsoidal'' and ''Polynomial'' ''4 shells'' head models only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''If a source is selected, the parameter box looks like this:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (6).gif]]&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The coordinate system which is used to display or modify the source coordinates can be switched with the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Coordinate System'''&amp;lt;/span&amp;gt; button at the top left. The following coordinate systems are available:&lt;br /&gt;
&lt;br /&gt;
* '''(Cartesian) head coordinates''': Defined by three reference points on the head known as ''fiducials''. The unit is millimeter. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Cart./HC'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* '''Talairach coordinates''': &lt;br /&gt;
*# Talairach coordinates calculated using the individual MRI information of the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Talairach'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
*# Approximate ''Talairach coordinates'' estimated by a default transformation to the BESA Research standard brain that is used for the 3D anatomical view if an individual MRI is not available for the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Tal.'''&amp;lt;/span&amp;gt; (''appr''.). For additional information, please see the chapter [[Integration with MRI and fMRI]]),&lt;br /&gt;
&lt;br /&gt;
* '''MNI coordinates''':&lt;br /&gt;
*# MNI coordinates (SPM convention) calculated using the individual MRI information of the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MNI'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
*# Approximate MNI coordinates estimated by a default transformation to the BESA Research standard brain that is used for the 3D anatomical view if an individual MRI is not available for the current condition. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''MNI (appr.)'''&amp;lt;/span&amp;gt;. For additional information, please see the chapter [[Integration with MRI and fMRI]]),&lt;br /&gt;
&lt;br /&gt;
* '''(Cartesian) unit sphere coordinates''' (BESA coordinates): Defined by the best fit sphere. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Cart./US'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* '''Polar unit sphere coordinates''' (polar BESA coordinates): Same coordinate system as above, but the coordinates are given in'' polar coordinates''. The button is labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Polar/US'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note: A detailed description of the coordinate systems is given in the chapter [[Electrodes and Surface Locations]].&lt;br /&gt;
&lt;br /&gt;
To the left of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Coordinate System'''&amp;lt;/span&amp;gt; button the location and orientation coordinates of the selected source are given in the text fields labeled as follows:&lt;br /&gt;
&lt;br /&gt;
* '''x-loc''', '''y-loc''', and '''z-loc''': Location of the selected source in cartesian coordinates.&lt;br /&gt;
* '''x-ori''', '''y-ori''', and '''z-ori''': Orientation of the selected source in cartesian coordinates (the length of the vector specified by the three orientation coordinates is 1)&lt;br /&gt;
* '''ecc''', '''theta''', and '''phi''': Location of the selected source in polar coordinates (eccentricity, azimuth, and polar angle), visible only if polar coordinates are displayed.&lt;br /&gt;
* '''o-the''' and '''o-phi''': Orientation of the selected source in polar coordinates (azimuth and polar angle). These text fields are visible only if polar coordinates are displayed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The second and third row shows the '''current location and orientation constraints''' for the selected source. Four states are possible:&lt;br /&gt;
&lt;br /&gt;
* '''Free:''' No constraint is set. The source location/orientation can be fitted.&lt;br /&gt;
* '''Fixed''': The source location/orientation is fixed during the next fit and will not be modified.&lt;br /&gt;
* '''Symmetric to''' (available for the source location only): The source location is set symmetric (mirrored into the other hemisphere) to the referenced source which is specified in the middle text field. The offsets to the symmetric location of the referenced source are given in the text field to the right.&lt;br /&gt;
* '''Bound to''' (available for the source location only): The source location is bound to the referenced source which is specified in the middle text field. The offsets to the location of the specified source are given in the text field to the right.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you click onto the middle text field of the referenced source or the text field containing the location offset, the ''Set source constraint ''dialog box will open which allows to modify the referenced source and the location offset.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
A left mouse click in the ''parameter ''box will toggle the display of the selected source parameters and the display of the head model parameters.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the parameter box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Parameter Box popup menu'''&amp;lt;/span&amp;gt;  appears with specific commands to this box.&lt;br /&gt;
&lt;br /&gt;
Click on the '''source label''' to specify a new label.&lt;br /&gt;
&lt;br /&gt;
== Head Box ==&lt;br /&gt;
&lt;br /&gt;
The Head Box shows six head schemes with the sources of the current solution. Each of the three standard views is displayed twice from opposite directions: First row sagittal view from left (left scheme) and from right (right scheme), second row transversal top view (left) and transversal view from bottom (right), and third row coronal view from behind (left) and frontal coronal view (right).&lt;br /&gt;
&lt;br /&gt;
Note: If the ''3D window'' is open the appearance of the head box is different. Only two head schemes are displayed. You will find more information at the end of this page.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (7).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A source is plotted in one view only if it is located in the forward hemisphere or slightly in the back hemisphere, so that, e.g. for the sagittal view (first row), a source is plotted only in the left head scheme if it is located in the left hemisphere, and not in the right top head scheme (in the figure below all sources except for the green one).&lt;br /&gt;
&lt;br /&gt;
Note: You can specify the depth up to which sources are plotted in the back hemisphere (the so-called ''source transparency'') in the'' Boxes'' Tab of the ''Preferences ''dialog box.&lt;br /&gt;
&lt;br /&gt;
If the cursor is set, the size of the source plot depends on the strength of the source (the amplitude of the source waveform) at the cursor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''description and filename''' of the current solution is given at the top of the head box. If the solution has not been stored yet the text ''New solution...'' is displayed. If any modifications of the solution have not yet been saved, this is indicated by appending the text ''&amp;quot;modified&amp;quot;'' to the filename. Set a new description by clicking on the text with the left mouse button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Solution'''&amp;lt;/span&amp;gt; buttons at the top left corner, marked with small arrows, allow to switch between solutions. They are enabled only if there are at least two solutions. If you right click on these buttons while they are enabled the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Solution '''&amp;lt;/span&amp;gt;popup menu opens which allows for changing to a specified solution.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Hold'''&amp;lt;/span&amp;gt; button below the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch Solution'''&amp;lt;/span&amp;gt; buttons becomes important if more than one condition has been uploaded or the condition has more than one data set. It toggles between two settings:&lt;br /&gt;
* '''Up:''' When the user switches between data sets or conditions, it will also be switched to the solution which was last modified when the new data set was active.&lt;br /&gt;
* '''Down:''' When the user switches between conditions, the current solution will not be changed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''''+' '''&amp;lt;/span&amp;gt;button at the top right creates a new solution and copies the current solution to the new one. If the solution which was copied already has a file path (i.e. has been loaded or saved before), the file path of the new solution is modified such that it does not specify an existing file.&lt;br /&gt;
&lt;br /&gt;
The button is disabled if no solution is available.&lt;br /&gt;
&lt;br /&gt;
Note: The entry ''New Copy of Displayed Solution'' in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Solution'''&amp;lt;/span&amp;gt; menu provides the same functionality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Source Plot Scale'''&amp;lt;/span&amp;gt; buttons at the bottom right of the head box are used to adjust the size of the source plots. Note that two different settings are stored: One for the source display if the cursor has been set, one for the display without cursor. If you hold the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; in combination, the scale is reset to default. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
A double-click on one of the head schemes creates a new source at that location. The type of the new source can be specified using the menu entry &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options/Default Source Type'''&amp;lt;/span&amp;gt;. A double click on an existing source deletes it.&lt;br /&gt;
&lt;br /&gt;
If a source is under the mouse the mouse changes to [[Image:|top]]. A single click with the left button turns the source under the mouse into the selected source. A double click deletes the source.&lt;br /&gt;
&lt;br /&gt;
If the source under the mouse can be moved the mouse changes to [[Image:|top]]. You can move the source by dragging with the left mouse button (spatial components may not be moved). The source location is bound to the limits which have been set in the ''Limit of source location section'' in the'' Preferences'' dialog box.&lt;br /&gt;
&lt;br /&gt;
If the orientation of a source can be modified the mouse changes to [[Image:|top]]( single dipoles only). Drag the vertex of the orientation to rotate the dipole. Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-key'''&amp;lt;/span&amp;gt; in combination if you want to rotate the orientation in the specified view only.&lt;br /&gt;
&lt;br /&gt;
Note: If you want to drag the orientation even if it is hidden use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; in combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you double click on the filename of the solution, which is given at the top of the head box, a text box is displayed in which you may enter a description. If a solution description has been set, it is displayed instead of the filename. This description will be stored when the solution is saved.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the head box, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Head Box'''&amp;lt;/span&amp;gt; popup menu appears with commands specific to this box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Head box display if the 3D window is open'''&lt;br /&gt;
&lt;br /&gt;
If the ''3D window'' is open the appearance of the head box is different. Only two head schemes are displayed.&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (11).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Flip Head Scheme'''&amp;lt;/span&amp;gt; buttons (labeled &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Flp'''&amp;lt;/span&amp;gt;) at the bottom right and left of the window flip the associated head scheme. E.g. clicking onto the left &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Flp'''&amp;lt;/span&amp;gt; button in this image would switch the sagittal view from the left to the sagittal view from the right.&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift Head Scheme'''&amp;lt;/span&amp;gt; buttons (second and third button to the left, marked with small arrows) to scroll the head schemes until you see your desired view.&lt;br /&gt;
&lt;br /&gt;
The '''Transparency scroll bar '''in the mid bottom changes the source transparency. A source is plotted in one view only if it is located in the forward hemisphere or as far in the back hemisphere as set by the transparency value - the depth up to which sources are plotted in the back hemisphere. Please see additional information in the section ''Source Transparency'', (''Preferences'' dialog box), use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Back'''&amp;lt;/span&amp;gt; button of the Windows® help to jump back to this page.&lt;br /&gt;
&lt;br /&gt;
== 3D Window ==&lt;br /&gt;
&lt;br /&gt;
The 3D window is opened if a 3D map (fig. 1) or the anatomical view of an individual MRI or the BESA Research standard Brain (fig. 2) is displayed. It also opens if any of the 3D volume imaging or 3D surface imaging methods are used. (Use the popup menu entries &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Display MRI'''&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Display 3D Maps'''&amp;lt;/span&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:3D_Window_-_Cortical_Map.png|thumb|425px|Fig. 1]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:3D_Window_-_Rolandic.png|thumb|425px|Fig. 2]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ''(Click on the region of interest to view a description.)'' --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sources of the current solution are displayed in the anatomical view (fig. 2), or in the cortical imaging view if this is activated via the popup menu using the right mouse button. The selected source is displayed with a golden halo around the source body. If EEG/MEG data is coregistered with MRI the confidence elipsoids and error rims are displayed around fitted sources&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''3D window toolbar''' is explained in details in the ''3D Window Toolbar'' section in the BESA help ''Reference'' chapter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Keyboard'''&lt;br /&gt;
&lt;br /&gt;
A number of key combinations are useful for navigation/display in the 3D window if the 3D window is active. The most important commands with their default keys are listed here. Note that you can change the default keys in the ''Define hot keys'' dialog box, which also allows to specify additional key commands.&lt;br /&gt;
&lt;br /&gt;
Command default key(s) and effects:&lt;br /&gt;
&lt;br /&gt;
* '''Decrement/Increment scale''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Num-, Num+:'''&amp;lt;/span&amp;gt; Decrements/Increments the map scale in the 3D map or the source plot size in the anatomical view.&lt;br /&gt;
* '''Move down/left/right/up''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Numpad-2, Numpad-4, Numpad-6, Numpad-8'''&amp;lt;/span&amp;gt;: If a source is selected, the source is moved within the current slice in steps of one millimeter in the corresponding direction. If no source is selected, the slicing center is moved instead. This only applies to the anatomical view.&lt;br /&gt;
* '''Slice backwards/forward''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Down, Up'''&amp;lt;/span&amp;gt;: If a source is selected the source is moved into the next slice, one millimeter out of or into the current anatomical view. If no source is selected the slicing center is sliced down or up instead. This only applies to the anatomical view.&lt;br /&gt;
* '''Switch to specific slice''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-C, Shift-S, Shift-T'''&amp;lt;/span&amp;gt;: Switches to the coronal, sagittal, or transversal slice (anatomical view only).&lt;br /&gt;
* '''Display 3D maps''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''M'''&amp;lt;/span&amp;gt;: Switches from the anatomical view to the 3D map. Works only if the cursor has been set.&lt;br /&gt;
* '''Display standard MRI''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''A'''&amp;lt;/span&amp;gt;: Switches from the 3D map to the anatomical view.&lt;br /&gt;
* '''Display brain atlas overlay''' &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' ''Shift-A'''''&amp;lt;/span&amp;gt;: Toggles on or off brain atlas overlay on anatomical view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Using the Mouse'''&lt;br /&gt;
&lt;br /&gt;
Whenever an action with the left mouse button is possible the mouse cursor will change from the standard arrow to a special icon. The following mouse actions are possible:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''New source'''&lt;br /&gt;
&lt;br /&gt;
A double click on a surface (skin or brain) or inside an anatomical view will insert a new source at the associated 3D location. The type of the new source can be specified using the menu entry &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Options/Default Source Type'''&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Delete source'''&lt;br /&gt;
&lt;br /&gt;
A double click on an existing source will delete the source after a confirmation box is closed with ''Yes''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (14).gif]] '''Rotate'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will rotate the current view. This action is available on a 3D map or on the 3D view of the anatomical view. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Rotation Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar '''or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-key'''&amp;lt;/span&amp;gt; have to be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (15).gif]] '''Zoom'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will zoom the current view. This action is available on a 3D map or on the 3D view of the anatomical view. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Zoom Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Shift-'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; have to be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (16).gif]] '''Move'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will rotate the current view. This action is available on a 3D map or on the 3D view of the anatomical view. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Move Mode'''&amp;lt;/span&amp;gt; button of the''' 3D window toolbar '''or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; have to be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (17).gif]] '''Slice Vertically'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will slice the current slicing center up and down. This action is available on the anatomical view only. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; have to be pressed in combination.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (18).gif]] '''Slice Horizontally'''&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will slice the current slicing center horizontally. This action is available on the 2D anatomical views only. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; must not be pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (19).gif]] '''Set Slicing Center to Source Location'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected) and set the current slicing center to the source location. A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
This action is available on the anatomical view only if a source is under the mouse and this source must not be moved (e.g. a spatial component).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (9).gif]] '''Move Source'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected). A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will move the source horizontally to the displayed slice.&lt;br /&gt;
&lt;br /&gt;
This action is available only if a source is under the mouse, this source may be moved (no spatial component), and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Move Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-key'''&amp;lt;/span&amp;gt; are pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (20).gif]] '''Move Source and Slice Horizontally'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected) and set the current slicing center to the source location. A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will move the source horizontally to the displayed slice and set the current slicing center to the new source location.&lt;br /&gt;
&lt;br /&gt;
This action is available only if a source is under the mouse, this source may be moved (no spatial component) and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Move Mode'''&amp;lt;/span&amp;gt; button, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode '''&amp;lt;/span&amp;gt;button (of the '''3D window toolbar'''), the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Control-'''&amp;lt;/span&amp;gt; and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; are not pressed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Functions SAwindow (21).gif]] '''Move Source and Slice Vertically'''&lt;br /&gt;
&lt;br /&gt;
A single click with the left mouse button will select the source under the mouse (if not already selected) and set the current slicing center to the source location. A double click will delete the source.&lt;br /&gt;
&lt;br /&gt;
Dragging with the left mouse button will move the source vertically to the displayed slice and set the current slicing center to the new source location.&lt;br /&gt;
&lt;br /&gt;
This action is available only if a source is under the mouse, this source may be moved (no spatial component) and the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Slice Mode'''&amp;lt;/span&amp;gt; button of the '''3D window toolbar''' or the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Alternate-key'''&amp;lt;/span&amp;gt; are pressed.&lt;br /&gt;
&lt;br /&gt;
If you click the right mouse button somewhere in the 3D window, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''3D Window'''&amp;lt;/span&amp;gt; popup menu appears with commands specific to this window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2021-11-25T12:38:55Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 12: &amp;quot;''Time-frequency analysis, Connectivity analysis, and Beamforming''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{W}(r) = [\mathrm{L}^T(r)\mathrm{C}^{-1}\mathrm{L}(r)]^{-1}\mathrm{L}^T(r)\mathrm{C}^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF1.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathrm{C}^{-1}&amp;lt;/math&amp;gt; is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}(r,t) = \mathrm{W}(r)\mathrm{M}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF2.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals. The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}(r) = \operatorname{tr^{'}}[\mathrm{W}(r) \cdot \mathrm{C} \cdot \mathrm{W}^T(r)]&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF3.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power. In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
'''''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF4.png|500px|thumb|c|none|Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.]]&lt;br /&gt;
&lt;br /&gt;
'''''Multiple-source beamformer in the Source Analysis window'''''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png|700px|thumb|c|none|Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the beamformer image).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png|700px|thumb|c|none|Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the location (blue square in the figure) is not considered for the multiple-source beamformer.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is performed.&lt;br /&gt;
&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in the current source array.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (*.vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter [[#Regularization_of_distributed_volume_images|''Regularization of distributed volume images'']] for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:&lt;br /&gt;
&lt;br /&gt;
* '''The spatial weighting matrix V''': This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
* '''Regularization''': The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter ''Regularization of Distributed Volume Images''for more information.&lt;br /&gt;
* '''Standardization''': Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* '''Iterations''': Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter ''User-Defined Volume Tab'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''Regularization of distributed volume images'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
** One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
** Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor &amp;lt;/span&amp;gt; of dataset &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
[[File:SA 3Dimaging (42).gif|400px|thumb|c|none|Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References:'''&lt;br /&gt;
&lt;br /&gt;
Please refer to ''Iordanov et al.: LORETA With Cortical Constraint: Choosing an Adequate Surface Laplacian Operator. Front Neurosci 12, Article 746, 2018'', for more information - full article available [https://www.frontiersin.org/articles/10.3389/fnins.2018.00746/full here].&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Three methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
* '''Use the full baseline covariance matrix''': This option is only available if a previous beamformer image in the time-domain was calculated. In this case, it can be selected from the general image settings dialog tab. The baseline covariance interval is the one selected for the beamformer, and is indicated by a thin horizontal bar in the channel box.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
== SESAME ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''SESAME''' (Sequential Semi-Analytic Monte-Carlo Estimation) is a Bayesian approach for estimating sources that uses Markov-Chain Monte-Carlo method for efficient computation of the probability distribution as described in Sommariva, S., &amp;amp; Sorrentino, A. &amp;quot;Sequential Monte Carlo samplers for semi-linear inverse problems and application to magnetoencephalography.&amp;quot; Inverse Problems 30.11 (2014): 114020.&lt;br /&gt;
&lt;br /&gt;
It allows to automatically estimate simultaneously the number of dipoles, their locations and time courses requiring virtually no user input. The algorithm is divided in two blocks:&lt;br /&gt;
&lt;br /&gt;
* The first block consists of a Monte Carlo sampling algorithm that produces, with an adaptive number of iterations, a set of samples representing the posterior distribution for the number of dipoles and the dipole locations.&lt;br /&gt;
* The second block estimates the source time courses, given the number of dipoles and the dipole locations.&lt;br /&gt;
&lt;br /&gt;
The Monte Carlo algorithm in the first block works by letting a set of weighted samples evolve with each iteration. At each iteration, the samples (a multi-dipole state) approximates the n-th element of a sequence of distributions p1, …, pN, that reaches the desired posterior distribution (pN = p(x|y)). The sequence is built as pN = p(x) p(y|x) α(n), such that α(1) = 0, α(N) = 1. The actual sequence of values of alpha is determined online. Dipole moments are estimated after the number of dipoles and the dipole locations have been estimated with the Monte Carlo procedure. This continues until a steady state is reached.&lt;br /&gt;
&lt;br /&gt;
The SESAME image in BESA Research displays the final probability of source location along with an estimate for number of sources. Using the menu function &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image / Export Image As...'''&amp;lt;/span&amp;gt; you have the option to save this SESAME image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
*'''Grid spacing:''' Due to memory and computational limitations, it is recommended to use SESAME with a grid spacing of 5 mm or more.&lt;br /&gt;
*'''Fit Interval:'''  SESAME requires a fit interval of more than 2 samples to start the computation.&lt;br /&gt;
*'''Computation time:''' Computation speed during SESAME calculation depends on the grid spacing (computation is faster with larger grid spacing) and number of channels.&lt;br /&gt;
&lt;br /&gt;
== Brain Atlas ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
Brain atlas is a priori data that can be applied over any discrete or distributed source image displayed in the 3D window. It is a reference value that strongly depends on the selected brain atlas and should not be used as medical reference since individual brains may differ from the brain atlas. The display settings can be adjusted in 3D Window Tab.&lt;br /&gt;
&lt;br /&gt;
[[Image:BrainAtlas1.png|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Brain Atlases'''&lt;br /&gt;
&lt;br /&gt;
In BESA Research the atlases listed below are provided. '''BESA is not the author of the atlases; please cite the appropriate publications if you use any of the atlases in your publication.'''&lt;br /&gt;
&lt;br /&gt;
[http://atlas.brainnetome.org/bnatlas.html '''Brainnetome'''] &amp;lt;br&amp;gt;&lt;br /&gt;
This is one of the most modern brain probabilistic atlas where structural, functional, and connectivity information was used to perform cortical parcellation. It was introduce by Fan and colleagues (2016), and is still work in progress. The atlas was created using data from 40 healthy adults taking part in the Human Connectome Project. In March 2018, the atlas consists of 246 structures labeled independently for each hemisphere. In BESA we provide the max probability map with labeling. Please visit the Brainnetome webpage to see more details related to the indicated brain regions (i.e. behavioral domains, paradigm classes and regions connectivity).&lt;br /&gt;
&lt;br /&gt;
'''AAL''' &amp;lt;br&amp;gt;&lt;br /&gt;
Automated Anatomical Labeling atlas was created in 2002 by Tzourio-Mazoyer and collegues (2002). It is the mostly used atlas nowadays. The atlas is based on the averaged brain of one subject (young male) who was scanned 27 times. The atlas resolution is 1 mm isometric. The brain sulci were drawn manually on every 2mm slice and then brain regions were automatically assigned. The atlas consists of 116 regions which are asymmetrical between hemispheres. The atlas is implemented as in the [https://www.fil.ion.ucl.ac.uk/spm/ '''SPM12'''] toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Brodmann''' &amp;lt;br&amp;gt;&lt;br /&gt;
The Brodmann map was created by Brodmann (1909). The brain regions were differentiated by cytoarchitecture of each cortical area using the Nissi method of cell staining. The digitalization of the original Brodmann map was performed by Damasio and Damasio (1989). The digitalized atlas consists of 44 fields that are symmetric between hemispheres. BESA used the atlas implementation as in Chris Roden’s [https://people.cas.sc.edu/rorden/mricro/index.html '''MRICro'''] software.&lt;br /&gt;
&lt;br /&gt;
'''AAL2015''' &amp;lt;br&amp;gt;&lt;br /&gt;
Automated Anatomical Labeling revision 2015. This is the updated AAL atlas. In comparison to the previous version (AAL) mainly the frontal lobe shows a higher degree of parcellation (Rolls, Joliot, and Tzourio-Mazoyer 2015). The atlas is implemented as in the [https://www.fil.ion.ucl.ac.uk/spm/ '''SPM12'''] toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Talairach''' &amp;lt;br&amp;gt;&lt;br /&gt;
Atlas was created in 1988 by Talairach and Tournoux (1988) and it is based on the post mortem brain slices of a 60 year old right handed European female. It was created by drawing and matching regions with the Brodmann map. The atlas is available at 5 tissue levels, however we used only the volumetric gyrus level as it is the most known in neuroscience and is the most appropriate for EEG. The atlas consists of 55 regions that are symmetric between hemispheres. The native resolution of the atlas was 0.43x0.43x2-5 mm. Please note that the poor resolution in Z direction is a direct consequence atlas definition, and since it is a post-mortem atlas it will not correctly match the brain template&lt;br /&gt;
(noticeable mainly on brain edges). The atlas digitalization was performed by Lancaster and colleagues (2000) resulting in a “golden standard” for neuroscience. The atlas was first implemented in a software called [http://www.talairach.org/daemon.html '''talairach daemon'''].&lt;br /&gt;
&lt;br /&gt;
'''Yeo7 and Yeo17''' &amp;lt;br&amp;gt;&lt;br /&gt;
Yeo7 and Yeo17 are the resting state functional connectivity atlases created by Yeo et al. (2011). For atlas creation 1000 subjects, coregistered using surface-based alignment were used. Two versions of parcellation were used resulting for the 7 and 17 networks (Yeo7 and Yeo17 atlas respectively). In the original publication atlases for two different levels of brain structure coverage were prepared: neocortex and liberal. In BESA products, only one of them (liberal) is available. Note that in comparison to the other atlases, here networks are reflected, rather than the individual brain structures. These atlases are in line with [[BESA_Research_Montage_Editor#Standard_Source_Montage_-_Resting_State_Montages | Resting State Source Montages]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Visualization modes'''&lt;br /&gt;
&lt;br /&gt;
'''Just Labels''' &amp;lt;br&amp;gt;&lt;br /&gt;
Displayed are crosshair coordinates (Talairach or MNI), the currently used brain atlas and the region name where the crosshair is placed. No atlas overlay will be visible on the 3D image.&lt;br /&gt;
&lt;br /&gt;
'''brainCOLOR''' &amp;lt;br&amp;gt;&lt;br /&gt;
All information is displayed as in “Just Labels” mode but also the atlas is visible as an overlay over the MRI. The coloring is performed using the algorithm introduced by Klein and colleagues (Klein et al. 2010). With this method of coloring the regions which are part of the same lobe are colored in a similar color but with different color shade. The shade is computed by the algorithm to make these regions visually differentiable from each other as much as possible.&lt;br /&gt;
&lt;br /&gt;
'''Individual Color''' &amp;lt;br&amp;gt;&lt;br /&gt;
In this mode the native brain atlas color is used if provided by the authors of the brain atlas (i.e. Yeo7). Where this was not available BESA autogenerated colors for the atlas using an approach similar to political map coloring. This approach aims to differentiate most regions that are adjacent to each other and no presumptions on lobes is applied.&lt;br /&gt;
&lt;br /&gt;
'''Contour''' &amp;lt;br&amp;gt;&lt;br /&gt;
Only region contours (borders between atlas regions) are drawn with blue color. This is the default mode in BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
* Brodmann, Korbinian. 1909. Vergleichende Lokalisationslehre Der Großhirnrinde. Leipzig: Barth. https://www.livivo.de/doc/437605.&lt;br /&gt;
* Damasio, Hanna, and Antonio R. Damasio. 1989. Lesion Analysis in Neuropsychology. Oxford University Press, USA.&lt;br /&gt;
* Fan, Lingzhong, Hai Li, Junjie Zhuo, Yu Zhang, Jiaojian Wang, Liangfu Chen, Zhengyi Yang, et al. 2016. “The Human Brainnetome Atlas: A New Brain Atlas Based on Connectional Architecture.” Cerebral Cortex 26 (8): 3508–26. https://doi.org/10.1093/cercor/bhw157.&lt;br /&gt;
* Klein, Arno, Andrew Worth, Jason Tourville, Bennett Landman, Tito Dal Canton, Satrajit S. Ghosh, and David Shattuck. 2010. “An Interactive Tool for Constructing Optimal Brain Colormaps.” https://mindboggle.info/braincolor/colormaps/index.html.&lt;br /&gt;
* Lancaster, Jack L., Marty G. Woldorff, Lawrence M. Parsons, Mario Liotti, Catarina S. Freitas, Lacy Rainey, Peter V. Kochunov, Dan Nickerson, Shawn A. Mikiten, and Peter T. Fox. 2000. “Automated Talairach Atlas Labels for Functional Brain Mapping.” Human Brain Mapping 10 (3): 120–131.&lt;br /&gt;
*Rolls, Edmund T., Marc Joliot, and Nathalie Tzourio-Mazoyer. 2015. “Implementation of a New Parcellation of the Orbitofrontal Cortex in the Automated Anatomical Labeling Atlas.” NeuroImage 122 (November): 1–5. https://doi.org/10.1016/j.neuroimage.2015.07.075.&lt;br /&gt;
* Talairach, J, and P Tournoux. 1988. Co-Planar Stereotaxic Atlas of the Human Brain. 3-Dimensional Proportional System: An Approach to Cerebral Imaging. Thieme.&lt;br /&gt;
*Thomas Yeo, B. T., F. M. Krienen, J. Sepulcre, M. R. Sabuncu, D. Lashkari, M. Hollinshead, J. L. Roffman, et al. 2011. “The Organization of the Human Cerebral Cortex Estimated by Intrinsic Functional Connectivity.” Journal of Neurophysiology 106 (3): 1125–65. https://doi.org/10.1152/jn.00338.2011.&lt;br /&gt;
* Tzourio-Mazoyer, N., B. Landeau, D. Papathanassiou, F. Crivello, O. Etard, N. Delcroix, B. Mazoyer, and M. Joliot. 2002. “Automated Anatomical Labeling of Activations in SPM Using a Macroscopic Anatomical Parcellation of the MNI MRI Single-Subject Brain.” NeuroImage 15 (1): 273–89. https://doi.org/10.1006/nimg.2001.0978.&lt;br /&gt;
&lt;br /&gt;
== Slice View ==&lt;br /&gt;
''This feature requires BESA Research 7.1 or higher.''&lt;br /&gt;
&lt;br /&gt;
A convenient way to review MRI data and export it in graphical form is a multi-slice view. To enable multi-slice view press the toggle multiple view button until the slice view is shown in the 3D window.&lt;br /&gt;
&lt;br /&gt;
[[Image:SliceView1.png|600px]]&lt;br /&gt;
&lt;br /&gt;
In this view discrete sources, [[Source_Analysis_3D_Imaging#Overview | distributed sources]] and [[Source_Analysis_3D_Imaging#Brain Atlas| brain atlas]] can be also be overlayed. The display matrix can be adjusted by slice view controls that are available in the 3D Window tab of the Preferences Dialog Box. One of the following slicing direction can be selected: Transverse, Coronal, Sagittal by pressing the appropriate button in the 3D window toolbar.&lt;br /&gt;
&lt;br /&gt;
By adjusting First slice and Last slice sliders, the span of the volume that will be displayed can be adjusted. The interval between slices can be adjusted by changing the Spacing slider value. The layout of slices will be automatically adjusted to fill the full space of the main window. All values in the sliders are given in mm.&lt;br /&gt;
&lt;br /&gt;
'''Note''': The last slice value will be adjusted to the closest possible number matching the given first slice and spacing value. During multi-slice view the cursor is disabled and no&lt;br /&gt;
atlas information is provided.&lt;br /&gt;
&lt;br /&gt;
== Glassbrain ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Glassbrain.png|600px]]&lt;br /&gt;
&lt;br /&gt;
The glass brain can be enabled or disabled in one of the following ways:&lt;br /&gt;
&lt;br /&gt;
*by pressing the button  in the toolbar ,&lt;br /&gt;
&lt;br /&gt;
*by using the shortcut SHIFT-G or&lt;br /&gt;
&lt;br /&gt;
*by checking the checkbox in Preferences, 3D Display tab.&lt;br /&gt;
&lt;br /&gt;
The transparency value of the glass brain can be adjusted in one of the following ways:&lt;br /&gt;
&lt;br /&gt;
*by a slider/edit box in Preferences, 3D Display tab or&lt;br /&gt;
&lt;br /&gt;
*by using the keyboard shortcut SHIFT-UP (to increase transparency by 10%) or SHIFT-DOWN (to decrease transparency by 10%).&lt;br /&gt;
&lt;br /&gt;
Note that If a distributed solution is displayed together with the glass brain, a notification is displayed in the left bottom corner of 3D window to prevent misconception of the glass brain as a cortical image:&lt;br /&gt;
&lt;br /&gt;
“Volume-based image only&amp;quot;, which means that the results of distributed source analysis images are visualized only for the current MRI slice, and are not projected to the displayed surface. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging</id>
		<title>Source Analysis 3D Imaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Source_Analysis_3D_Imaging"/>
				<updated>2021-11-25T12:37:25Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Standard or higher&lt;br /&gt;
|version = BESA Research 6.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- == 3D Imaging == --&amp;gt;&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
BESA Research features a set of new functions that provide 3D images that are displayed superimposed to the individual subject's anatomy. This chapter introduces these different images and describe their properties and applications.&lt;br /&gt;
&lt;br /&gt;
The 3D images can be divided into three categories:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Volume images:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''The Multiple Source Beamformer (MSBF)''' is a tool for imaging brain activity. It is applied in the time-domain or time-frequency domain. The beamformer technique in time-frequency domain can image not only evoked, but also induced activity, which is not visible in time-domain averages of the data.&lt;br /&gt;
* '''Dynamic Imaging of Coherent Sources (DICS)''' can find coherence between any two pairs of voxels in the brain or between an external source and brain voxels. DICS requires time-frequency-transformed data and can find coherence for evoked and induced activity.&lt;br /&gt;
&lt;br /&gt;
The following imaging methods provide an image of brain activity based on a distributed multiple source model:&lt;br /&gt;
* '''CLARA''' is an iterative application of LORETA images, focusing the obtained 3D image in each iteration step.&lt;br /&gt;
* '''LAURA '''uses a spatial weighting function that has the form of a local autoregressive function.&lt;br /&gt;
* '''LORETA''' has the 3D Laplacian operator implemented as spatial weighting prior.&lt;br /&gt;
* '''sLORETA''' is an unweighted minimum norm that is standardized by the resolution matrix.&lt;br /&gt;
* '''swLORETA '''is equivalent to sLORETA, except for an additional depth weighting.&lt;br /&gt;
* '''SSLOFO '''is an iterative application of standardized minimum norm images with consecutive shrinkage of the source space.&lt;br /&gt;
* A '''User-defined volume image''' allows to experiment with the different imaging techniques. It is possible to specify user-defined parameters for the family of distributed source images to create a new imaging technique.&lt;br /&gt;
* Bayesian source imaging: '''SESAME''' uses a semi-automated Bayesian approach to estimate the number of dipoles along with their parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface image:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The '''Surface Minimum Norm Image'''. If no individual MRI is available, the minimum norm image is displayed on a standard brain surface and computed for standard source locations. If available, an individual brain surface is used to construct the distributed source model and to image the brain activity.&lt;br /&gt;
* '''Cortical LORETA'''. Unlike classical LORETA, cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
* '''Cortical CLARA'''. Unlike classical CLARA, cortical CLARA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Discrete model probing:'''&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These images do not visualize source activity. Rather, they visualize properties of the currently applied discrete source model:&lt;br /&gt;
* The '''Multiple Source Probe Scan (MSPS)''' is a tool for the validation of a discrete multiple source model.&lt;br /&gt;
* The '''Source Sensitivity image''' displays the sensitivity of a selected source in the current discrete source model and is therefore data independent.&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time-frequency Domain ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is a modified version of the linearly constrained minimum variance vector beamformer in the time-frequency domain as described in [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001]. It allows to image evoked and induced oscillatory activity in a user-defined time-frequency range, where time is taken relative to a triggered event.&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the time-frequency domain. This transformation is performed by the BESA Research Source Coherence module and leads to the complex spectral density S&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; (f,t), where i is the channel index and f and t denote frequency and time, respectively. Complex cross spectral density matrices C are computed for each trial:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{C}_{ij}\left( f,t \right) = \mathrm{S}_{i}\left( f,t \right) \cdot \mathrm{S}_{j}^{*}\left( f,t \right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (1).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The output power P of the beamformer for a specific brain region at location r is then computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}\left( r \right) = \operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{-1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, C&amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the inverse of the SVD-regularized average of C&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;(f,t) over trials and the time-frequency range of interest; L is the leadfield matrix of the model containing a regional source at target location r and, optionally, additional sources whose interference with the target source is to be minimized; tr'[] is the trace of the [3×3] (MEG:[2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
In BESA Research, the output power P(r) is normalized with the output power in a reference time-frequency interval P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r). A value q ist defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \mathrm{q}\left( r \right) = &lt;br /&gt;
\begin{cases}&lt;br /&gt;
\sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}(r)}} - 1 = \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}} - 1, &amp;amp; \text{for }\mathrm{P}(r) \geq \mathrm{P}_{\text{ref}}(r) \\&lt;br /&gt;
&lt;br /&gt;
1 - \sqrt{\frac{\mathrm{P}_{\text{ref}}\left( r \right)}{\mathrm{P}\left( r \right)}} = 1 - \sqrt{\frac{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{\text{ref},r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}{\operatorname{tr^{'}}\left\lbrack \mathrm{L}^{T}\left( r \right) \cdot \mathrm{C}_{r}^{- 1} \cdot \mathrm{L}\left( r \right) \right\rbrack^{- 1}}}, &amp;amp; \text{for }\mathrm{P}(r) &amp;lt; \mathrm{P}_{\text{ref}}(r)&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;ref &amp;lt;/sub&amp;gt;can be computed either from the corresponding frequency range in the baseline of the same condition (i.e. the beamformer images event-related power increase or decrease) or from the corresponding time-frequency range in a control condition (i.e. the beamformer images differences between two conditions). The beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''General Settings tab'''. For MEG data, the innermost grid points within a sphere of approx. 12% of the head diameter are assigned interpolated rather than calculated values).&lt;br /&gt;
q-values are shown in %, where where q[%] = q*100. Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A beamformer operator is designed to pass signals from the brain region of interest r without attenuation, while minimizing interference from activity in all other brain regions. Traditional single-source beamformers are known to mislocalize sources if several brain regions have highly correlated activity. Therefore, the BESA beamformer extends the traditional single-source beamformer in order to implicitly suppress activity from possibly correlated brain regions. This is achieved by using a multiple source beamformer calculation that contains not only the leadfields of the source at the location of interest r, but also those of possibly interfering sources. As a default, BESA Research uses a bilateral beamformer, where specifically contributions from the homologue source in the opposite hemisphere are taken into account (the matrix L thus being of dimension N×6 for EEG and N×4 for MEG, respectively, where N is the number of sensors). This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli.&lt;br /&gt;
&lt;br /&gt;
In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations that are specified in the current solution. This is achieved by adding their leadfield vectors to the matrix L in the equation above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer. The displayed figures are generated using the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''Examples/Learn-by-Simulations/AC-Coherence/AC-Osc20.foc''''&amp;lt;/span&amp;gt; (see BESA Tutorial 12: &amp;quot;''Time-frequency analysis, Connectivity analysis, and Beamforming''&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting the beamformer from the time-frequency window'''&lt;br /&gt;
&lt;br /&gt;
The BESA beamformer is applied in the time-frequency domain and therefore requires the Source Coherence module to be enabled. The time-frequency beamformer is especially useful to image in- or decrease of induced oscillatory activity. Induced activity cannot be observed in the averaged data, but shows up as enhanced averaged power in the TSE (Temporal-Spectral Evolution) plot. For instructions on how to initiate a beamformer computation in the time-frequency window, please refer to Chapter '''[[Source_Coherence_How_to...#How_to_Start_the_Beamformer_from_the_Time-Frequency_Window|How to Create Beamformer Images]]'''.&lt;br /&gt;
&lt;br /&gt;
After the beamformer computation has been initiated in the time-frequency window, the source analysis window opens with an enlarged 3D image of the q-value computed with a '''bilateral beamformer'''. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (5).gif]]&lt;br /&gt;
&lt;br /&gt;
''Beamformer image after starting the computation in the Time-Frequency window. A bilateral pair of sources in the auditory cortex accounts for the highly correlated oscillatory induced activity. Only the bilateral beamformer manages to separate these activities; a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Multiple source beamformer in the Source Analysis window'''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. If you press the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Restore'''&amp;lt;/span&amp;gt; button at the right end of the title bar of the 3D window, the window appears at the bottom right of the source analysis window. In the channel box, the averaged (evoked) data of the selected condition is shown. When a control condition was selected, its average is appended to the average of the target condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Analysis window with beamformer image. The two sources have been added using the ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to'''&amp;lt;/span&amp;gt;'' ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Maximum'''&amp;lt;/span&amp;gt;'' and ''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source '''&amp;lt;/span&amp;gt;''toolbar buttons (see below). Source waveforms are computed from the displayed averaged data. Therefore, they do not represent the activity displayed in the beamformer image, which in this simulation example is induced (i.e. not phase-locked to the trigger)!''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the time-frequency window, a bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed ('''they enter the matrix L in the beamformer calculation''', see Chapter ''Short mathematical description'' above). The computation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selector button'''&amp;lt;/span&amp;gt; dropdown menu. The &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (7).gif]]&lt;br /&gt;
&lt;br /&gt;
''Multiple source beamformer image calculated in the presence of a source in the left hemisphere. A '''single''' source scan has been performed. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a '''single''' or a '''bilateral''' source scan. The default scan type depends on the current solution:&lt;br /&gt;
* When the beamformer is started from the Time-Frequency window, the Source Analysis window opens with a new solution and a '''bilateral''' beamformer scan is performed.&lt;br /&gt;
* When the beamformer is started within the Source Analysis window, the default is&lt;br /&gt;
** a scan with a '''single''' source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
** a '''bilateral''' scan if no source in the current solution is active.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding ''Volume Image / Beamformer'' entry in the '''&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image&amp;lt;/span&amp;gt;''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add sources to the current solution. A simple double-click anywhere in the 2D- or 3D-view will generate a non-oriented regional source at the corresponding location. However, a better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
Use the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; button to place the red crosshair of the 3D window onto a local image maximum or minimum. Hitting the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button creates a regional source at the location of the crosshair and therefore ensures the exact placement of the source at the image extremum. Moreover, the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; button generates an oriented regional source. BESA Research automatically estimates the source orientation that contributes most to the power in the target time-frequency interval (or the reference time-frequency interval, if its power is larger than that in the target interval). The accuracy of this orientation estimate depends largely on the noise content of the data. The smaller the signal-to-noise ratio of the data, the lower is the accuracy of the orientation estimate. '''This feature allows to use the beamformer as a tool to create a source montage for source coherence analysis, where it is of advantage to work with oriented sources'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, use the [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volumes''' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Dynamic Imaging of Coherent Sources (DICS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dynamic Imaging of Coherent Sources (DICS) is a sophisticated method for imaging cortico-cortical coherence in the brain, or coherence between an external reference (e.g. EMG channel) and cortical structures. DICS can be applied to localize evoked as well as induced coherent cortical activity in a user-defined time-frequency range.&lt;br /&gt;
&lt;br /&gt;
DICS was implemented in BESA closely following [https://dx.doi.org/10.1073/pnas.98.2.694 Gross et al., &amp;quot;Dynamic imaging of coherent sources: Studying neural interactions in the human brain&amp;quot;, PNAS 98, 694-699, 2001].&lt;br /&gt;
&lt;br /&gt;
The computation is based on a transformation of each channel's single trial data from the time domain into the frequency domain. This transformation is performed by the BESA Research Coherence module and results in the complex spectral density matrix that is used for constructing the spatial filter similar to beamforming.&lt;br /&gt;
&lt;br /&gt;
DICS computation yields a 3-D image, each voxel being assigned a coherence value. Coherence values can be described as a neural activity index and do not have a unit. The neural activity index contrasts coherence in a target time-frequency bin with coherence of the same time-frequency bin in a baseline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-cortical coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let L(r) be the leadfield in voxel r in the brain and C the complex cross-spectral density matrix. The spatial filter W(r) for the voxel r in the head is defined as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;W\left( r \right) = \left\lbrack L^{T}\left( r \right) \cdot C^{- 1} \cdot L\left( r \right) \right\rbrack^{- 1} \cdot L^{T}(r) \cdot C^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (12).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cross-spectrum between two locations (voxels) r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; in the head are calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r_{1},r_{2} \right) = W\left( r_{1} \right) \cdot C \cdot W^{*T}\left( r_{2} \right),&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (13).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;sup&amp;gt;&amp;lt;nowiki&amp;gt;*T&amp;lt;/nowiki&amp;gt;&amp;lt;/sup&amp;gt; means the transposed complex conjugate of a matrix. The cross-spectral density can then be calculated from the cross spectrum as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r_{1},r_{2} \right) = \lambda_{1}\left\{ C_{s}\left( r_{1},r_{2} \right) \right\},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (14).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where λ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;{} indicates the largest singular value of the cross spectrum. Once the cross spectral density is estimated, the connectivity¹(CON) between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; are calculated as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r_{1},r_{2} \right) = \frac{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) - c_{s}^{\text{bl}}(r_{1},r_{2})}{c_{s}^{\text{sig}}\left( r_{1},r_{2} \right) + c_{s}^{\text{bl}}(r_{1},r_{2})},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (15).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;sig&amp;lt;/sup&amp;gt; is the cross-spectral density for the signal of interest between the two brain regions r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, and c&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;bl&amp;lt;/sup&amp;gt; is the corresponding cross spectral density for the baseline or the control condition, respectively. In the case DICS is computed with a cortical reference, r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is the reference region (voxel) and remains constant while r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; scans all the grid points within the brain sequentially. In that way, the connectivity between the reference brain region and all other brain regions is estimated. The value of CON(r&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, r&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;) falls in the interval [-1 1]. If the cross-spectral density for the baseline is 0 the connectivity value will be 1. If the cross-spectral density for the signal is 0 the connectivity value will be -1.&lt;br /&gt;
&lt;br /&gt;
¹ Here, the term connectivity is used rather than coherence, as strictly speaking the coherence equation is defined slightly differently. For simplicity reasons the rest of the tutorial uses the term coherence.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''DICS for cortico-muscular coherence is computed as follows:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When using an external reference, the equation for coherence calculation is slightly different compared to the equation for cortico-cortical coherence. First of all, the cross-spectral density matrix is not only computed for the MEG/EEG channels, but the external reference channel is added. This resulting matrix is C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. In this case, the cross-spectral density between the reference signal and all other MEG/EEG channels is called c&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;. It is only one column of C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;. Hence, the cross-spectrum in voxel r is calculated with the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;C_{s}\left( r \right) = W\left( r \right) \cdot c_{\text{ref}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (16).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and the corresponding cross-spectral density is calculated as the sum of squares of C&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \sum_{i = 1}^{n}{C_{s}\left( r \right)_{i}^{2}},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (17).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where n is 2 for MEG and 3 for EEG. This equation can also be described as the squared Euclidean norm of the cross-spectrum:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;c_{s}\left( r \right) = \left\| C_{s} \right\|^{2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (18).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The power in voxel r is calculated as in the cortico-cortical case:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;p\left( r \right) = \lambda_{1}\left\{ C_{s}(r,r) \right\}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (19).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At last, coherence between the external reference and cortical activity is calculated with the equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\text{CON}\left( r \right) = \frac{c_{s}(r)}{p\left( r \right) \cdot C_{\text{all}}(k,k)},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (20).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;(k, k) is the (k,k)-th diagonal element of the matrix C&amp;lt;sub&amp;gt;all&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence is to be calculated without an a-priory source model (in contrast to source coherence based on pre-defined source montages). However, the recommended analysis strategy for DICS is to use a brain source as a starting point for coherence calculation that is known to contribute to the EEG/MEG signal of interest. For example, one might first run a beamformer on the time-frequency range of interest and use the voxel with the strongest oscillatory activity as a starting point for DICS. The resulting coherence image will again lead to several maxima (ordered by magnitude), which in turn can serve as starting points for DICS calculation. This way, it is possible to detect even weak sources that show coherent activity in the given time-frequency range.&lt;br /&gt;
&lt;br /&gt;
The other significant application for DICS is estimating coherence between an external source and voxels in the brain. For example, an external source can be muscle activity recoded by an electrode placed over the according peripheral region. This way, the direct relationship between muscle activity and brain activation can be measured.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Starting DICS computation from the Time-Frequency Window'''&lt;br /&gt;
&lt;br /&gt;
DICS is particularly useful, if coherence in a user-defined time-frequency bin (evoked or induced) is to be calculated between any two brain regions or between an external reference and the brain. DICS runs only on time-frequency decomposed data, so time-frequency analysis needs to be run before starting DICS computation.&lt;br /&gt;
&lt;br /&gt;
To start the DICS computation, left-drag a window over a selected time-frequency bin in the Time-Frequency Window. Right-click and select “Image”. A dialogue will open (see fig. 1) prompting you to specify time and frequency settings as well as the baseline period. It is recommended to use a baseline period of equal length as the data period of interest. Make sure to select “DICS” in the top row and press “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Go'''&amp;lt;/span&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (21).gif|450px|thumb|c|none|Fig. 1: Time and frequency settings for DICS and MSBF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, a window will appear allowing you to specify the reference source for coherence calculation (see fig. 2). It is possible to select a channel (e.g. EMG) or a brain source. If a brain source is chosen and no source analysis was computed beforehand, the option “Use current cross-hair position” must be chosen. In case discrete source analysis was computed previously, the selected source can be chosen as the reference for DICS. Please note that DICS can be re-computed with any cross-hair or source position at a later stage.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (1).jpg|400px|thumb|c|none|Fig. 2: Possible options for choosing the reference]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Confirming with “&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''OK'''&amp;lt;/span&amp;gt;” will start computation of coherence between the selected channel/voxel and all other brain voxels. In case DICS is computed for a reference source in the brain, it can be advantageous to run a beamforming analysis in the selected time-frequency window first and use one of the beamforming maxima as reference for DICS. Fig. 3 shows an example for DICS calculation.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (22).gif|500px|thumb|c|none|Fig. 3: Coherence between left-hemispheric auditory areas and the selected voxel in the right auditory cortex.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Coherence values range between -1 and 1. If coherence in the signal is much larger than coherence in the baseline (control condition) then the DICS value is going to approach 1. Contrary, if coherence in the baseline is much larger than coherence in the signal, then the DICS value is going to approach -1. At last, if coherence in the signal is equal to coherence in the baseline, then the DICS value is 0.&lt;br /&gt;
&lt;br /&gt;
In case DICS is to be re-computed with a different reference, simply mark the desired reference position by placing the cross-hair in the anatomical view and select “DICS” in the middle panel of the source analysis window (see Fig. 4). In case an external reference is to be selected, click on “DICS” in the middle panel to bring up the DICS dialogue (see. Fig. 2) and select the desired channel. Please note that DICS computation will only be available after running time-frequency analysis.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (23).gif|700px|thumb|c|none|Fig. 4: Integration of DICS in the Source Analysis window]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Beamformer (MSBF) in the Time Domain ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''Short mathematical introduction'''&lt;br /&gt;
&lt;br /&gt;
Beamforming approach can be also applied in the time domain data. This approach was introduced as linearly constrained minimum variance (LCMV) beamformer (Van Veen et al., 1997). It allows to image evoked activity in a user-defined time range, where time is taken relative to a triggered event, and to estimate source waveforms using the calculated spatial weight at locations of interest. For an implementation of the beamformer in the time domain, data covariance matrices are required, while complex cross spectral density matrices are used for the beamformer approaches in the time-frequency domain as described in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section.&lt;br /&gt;
&lt;br /&gt;
The bilateral beamformer introduced in the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section is also implemented for the time-domain beamformer to take into account contributions from the homologue source in the opposite. This allows for imaging of highly correlated bilateral activity in the two hemispheres that commonly occurs during processing of external stimuli. In addition, the beamformer computation can take into account possibly correlated sources at arbitrary locations.&lt;br /&gt;
&lt;br /&gt;
The beamformer spatial weight W(r) for the voxel r in the brain is defined as follows (Van Veen et al., 1997):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{W}(r) = [\mathrm{L}^T(r)\mathrm{C}^{-1}\mathrm{L}(r)]^{-1}\mathrm{L}^T(r)\mathrm{C}^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF1.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathrm{C}^{-1}&amp;lt;/math&amp;gt; is the inversed regularized average of covariance matrix over trials, '''L''' is the leadfield matrix of the model containing a regional source at target location r and optionally additional sources whose interference with the target source is to be minimized. The beamformer spatial weight '''W'''(r) can be applied to the measured data to estimate source waveform at a location r (beamformer virtual sensor):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}(r,t) = \mathrm{W}(r)\mathrm{M}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF2.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''S'''(r,t) represents the estimated source waveform and '''M'''(t) represents measured EEG or MEG signals. The output power P of the beamformer for a specific brain region at location r is computed by the following equation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{P}(r) = \operatorname{tr^{'}}[\mathrm{W}(r) \cdot \mathrm{C} \cdot \mathrm{W}^T(r)]&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[File:MSBF3.png]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where tr’[ ] is the trace of the [3×3] (MEG: [2×2]) submatrix of the bracketed expression that corresponds to the source at target location r.&lt;br /&gt;
&lt;br /&gt;
Beamformer can suppress noise sources that are correlated across sensors. However, uncorrelated noise will be amplified in a spatially non-uniform manner, with increasing distortion with increasing distance from the sensors (Van Veen et al., 1997; Sekihara et al., 2001). For this reason, estimated source power should be normalized by a noise power. In BESA Research, the output power P(r) is normalized with the output power in a baseline interval or with the output power of a uncorrelated noise: P(r) / Pref (r).&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image is constructed from values q(r) computed for all locations on a grid specified in the '''&amp;lt;u&amp;gt;General Settings&amp;lt;/u&amp;gt;''' tab. A value q(r) is defined as described in&lt;br /&gt;
the ''[[Source_Analysis_3D_Imaging#Multiple_Source_Beamformer_.28MSBF.29_in_the_Time-frequency_Domain|Multiple Source Beamformer (MSBF) in the Time-frequency Domain]]'' section with data covariance matrices instead of cross-spectral density matrices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Beamformer'''&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the usage of the BESA beamformer in the time domain. The displayed figures are generated using the file ‘Examples/ERP-Auditory-Intensity/S1.cnt’.&lt;br /&gt;
&lt;br /&gt;
'''''Starting the time-domain beamformer from the Average tab of the Paradigm dialog box'''''&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer is needed data covariance matrices and therefore requires the ERP module to be enabled. After the beamformer computation has been initiated in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the source analysis window opens with an enlarged 3D image of the q-value computed with a bilateral beamformer. The result is superimposed onto the MR image assigned to the data set (individual or standard).&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF4.png|500px|thumb|c|none|Beamformer image for auditory evoked data after starting the computation in the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box'''&amp;lt;/u&amp;gt;. The bilateral beamformer manages to separate the activities in auditory areas, while a traditional single-source beamformer would merge the two sources into one image maximum in the head center instead.]]&lt;br /&gt;
&lt;br /&gt;
'''''Multiple-source beamformer in the Source Analysis window'''''&lt;br /&gt;
&lt;br /&gt;
The 3D imaging display is part of the source analysis window. In the Channel box, the averaged (evoked) data of the selected condition is shown. Selected covariance intervals in the ERP module can be checked in the Channel box. The red, gray, and blue rectangles indicate signal, baseline, and common interval, respectively.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF55.png|700px|thumb|c|none|Source Analysis window with beamformer image. The two beamformer virtual sensors have been added using the Switch to Maximum and Add Source toolbar buttons (see below).&lt;br /&gt;
Source waveforms are computed using the beamformer spatial weights and the displayed averaged data (the noise normalized weights (5% noise) option was used to compute the beamformer image).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When starting the beamformer from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''', the bilateral beamformer scan is performed. In the source analysis window, the beamformer computation can be repeated taking into account possibly correlated sources that are specified in the current solution. Interfering activities generated by all sources in the current solution that are in the 'On' state are specifically suppressed (they enter the leadfield matrix L in the beamformer calculation). The computation can be started from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu or from the Image selector button [[File:MSBF_Button.png|22px|Image: 22 pixels]] dropdown menu. The Image menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window.&lt;br /&gt;
&lt;br /&gt;
[[File:MSBF66.png|700px|thumb|c|none|Multiple-source beamformer image calculated in the presence of a source in the left hemisphere. A single-source scan has been performed instead of a bilateral beamforemr. The source set in the current solution accounts for the left-hemispheric q-maximum in the data. Accordingly, the beamformer scan reveals only the as yet unmodeled additional activity in the right hemisphere (note the radiological convention in the 3D image display). The source waveform of the beamformer virtual sensor in the left hemisphere is not shown since the location (blue square in the figure) is not considered for the multiple-source beamformer.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The beamformer scan can be performed with a single or a bilateral source scan. The default scan type depends on the current solution:&lt;br /&gt;
&lt;br /&gt;
When the beamformer is started from the '''&amp;lt;u&amp;gt;Average tab of the Paradigm dialog box&amp;lt;/u&amp;gt;''' the Source Analysis window opens with a new solution and a bilateral beamformer scan is performed.&lt;br /&gt;
&lt;br /&gt;
When the beamformer is started within the Source Analysis window, the default is:&lt;br /&gt;
* a scan with a single source in addition to the sources in the current solution, if at least one source is active.&lt;br /&gt;
* a bilateral scan if no source in the current solution is active.&lt;br /&gt;
* a scan with a single source when scalar-type beamformer is selected in the '''&amp;lt;u&amp;gt;beamformer option dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
The default scan type is the multiple source beamformer. The non-default scan type can be enforced using the corresponding Volume Image / Beamformer entry in the Image main&lt;br /&gt;
menu or in the beamformer option dialog box (only for the time-domain beamformer).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Inserting Sources as Beamformer Virtual Sensor out of the Beamformer Image'''&lt;br /&gt;
&lt;br /&gt;
This is similar to the inserting sources out of the beamformer image in Multiple Source Beamformer (MSBF) in the Time-frequency Domain section.&lt;br /&gt;
&lt;br /&gt;
The beamformer image can be used to add beamformer virtual sensors to the current solution. A simple double-click anywhere in the 3D view (not in the 2D view) will generate a source at the corresponding location. A better and easier way to create sources at image maxima and minima is to use the toolbar buttons &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Switch to Maximum'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (8).gif]] and &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Add Source'''&amp;lt;/span&amp;gt; [[Image:SA 3Dimaging (9).gif]].&lt;br /&gt;
&lt;br /&gt;
This feature allows to use the beamformer as a tool to create a source montage for '''&amp;lt;u&amp;gt;source coherence&amp;lt;/u&amp;gt;''' analysis. A source montage file (*.mtg) for beamformer virtual sensors can&lt;br /&gt;
be saved using File \ Save Source Montage As… entry.&lt;br /&gt;
&lt;br /&gt;
The time-domain beamformer image can be also used to add regional or dipole sources to the current solution. Press '''N''' key when there is no source in the current source array or there is more than one beamformer virtual sensor. To create a new source array for beamformer virtual sensor, press '''N''' key when there is more than one regional or dipole source in the current source array.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting ''Hide Image'' entry in the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* The current image can be exported to ASCII, ANALYZE, or BrainVoyager (*.vmp) format from the '''&amp;lt;u&amp;gt;Image&amp;lt;/u&amp;gt;''' menu.&lt;br /&gt;
* For scaling options, use [[Image:SA 3Dimaging (10).gif]] and [[Image:SA 3Dimaging (11).gif]] &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Scale toolbar'''&amp;lt;/span&amp;gt; buttons.&lt;br /&gt;
* Parameters used for the beamformer calculations can be set in the '''Standard Volume tab of the Image Settings &amp;lt;u&amp;gt;dialog box&amp;lt;/u&amp;gt;'''.&lt;br /&gt;
* Note that Model, Residual, Order, and Residual variance are not shown for the beamformer virtual sensor type sources.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
* Sekihara, K., Nagarajan, S. S., Poeppel, D., Marantz, A., &amp;amp; Miyashita, Y. (2001). Reconstructing spatio-temporal activities of neural sources using an MEG vector beamformer technique. IEEE Transactions on Biomedical Engineering, 48(7), 760–771.&lt;br /&gt;
&lt;br /&gt;
* Van Veen, B. D., Van Drongelen, W., Yuchtman, M., &amp;amp; Suzuki, A. (1997). Localization of brain electrical activity via linearly constrained minimum variance spatial filtering. IEEE Transactions on Biomedical Engineering, 44(9), 867–880&lt;br /&gt;
&lt;br /&gt;
== CLARA ==&lt;br /&gt;
&lt;br /&gt;
CLARA ('Classical LORETA Analysis Recursively Applied') is an iterative application of weighted LORETA images with a reduced source space in each iteration.&lt;br /&gt;
&lt;br /&gt;
In an initialization step, a LORETA image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
# The obtained image is spatially smoothed (this step is left out in the first iteration).&lt;br /&gt;
# All grid points with amplitudes below a threshold of 1% of the maximum activity are set to zero, thus being effectively eliminated from the source space in the following step.&lt;br /&gt;
# The resulting image defines a spatial weighting term (for each voxel the corresponding image amplitude).&lt;br /&gt;
# A LORETA image is computed with an additional spatial weighting term for each voxel as computed in step 3. By the default settings in BESA Research, the regularization values used in the iteration steps are slightly higher than that of the initialization LORETA image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 2 iterations, and the image computed in the last iteration is displayed. Please note that you can change all parameters by creating a user-defined volume image.&lt;br /&gt;
&lt;br /&gt;
The advantage of CLARA over non-focusing distributed imaging methods is visualized by the figure below. Both images are computed from the N100 response in an auditory oddball experiment (file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Oddball.fsg'''&amp;lt;/span&amp;gt; in subfolder ''fMRI+EEG-RT-Experiment'' of the ''Examples'' folder). The CLARA image is much more focal than the sLORETA image, making it easier to determine the location of the image maxima.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (24).gif|thumb|350px|sLORETA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (25).gif|thumb|350px|CLARA image]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting CLARA: CLARA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LAURA ==&lt;br /&gt;
&lt;br /&gt;
LAURA (Local Auto Regressive Average) belongs to the distributed inverse method of the family of weighted minimum norm methods ([https://doi.org/10.1023/A:1012944913650 Grave de Peralta Menendeza et al., &amp;quot;Noninvasive Localization of Electromagnetic Epileptic Activity. I. Method Descriptions and Simulations&amp;quot;, BrainTopography 14(2), 131-137, 2001]). LAURA uses a spatial weighting function that includes depth weighting and that term has the form of a local autoregressive function.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LAURA, V contains both a depth weighting term W and a representation of a local autoregressive function A. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3×3] identity matrix. W is an [s×s] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. The formula for the diagonal components A&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt; and the off-diagonal components A&amp;lt;sub&amp;gt;ik&amp;lt;/sub&amp;gt; are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A}_{ii} = \frac{26}{\mathrm{N}_{i}}\sum_{k \subset V_{i}}^{}\frac{1}{\mathrm{d}_{ik}^{2}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (29).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{A}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
- 1/\operatorname{dist}\left( i,k \right)^{2}, &amp;amp; \text{if } k \subset V_{i} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (30).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, V&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; is the vicinity around grid point i that includes the 26 direct neighbors.&lt;br /&gt;
&lt;br /&gt;
The LAURA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LAURA images require a grid spacing of 7 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LAURA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LAURA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''*.laura'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LAURA inverse. This file is used during all subsequent LAURA image computations. Thereby, the time needed to obtain the image is substantially reduced.&lt;br /&gt;
* '''MEG:''' In the case of MEG data, an additional constraint is implemented in the LAURA algorithm that prevents solutions from containing radial source currents (compare Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V&lt;br /&gt;
* '''Starting LAURA:''' LAURA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter'' “Regularization of distributed volume images” ''for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== LORETA ==&lt;br /&gt;
&lt;br /&gt;
LORETA (&amp;quot;Low Resolution Electromagnetic Tomography&amp;quot;) is a distributed inverse method of the family of ''weighted minimum norm'' methods. LORETA was suggested by R.D. Pascual-Marqui (International Journal of Psychophysiology. 1994, 18:49-65). LORETA is characterized by a smoothness constraint, represented by a discrete 3D Laplacian.&lt;br /&gt;
&lt;br /&gt;
The source activity is estimated by applying the general formula for a weighted minimum norm:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T}\left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings.''&lt;br /&gt;
&lt;br /&gt;
In LORETA, V contains both a depth weighting term and a representation of the 3D Laplacian matrix. V is computed as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{V} = \left( \mathrm{U}^{T} \cdot \mathrm{U} \right)^{- 1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (27).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{U} = \left( \mathrm{W} \cdot \mathrm{A} \right) \otimes \mathrm{I}_{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (28).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, &amp;lt;math&amp;gt;\otimes&amp;lt;/math&amp;gt; denotes the Kronecker product. I&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; is the [3x3] identity matrix. W is an [sxs] diagonal matrix (with s the number of source locations on the grid), where each diagonal element is the inverse of the maximum singular value of the corresponding regional source's leadfields. A contains the 3D Laplacian and is computed as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{A} = \mathrm{Y} - \mathrm{I}_{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (31).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with I&amp;lt;sub&amp;gt;s&amp;lt;/sub&amp;gt; the [sxs] identity matrix, where s is the number of sources (= three times the number of grid points) and&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{Y} = \frac{1}{2}\left\{ \mathrm{I}_{s} + \left\lbrack \operatorname{diag}\left( \mathrm{Z} \cdot \left\lbrack 111 \ldots 1 \right\rbrack^{T} \right) \right\rbrack^{- 1} \right\} \cdot \mathrm{Z}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (32).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\mathrm{Z}_{ik} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1/6, &amp;amp; \text{if } \operatorname{dist}\left( i,k \right) = 1 \text{ grid point} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (33).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The LORETA image in BESA Research displays the norm of the 3 components of S at each location r. Using the menu function ''Image / Export Image As... ''you have the option to save this norm of S or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Grid spacing:''' Due to memory limitations, LORETA images require a grid spacing of 5 mm or more.&lt;br /&gt;
* '''Computation time:''' Computation speed during the first LORETA image calculation depends on the grid spacing (computation is faster with larger grid spacing). After the first computation of a LORETA image, a &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''&amp;lt;nowiki&amp;gt;*.loreta&amp;lt;/nowiki&amp;gt;'''&amp;lt;/span&amp;gt; file is stored in the data folder, containing intermediate results of the LORETA inverse. This file is used during all subsequent LORETA image computations. Thereby, the time needed to obtain the image is substantially reduced. &lt;br /&gt;
* '''MEG''': In the case of MEG data, an additional constraint is implemented in the LORETA algorithm that prevents solutions from containing radial source currents (Pascual-Marqui, ISBET Newsletter 1995, 22-29). In MEG, an additional source space regularization is necessary in the inverse matrix operation required compute V.&lt;br /&gt;
* '''Starting LORETA:''' LORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection '''&amp;lt;/span&amp;gt;button.&lt;br /&gt;
* '''Regularization:''' Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed source models.&lt;br /&gt;
&lt;br /&gt;
== sLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method consists of a ''standardized, unweighted minimum norm''. The method was originally suggested by R.D. Pascual-Marqui (Methods &amp;amp; Findings in Experimental &amp;amp; Clinical Pharmacology 2002, 24D:5-12) Starting point is an unweighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} \right)^{- 1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (34).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the sLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{sLORETA}, r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (35).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r &amp;lt;/sub&amp;gt;is the [3x1] (MEG: [2x1]) minimum norm estimate of the 3 (MEG: 2) dipoles at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (36).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;sLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter [[#Regularization_of_distributed_volume_images|''Regularization of distributed volume images'']] for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== swLORETA ==&lt;br /&gt;
&lt;br /&gt;
This distributed inverse method is a ''standardized, depth-weighted minimum norm'' (E. Palmero-Soler et al 2007 Phys. Med. Biol. 52 1783-1800). It differs from sLORETA only by an additional depth weighting.&lt;br /&gt;
&lt;br /&gt;
Starting point is a depth-weighted minimum norm computation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{MN}}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (37).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. The term in parentheses is generally regularized. Regularization parameters can be specified in the ''Image Settings''.&lt;br /&gt;
&lt;br /&gt;
V is the diagonal depth weighting matrix. For s grid locations, V is of dimension [3s x 3s] (MEG: [2s x 2s]). Each diagonal element of V is the inverse of the first singular value of the leadfield of the corresponding regional source. Hence, the first 3 (MEG: 2) diagonal elements equal the inverse of the largest eigenvalue of the leadfield matrix of regional source 1, and so on.&lt;br /&gt;
&lt;br /&gt;
This minimum norm estimate is now standardized to produce the swLORETA activity at a certain brain location r:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{swLORETA},r} = \mathrm{R}_{rr}^{-1/2} \cdot \mathrm{S}_{\text{MN},r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (38).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
S&amp;lt;sub&amp;gt;sMN,r&amp;lt;/sub&amp;gt; is the [3x1] (MEG: [2x1]) depth-weighted minimum norm estimate of the regional source at location r. R&amp;lt;sub&amp;gt;rr&amp;lt;/sub&amp;gt; is the [3x3] (MEG: [2x2]) diagonal block of the resolution matrix R that corresponds to the source components at the target location r. The resolution matrix is defined as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{R} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} + \lambda \cdot \mathrm{I} \right)^{-1} \cdot \mathrm{L}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (39).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The swLORETA image in BESA Research displays the norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; at each location r. Using the menu function ''Image / Export Image As...'' you have the option to save this norm of S&amp;lt;sub&amp;gt;swLORETA&amp;lt;/sub&amp;gt;, &amp;lt;sub&amp;gt;r&amp;lt;/sub&amp;gt; or alternatively all components separately to disk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* sLORETA can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''Regularization of distributed volume images”'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== sSLOFO ==&lt;br /&gt;
&lt;br /&gt;
SSLOFO (standardized shrinking LORETA-FOCUSS) is an iterative application of weighted distributed source images with a reduced source space in each iteration ([https://dx.doi.org/10.1109/TBME.2005.855720 Liu et al., &amp;quot;Standardized shrinking LORETA-FOCUSS (SSLOFO): a new algorithm for spatio-temporal EEG source reconstruction&amp;quot;, IEEE Transactions on Biomedical Engineering 52(10), 1681-1691, 2005]).&lt;br /&gt;
&lt;br /&gt;
In an initialization step, an [[#sLORETA | sLORETA]] image is calculated. Then in each iteration the following steps are performed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# A weighted minimum norm solution is computed according to the formula &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{S} = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}&amp;lt;/math&amp;gt; &amp;lt;!-- [[Image:SA 3Dimaging (40).gif]] --&amp;gt;. Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D is the data at the time point under consideration. V is a diagonal spatial weighting matrix that is computed in the previous iteration step. In the first iteration, the elements of V contain the magnitudes of the initially computed LORETA image.&lt;br /&gt;
# Standardization of this weighted minimum norm image is performed with the resolution matrix as in [[#sLORETA | sLORETA]].&lt;br /&gt;
# The obtained standardized weighted minimum norm image is being smoothed to get S&amp;lt;sub&amp;gt;smooth&amp;lt;/sub&amp;gt;.&lt;br /&gt;
# All voxels with amplitudes below a threshold of 1% of the maximum activity get a weight of zero in the next iteration step, thus being effectively eliminated from the source space in the next iteration step.&lt;br /&gt;
# For all other voxels, compute the elements of the spatial weighting matrix V to be used in the next iteration as follows: &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\mathrm{V}_{ii,\text{next iteration}} = \frac{1}{\left\| \mathrm{L}_{i} \right\|} \cdot \mathrm{S}_{ii,\text{smooth}} \cdot \mathrm{V}_{ii,\text{current iteration}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (41).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The procedure stops after 3 iterations. Please note that you can change all parameters by creating a [[#User-Defined Volume Image | user-defined volume image]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting sSLOFO''': sSLOFO can be started from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''[[#Regularization of distributed volume images | Regularization of distributed volume images]]'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== User-Defined Volume Image ==&lt;br /&gt;
&lt;br /&gt;
In addition to the predefined 3D imaging methods in BESA Research, it is possible to create user-defined imaging methods based on the general formula for distributed inverses:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{V} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{V} \cdot \mathrm{L}^{T} \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (26).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed source model with regional sources distributed on a regular cubic grid. D(t) is the data at time point t. Custom-defined parameters are:&lt;br /&gt;
&lt;br /&gt;
* '''The spatial weighting matrix V''': This may include depth weighting, image weighting, or cross-voxel weighting with a 3D Laplacian (as in LORETA) or an autoregressive function (as in LAURA).&lt;br /&gt;
* '''Regularization''': The term in parentheses is generally regularized. Note that regularization has a strong effect on the obtained results. Please refer to chapter ''Regularization of Distributed Volume Images''for more information.&lt;br /&gt;
* '''Standardization''': Optionally, the result of the distributed inverse can be standardized with the resolution matrix (as in sLORETA).&lt;br /&gt;
* '''Iterations''': Inverse computations can be applied iteratively. Each iteration is weighted with the image obtained in the previous iteration.&lt;br /&gt;
&lt;br /&gt;
All parameters for the user-defined volume image are specified in the User-Defined Volume Tab of the Image Settings dialog box. Please refer to chapter ''User-Defined Volume Tab'' for details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* Starting the user-defined volume image: the image calculation can be started from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter ''Regularization of distributed volume images'' for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Regularization of distributed volume images ==&lt;br /&gt;
&lt;br /&gt;
Distributed source images require the inversion of a term of the form L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;. This term is generally regularized before its inversion. In BESA Research, selection can be made between two different regularization approaches (parameters are defined in the ''Image Settings dialog box''):&lt;br /&gt;
&lt;br /&gt;
* '''Tikhonov regularization''': In Tikhonov regularization, the term L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is inverted as (L V L&amp;lt;sup&amp;gt;T &amp;lt;/sup&amp;gt;+λ I)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;. Here, l is the regularization constant, and I is the identity matrix.&lt;br /&gt;
** One way of determining the optimum regularization constant is by minimizing the ''generalized cross'' ''validation error'' (CVE).&lt;br /&gt;
** Alternatively, the regularization constant can be specified manually as a percentage of the trace of the matrix L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;.&lt;br /&gt;
* '''TSVD''': In the truncated singular value decomposition (TSVD) approach, an SVD decomposition of L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; is computed as &amp;amp;nbsp;L V L&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt; = U S U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal matrix S contains the singular values. All singular values smaller than the specified percentage of the maximum singular values are set to zero. The inverse is computed as U S&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; U&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;, where the diagonal elements of S&amp;lt;sup&amp;gt;-1 &amp;lt;/sup&amp;gt;are the inverse of the corresponding non-zero diagonal elements of S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regularization has a critical effect on the obtained distributed source images. The results may differ completely with different choices of the regularization parameter (see examples below). Therefore, it is important to evaluate the generated image critically with respect to the regularization constant, and to keep in mind the uncertainties resulting from this fact when interpreting the results. The default setting in BESA Research is a TSVD regularization with a 0.03% threshold. However, this value might need to be adjusted to the specific data set at hand.&lt;br /&gt;
&lt;br /&gt;
The following example illustrates the influence of the regularization parameter on the obtained images. The data used here is condition &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''St-Cor &amp;lt;/span&amp;gt; of dataset &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;Examples \ TFC-Error-Related-Negativity \ Correct+Error.fsg'''&amp;lt;/span&amp;gt; at 176 ms following the visual stimulus. Discrete dipole analysis reveals the main activity in the left and right lateral visual cortex at this latency.&lt;br /&gt;
&lt;br /&gt;
[[File:SA 3Dimaging (42).gif|400px|thumb|c|none|Discrete source model at 176 ms: Main activity in the left and right lateral visual cortex, no visual midline activity.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LORETA images computed at this latency depend critically on the choice of the regularization constant. The following 3D images are created with TSVD regularization with SVD cutoffs of 0.1%, 0.005%, and 0.0001%, respectively. The volume grid size was 9 mm. The example demonstrates the dramatic effect of regularization and demonstrates the typical tradeoff between too strong regularization (leading to too smeared 3D images that tend to show blurred maxima) and too small regularization (resulting in too superficial 3D images with multiple maxima).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (44).gif|thumb|350px|'''SVD cutoff 0.1%''': Regularization too strong. No separation between sources, mislocalization towards the middle of the brain.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (43).gif|thumb|350px|'''SVD cutoff 0.005%''': Appropriate regularization. Separation of the bilateral activities. Location in agreement with the discrete multiple source model.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (45).gif|thumb|350px|'''SVD cutoff 0.0001%''':&amp;lt;br /&amp;gt; Too small regularization. Mislocalization, too superficial 3D image. ]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The automatic determination of the regularization constant using the CVE approach does not necessarily result in the optimum regularization parameter either. In this example, the unscaled CVE approach rather resembles the TSVD image with a cutoff of 0.0001%, i.e. regularization is too small. Therefore, it is advisable to compare different settings of the regularization parameter and make the final choice based on the above-mentioned considerations.&lt;br /&gt;
&lt;br /&gt;
== Cortical LORETA ==&lt;br /&gt;
&lt;br /&gt;
Cortical LORETA is principally the same technique as LORETA, however, Cortical LORETA is not computed in a 3D volume, but on the cortical surface.&lt;br /&gt;
&lt;br /&gt;
The cortical reconstruction in BESA Research fed from BESA MRI is a closed 2D surface with no boundaries and a very close approximation of the actual cortical form. It consists of an irregular triangulated grid.&lt;br /&gt;
&lt;br /&gt;
The Laplace operator that is used for identifying a smooth solution in a three-dimensional space is exchanged with a Laplace operator that runs on the two-dimensional cortical surface.&lt;br /&gt;
&lt;br /&gt;
There is a wide variety of 2D Laplace operators with different characteristics. The general form of the discrete Laplace operator is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\Delta f\left( p_{i} \right) = \frac{1}{d_{i}}\sum_{j \in N(i)}^{}{w_{ij}\left\lbrack f\left( p_{i} \right) - f\left( p_{j} \right) \right\rbrack},&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (2).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; is the '''i-th''' node of the triangular mesh, '''f(p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) '''is the value of a function f defined on the cortical mesh at the node '''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;, '''w&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; is the weight for the connection between the nodes '''p&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt; and '''d&amp;lt;sub&amp;gt;i''' &amp;lt;/sub&amp;gt;is a normalization factor for the '''i-th''' row of the operator. Furthermore, '''N(i)''' is the set of indices corresponding to the direct (also called &amp;quot;1-ring&amp;quot;) neighbors of&amp;amp;nbsp;'''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BESA offers the choice of three Laplace operators with slightly different characteristics.&lt;br /&gt;
&lt;br /&gt;
* '''Unweighted Graph Laplacian''': This is the simplest operator. It takes into account only the adjacency of the nodes and not the geometry of the mesh:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
w_{ij} =&lt;br /&gt;
\begin{cases}&lt;br /&gt;
1, &amp;amp; \text{if } p_{i} \text{ and } p_{j} \text{ are connected by an edge} \\&lt;br /&gt;
0, &amp;amp; \text{otherwise}&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (3).jpg]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (4).jpg |450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Weighted Graph Laplacian:''' This operator is similar to the unweighted graph Laplacian but with different weights for the different connections. The connections between nearby nodes get larger weights than the connections between farther nodes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{1}{\operatorname{dist}\left( p_{i},p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = \sum_{j \in N(i)}^{} {\operatorname{dist}\left(p_{i}, p_{j} \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (5).jpg ‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''dist''' ('''p&amp;lt;sub&amp;gt;i'''&amp;lt;/sub&amp;gt; , '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;) is the distance between the nodes '''p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; '''and '''p&amp;lt;sub&amp;gt;j'''&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (6).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Geometric Laplacian with mixed area weights''': This operator takes into account the angles in the corresponding triangles into account as well as the area around the nodes in order to determine the connection weights:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;w_{ij} = \frac{\cot\left( \alpha_{ij} \right) + \cot\left( \beta_{ij} \right)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;d_{i} = A_{\text{mixed}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (7).jpg‎]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where '''α&amp;lt;sub&amp;gt;ij''' &amp;lt;/sub&amp;gt;and '''β&amp;lt;sub&amp;gt;ij'''&amp;lt;/sub&amp;gt; denote the two angles opposite to the edge ('''i , j''') and '''A&amp;lt;sub&amp;gt;mixed&amp;lt;/sub&amp;gt; '''is either the Voronoi area, or 1/2 of the triangle area or 1/4 of the triangle area depending on the type of the triangle.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (8).jpg|450px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
[[Image:CorticalLOR.png‎]]&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off. &lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see above).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
* '''Starting Cortical LORETA''': Cortical LORETA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;Image'''&amp;lt;/span&amp;gt; of the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References:'''&lt;br /&gt;
&lt;br /&gt;
Please refer to ''Iordanov et al.: LORETA With Cortical Constraint: Choosing an Adequate Surface Laplacian Operator. Front Neurosci 12, Article 746, 2018'', for more information - full article available [https://www.frontiersin.org/articles/10.3389/fnins.2018.00746/full here].&lt;br /&gt;
&lt;br /&gt;
== Cortical CLARA ==&lt;br /&gt;
&lt;br /&gt;
Cortical CLARA is principally the same technique as CLARA, but Cortical CLARA is not computed in a 3D volume, but on the cortical surface. Instead of using a LORETA image as the basis for the iterative application, cortical CLARA uses cortical LORETA.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Regularization and other parameters:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (47).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''SVD cutoff''': The regularization for the inverse operator as a percent of the largest singular value.&lt;br /&gt;
* '''Depth weighting''': Turn depth weighting on or off.&lt;br /&gt;
* '''Laplacian type''': Selection of Laplacian operators (see Cortical LORETA).&lt;br /&gt;
* '''No of iterations''': Number of iterations for CLARA. The more iterations are used, the sparser becomes the solution.&lt;br /&gt;
* '''Automatic''': The algorithm tries to determine the number of iterations automatically. The goodness of fit (GOF) is calculated after every iteration and if there is a big jump in the GOF then the algorithm will stop. If no jumps appear during the calculations then CLARA iterates until the specified number of iterations is reached.&lt;br /&gt;
* '''Regularize iterations''': If one wants to use different regularization for the CLARA iterations than the value specified as &amp;quot;SVD cutoff&amp;quot;, this option should be selected.&lt;br /&gt;
* '''Amount to clip from img (%)''': Cortical CLARA uses the solution from the previous iteration as an additional weighting matrix for the current iteration. That weighting matrix is constructed by cutting the &amp;quot;low&amp;quot; activity from the solution. This number specifies how much of the activity should be cut from the previous solution in order to construct the weighting matrix. This value is given as a percentage of the maximal activity. Default value is 10%.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* '''Starting Cortical CLARA:''' Cortical CLARA can be started from the sub-menu &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Surface Image'''&amp;lt;/span&amp;gt; of the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image Selection'''&amp;lt;/span&amp;gt; button.&lt;br /&gt;
* Please refer to Chapter “''[[Source_Analysis_3D_Imaging#Regularization_of_distributed_volume_images|Regularization of distributed volume images]]''” for important information on regularization of distributed inverses.&lt;br /&gt;
&lt;br /&gt;
== Cortex Inflation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inflated cortex is a smoothened version of the individual cortical surface with minimal metric distortions (Fischl, B. et al. (1999). Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. ''NeuroImage'', 9(2), 195–207). Gyri and sulci are smoothened out. The original distances between each point on the cortex and its neighbors are, however, mostly preserved.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (48).gif]]&lt;br /&gt;
&lt;br /&gt;
''Cortical LORETA map overlaid on top of the inflated cortical surface.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A lighter gray color overlaid on top of the surface image indicates the location of a gyrus of the individual cortex surface, while a darker gray color indicates the location of a sulcus. The inflated cortical surface can be computed in '''BESA MRI 2.0'''. For more details please refer to the BESA MRI 2.0 help.&lt;br /&gt;
&lt;br /&gt;
== Surface Minimum Norm Image ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm approach is a common method to estimate a distributed electrical current image in the brain at each time sample (Hämäläinen &amp;amp; Ilmoniemi 1984). The source activities of a large number of regional sources are computed. The sources are evenly distributed using 1500 standard locations 10% and 30% below the smoothed standard brain surface (when using the standard MRI) or using between 3000-4000 locations on the individual brain surface defined by the gray-white-matter boundary.&lt;br /&gt;
&lt;br /&gt;
Since the number of sources is much larger than the number of sensors in a minimum norm solution, the inverse problem is highly underdetermined and must be stabilized by a mathematical constraint, the minimum norm. Out of the many current distributions that can account for the recorded sensor data, the solution with the minimum L2 norm, i.e. the minimum total power of the current distribution is displayed in BESA Research.&lt;br /&gt;
&lt;br /&gt;
First, the forward solution (leadfield matrix L) of all sources is calculated in the current head model. Then, the source activities S(t) of all source components are computed from the data matrix D(t) using an inverse regularized by the estimated noise covariance matrix:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}\left( t \right) = \mathrm{R} \cdot \mathrm{L}^{T} \cdot \left( \mathrm{L} \cdot \mathrm{R} \cdot \mathrm{L}^{T} + \mathrm{C}_N \right)^{-1} \cdot \mathrm{D}(t)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (49).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, L is the leadfield matrix of the distributed regional source model, C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; denotes the noise correlation matrix in sensor space, and R is a weighting matrix in source space. R and C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; can be designed in different ways in order to optimize the minimum norm result. The total activity of each regional source is computed as the root mean square of the source activities S(t) of its 3 (MEG:2) components. This total source activity is transformed to a color-coded image of the brain surface. (When the standard brain is used, two sources are assigned to each surface location, located 10% and 30% below the surface, respectively. The color that is displayed on the standard brain surface is the larger of the two corresponding source activities.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Weighting options'''&lt;br /&gt;
&lt;br /&gt;
The minimum norm current imaging techniques of BESA Research provide different weighting strategies. Two weighting approaches are available: Depth weighting and spatio-temporal approaches.&lt;br /&gt;
* '''Depth weighting:''' Without depth weighting, deep sources appear very smeared in a minimum-norm reconstruction. With depth weighting, both deep and superficial sources produce a similar, more focal result. If this weighting method is selected, the leadfield of each regional source is scaled with the largest singular value of the SVD (singular value decomposition) of the source's leadfield.&lt;br /&gt;
* '''Spatio-temporal weighting''': Spatio-temporal weighting tries to assign large weight to sources that are assumed to be more likely to contribute to the recorded data.&lt;br /&gt;
** '''Subspace correlation after single source scan''': This method divides the signal into a signal and a noise subspace. The correlation of the leadfield of a regional source i with the signal subspace (p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;) is computed to find out if the source location contributes to the measured data. The weighting matrix R becomes a diagonal matrix. Each of the three (MEG: 2) components of a regional source get the same weighting value p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;. This approach is based on the signal subspace correlation measure introduced by J.C. Mosher, R. M. Leahy (Recursive MUSIC: A Framework for EEG and MEG Source Localization, IEEE Trans. On Biomed. Eng. Vol. 45, No. 11, November 1998)&lt;br /&gt;
** '''Dale &amp;amp; Sereno 1993:''' In the approach of Dale and Sereno (J Cogn Neurosci, 1993, 5: 162-176) a signal subspace needs not be defined. The correlation p&amp;lt;sub&amp;gt;i &amp;lt;/sub&amp;gt;of the leadfield of regional source i with the inverse of the data covariance matrix is computed along with the largest singular value λ&amp;lt;sub&amp;gt;max &amp;lt;/sub&amp;gt;of the data covariance matrix. The weighting matrix R is a diagonal matrix with weights: [[Image:SA 3Dimaging (50).gif]]. Each of the three (MEG: 2) components of a regional source receives the same weighting value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Noise regularization'''&lt;br /&gt;
&lt;br /&gt;
Three methods to estimate the channel noise correlation matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are provided by the program:&lt;br /&gt;
* '''Use baseline:''' Select this option to estimate the noise from the user-definable baseline. The signal is computed from the data at non-baseline latencies.&lt;br /&gt;
* '''Use 15% lowest values:''' The baseline activity is computed from the data at those 15% of all displayed latencies that have the lowest global field power. The signal is computed from all displayed latencies.&lt;br /&gt;
* '''Use the full baseline covariance matrix''': This option is only available if a previous beamformer image in the time-domain was calculated. In this case, it can be selected from the general image settings dialog tab. The baseline covariance interval is the one selected for the beamformer, and is indicated by a thin horizontal bar in the channel box.&lt;br /&gt;
&lt;br /&gt;
In each case, the activity (noise or signal, respectively) is defined as root-mean-square across all respective latencies for each channel.&lt;br /&gt;
&lt;br /&gt;
The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is constructed as a diagonal matrix. The entries in the main diagonal are proportional to the noise activity of the individual channels (if selected) or are all equally proportional to the average noise activity over all channels. The noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is then scaled such that the ratio of the Frobenius norms of the weighted leadfield projector matrix (LRL&amp;lt;sup&amp;gt;T&amp;lt;/sup&amp;gt;) and the noise covariance matrix C&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; equals the Signal-to-Noise ratio. This scaling can be multiplied by an additional factor (default=1) to sharpen (&amp;lt;1) or smoothen (&amp;gt;1) the minimum norm image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Minimum Norm Image'''&lt;br /&gt;
&lt;br /&gt;
The minimum-norm algorithm is started via the ''Surface minimum norm image dialog box'', which is opened from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu, or by typing the shortcut &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Ctrl-M'''&amp;lt;/span&amp;gt;: Please refer to Chapter ''“Surface'' ''Minimum Norm Tab”'' for more details.&lt;br /&gt;
&lt;br /&gt;
As opposed to the other 3D images available from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image '''&amp;lt;/span&amp;gt;menu, the surface minimum norm image is not computed on a volumetric grid, but rather for locations on the brain surface. Accordingly, the results of the minimum norm image are displayed superimposed to the brain surface mesh rather than to the volumetric MR image.&lt;br /&gt;
&lt;br /&gt;
The figure below shows a minimum norm image computed from the file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples\Epilepsy\Spikes\Spikes-Child4_EEG+MEG_averaged.fsg'''&amp;lt;/span&amp;gt;. The EEG spike peak was imaged using the individual brain surface of the subject. A baseline from -300 to -70 ms was used. Minimum norm was computed with depth weighting, Spatio-temporal weighting according to Dale &amp;amp; Sereno 1993 and individual noise weighting with a noise scale factor of 0.01. The minimum norm image reveals the location of the spike generator in the close vicinity of the frontal left-hemispheric lesion in this subject.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (51).gif]]&lt;br /&gt;
&lt;br /&gt;
== Multiple Source Probe Scan (MSPS) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The MSPS function provides a tool for the validation of a given solution. It is based on the following theoretical consideration: If the recorded EEG/MEG data has been modeled adequately, i.e. all active brain regions are represented by a source in the current solution, then any additional probe source added to the solution will not show any activity apart from noise. The only exception occurs if this probe source is placed in close vicinity to one of the sources in the current solution. In that case, the solution's source and the probe source will share the activity of the corresponding brain area. The MSPS applies these considerations by scanning the brain on a pre-defined grid with a regional probe added to the current solution. Grid extent and density can be specified in the Image settings. The power P of the probe source at location r in the signal interval is compared with the power of the probe source in a reference interval, defining a value q:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left( r \right) = \sqrt{\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}} - 1&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (52).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MSPS can be computed on time domain or time-frequency domain data:&lt;br /&gt;
* In the time domain, q(r) is computed from the source waveform of the probe source. Here, P(r) is the mean power of the probe source at location r in the marked latency range, and P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r) is the mean probe source power in the user-definable baseline interval.&lt;br /&gt;
* In the time-frequency domain, an MSPS image can be computed from the complex cross spectral density matrices. By applying the inverse operator for a source configuration consisting of the current solution and the probe source, the power of the probe source can be computed for the target interval [P(r)] and the reference time-frequency interval [P&amp;lt;sub&amp;gt;ref&amp;lt;/sub&amp;gt;(r)]. In the resulting MSPS image, q-values are shown in %, where q[%] = q*100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The inverse operator used to determine the probe source power uses different regularization constants for the probe source and the sources in the current solution. The regularization constant of the sources in the current solution can be specified in the Image settings (default 4%). The regularization constant of the probe source is internally set to 0%.&lt;br /&gt;
&lt;br /&gt;
Alternatively to the definition above, q can also be displayed in units of dB:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{q}\left\lbrack \text{dB} \right\rbrack = 10 \cdot \log_{10}\frac{\mathrm{P}\left( r \right)}{\mathrm{P}_{\text{ref}}\left( r \right)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Image:SA 3Dimaging (4).gif]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Values of q smaller than zero are not shown in the MSPS image.&lt;br /&gt;
&lt;br /&gt;
According to the considerations above, an MSPS of a correct source model should optimally yield image maxima around the sources in the current solution only. If the MSPS image is blurred or shows maxima at locations different from the modeled sources, this indicates a non-sufficient or incorrect solution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the MSPS'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter illustrates the application of the Multiple Source Probe Scan. The figures are generated with data from file &amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Examples/Epilepsy/Spikes/Rolandic-Spike-Child.fsg'''&amp;lt;/span&amp;gt; (-300 : +200 ms, filtered from 3 Hz [forward] to 40 Hz [zero-phase]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain versus time-frequency domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The multiple source probe scan can be computed in the time domain or the time-frequency domain. The latter is possible only when time-frequency domain data is available for the current condition, i.e. if the condition has been created by starting a multiple source beamformer (MSBF) computation from the source coherence window. In this case, evoking the MSPS calculation from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Imaging '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu will bring up the following dialog window that allows to choose between time- or time-frequency MSPS. If only time domain data is available, this dialog window will not appear and MSPS will be computed in the time domain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (53).gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For a time-frequency domain MSPS, the target and the reference time-frequency interval have been specified already in the Time-Frequency window (see Chapter &amp;quot;''How To Create Beamformer Images''&amp;quot;). For a time-domain MSPS, the target and the reference epoch have to be specified in the Source Analysis window as described below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time domain MSPS'''&lt;br /&gt;
&lt;br /&gt;
The time-domain MSPS image displays the ratio of the power of a regional probe source in the signal and the baseline interval. The currently set baseline is indicated by a horizontal line in the upper left corner of the channel box.&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (54).gif|thumb|c|none|330px|The black horizontal bar in the upper part of the channel box (here circled in red) indicates the baseline interval.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, BESA Research defines the pre-stimulus interval of the current data segment as baseline. The baseline should represent a latency range in which no event-related activity is present in the data. There are several possibilities to modify the baseline interval: by clicking on the horizontal line with the left mouse button or by using the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Condition '''&amp;lt;/span&amp;gt;menu or &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Fit Interval'''&amp;lt;/span&amp;gt; popup menu.&lt;br /&gt;
&lt;br /&gt;
Mark an interval to define the target epoch, i.e. the time-interval for which the current solution is to be tested. Start the MSPS by selecting it from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image selection&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt; '''&amp;lt;/span&amp;gt;button or from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu to start the probe source scan. The&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image '''&amp;lt;/span&amp;gt;menu can be evoked either from the menu bar or by right-clicking anywhere in the source analysis window. The 3D window opens and displays the scan result.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (55).gif|thumb|c|none|650px|This figure shows the MSPS image applied on the three left-hemispheric sources in the solution '&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;'''Rolandic-Spike-Child-RS2.bsa'''&amp;lt;/span&amp;gt;'. The baseline is set from -300ms to -50 ms. The right-hemispheric sources have been switched off. The fit interval is set to the latency range of large overall activity in the data (-43 ms : 117 ms). A realistic FEM model appropriate for the subject's age (12 years, conductivity ratios (cr) 50) is applied. The MSPS image does not show maxima at the modeled source locations and rather shows a spread q-value distribution.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[Image:SA 3Dimaging (56).gif|thumb|c|none|650px|The MSPS image for the same latency range when the right-hemispheric sources have been included. The MSPS image appears more focal and shows maxima around the modeled brain regions. This indicates the substantial improvement of the solution by adding the right-hemispheric sources that model the propagation of the epileptic spike from the left to the right hemisphere (note the radiological side convention in the 3D window).]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Time-Resolved MSPS'''&lt;br /&gt;
&lt;br /&gt;
If the MSPS has been computed on time domain data, the image can be shown separately for each latency in the selected interval. After the MSPS has been computed for the marked epoch, double-click anywhere within this epoch to display the ratio of the probe source magnitude at the selected latency and the mean probe source magnitude in the baseline. Scanning the latency range by moving the cursor (e.g. with the left and right arrow cursor keys) provides a time-resolved MSPS image.&lt;br /&gt;
&lt;br /&gt;
Time-resolved MSPS images are not available if the MSPS has been computed on data in the time-frequency domain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt; &lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (57).gif|thumb|450px|MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:SA 3Dimaging (58).gif|thumb|450px|Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
[[Image:SA 3Dimaging (57).gif]]&lt;br /&gt;
&lt;br /&gt;
''MSPS image of the spike peak activity at 0ms. The activity mainly occurs in the left hemisphere. This fact is illustrated by the source waveforms and confirmed in the MSPS image, which shows a focal maximum around the location of the red sources.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (58).gif]]&lt;br /&gt;
&lt;br /&gt;
''Around +27 ms, the spike has propagated to the right hemisphere. This becomes evident from the waveforms of the blue sources, which show a significant latency lag with respect to the first three sources, and from the MSPS image, which shows the maximum around blue sources at this latency.''&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the&amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;''' Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* For scaling options, please refer to the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''scaling buttons'''&amp;lt;/span&amp;gt; popup menu &amp;lt;!-- [Link!] --&amp;gt;.&lt;br /&gt;
* Parameters used for the MSPS calculations can be set in the ''General Settings tab'' of the ''Image Settings dialog box.''&lt;br /&gt;
&lt;br /&gt;
== Source Sensitivity ==&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
The 'Source sensitivity' function displays the sensitivity of the selected source in the current source model to activity in other brain regions. Sensitivity is defined as the fraction of power at the scanned brain location that is mapped onto the selected source.&lt;br /&gt;
&lt;br /&gt;
To compute the source sensitivity, unit brain activity is modeled at different locations (probe source) throughout the brain. To this data, the current source model is applied to compute the source waveforms S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; of all modeled sources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\mathrm{S}_{\text{CM}} = \mathrm{L}_{\text{CM}}^{-1} \cdot \mathrm{L}_{\text{PS}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;!-- S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; = L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; * L&amp;lt;sub&amp;gt;PS &amp;lt;/sub&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp; --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here L&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt; is the regularized inverse operator for the current model, and L&amp;lt;sub&amp;gt;PS&amp;lt;/sub&amp;gt; is the leadfield of the regional probe source (dimension [Nx3] for EEG and [Nx2] for MEG, respectively, where N is the number of sensors). The source amplitude S&amp;lt;sub&amp;gt;SS &amp;lt;/sub&amp;gt;of the selected source in the model is a 3x3 (MEG: 2x2) sub-matrix of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; (if the selected source is a regional source) or a 1x3-matrix (MEG: 1x2) (if the selected source is a dipole). The root mean square of the singular values of S&amp;lt;sub&amp;gt;CM&amp;lt;/sub&amp;gt; is defined as the source sensitivity.&lt;br /&gt;
&lt;br /&gt;
The 3D source sensitivity image displays this value for all locations on a grid specified under '''Image/Settings'''. Grid density can be specified in the Image Settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Applying the Source Sensitivity Image'''&lt;br /&gt;
&lt;br /&gt;
The Source Sensitivity image is evoked from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu or by pressing the corresponding hot key (default: &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''V'''&amp;lt;/span&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
This function is enabled only when a solution with an active selected source is present in the Source Analysis window. The source sensitivity image then displays the sensitivity of the selected source to activity in other brain regions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SA 3Dimaging (59).gif]]&lt;br /&gt;
&lt;br /&gt;
''Source Sensitivity image for the selected frontal source (green) in model ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''High_Intensity_3RS.bsa''''&amp;lt;/span&amp;gt;'' in folder 'Examples/ERP_Auditory_Intensity'. The data displayed is the '100dB' condition in file ''&amp;lt;span style=&amp;quot;color:#ff9c00;&amp;quot;&amp;gt;''''All_Subjects_cc.fsg''''&amp;lt;/span&amp;gt;''. The selected source is sensitive to activity in the frontal brain region (yellow/white), while it is not influenced by activity in the vicinity of the left and right auditory cortex areas, which are modeled by the red and blue source in the model (transparent/gray).''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
* The sensitivity image is independent of the recorded sensor signals. It only depends on the current source model, the sensor configuration, the head model, and the regularization constant.&lt;br /&gt;
* If the regularization constant is set to zero, each source has a sensitivity of 100% to activity around its own location. With increasing regularization, the spatial filter becomes less focused, and the sensitivity of a source to activity at its location decreases.&lt;br /&gt;
* You can hide or re-display the last computed image by selecting the corresponding entry in the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
* The current image can be exported to ASCII or BrainVoyager vmp-format from the &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image'''&amp;lt;/span&amp;gt; menu.&lt;br /&gt;
&lt;br /&gt;
== SESAME ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''SESAME''' (Sequential Semi-Analytic Monte-Carlo Estimation) is a Bayesian approach for estimating sources that uses Markov-Chain Monte-Carlo method for efficient computation of the probability distribution as described in Sommariva, S., &amp;amp; Sorrentino, A. &amp;quot;Sequential Monte Carlo samplers for semi-linear inverse problems and application to magnetoencephalography.&amp;quot; Inverse Problems 30.11 (2014): 114020.&lt;br /&gt;
&lt;br /&gt;
It allows to automatically estimate simultaneously the number of dipoles, their locations and time courses requiring virtually no user input. The algorithm is divided in two blocks:&lt;br /&gt;
&lt;br /&gt;
* The first block consists of a Monte Carlo sampling algorithm that produces, with an adaptive number of iterations, a set of samples representing the posterior distribution for the number of dipoles and the dipole locations.&lt;br /&gt;
* The second block estimates the source time courses, given the number of dipoles and the dipole locations.&lt;br /&gt;
&lt;br /&gt;
The Monte Carlo algorithm in the first block works by letting a set of weighted samples evolve with each iteration. At each iteration, the samples (a multi-dipole state) approximates the n-th element of a sequence of distributions p1, …, pN, that reaches the desired posterior distribution (pN = p(x|y)). The sequence is built as pN = p(x) p(y|x) α(n), such that α(1) = 0, α(N) = 1. The actual sequence of values of alpha is determined online. Dipole moments are estimated after the number of dipoles and the dipole locations have been estimated with the Monte Carlo procedure. This continues until a steady state is reached.&lt;br /&gt;
&lt;br /&gt;
The SESAME image in BESA Research displays the final probability of source location along with an estimate for number of sources. Using the menu function &amp;lt;span style=&amp;quot;color:#3366ff;&amp;quot;&amp;gt;'''Image / Export Image As...'''&amp;lt;/span&amp;gt; you have the option to save this SESAME image.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Notes:'''&lt;br /&gt;
&lt;br /&gt;
*'''Grid spacing:''' Due to memory and computational limitations, it is recommended to use SESAME with a grid spacing of 5 mm or more.&lt;br /&gt;
*'''Fit Interval:'''  SESAME requires a fit interval of more than 2 samples to start the computation.&lt;br /&gt;
*'''Computation time:''' Computation speed during SESAME calculation depends on the grid spacing (computation is faster with larger grid spacing) and number of channels.&lt;br /&gt;
&lt;br /&gt;
== Brain Atlas ==&lt;br /&gt;
''This feature requires BESA Research 7.0 or higher.''&lt;br /&gt;
&lt;br /&gt;
'''Introduction'''&lt;br /&gt;
&lt;br /&gt;
Brain atlas is a priori data that can be applied over any discrete or distributed source image displayed in the 3D window. It is a reference value that strongly depends on the selected brain atlas and should not be used as medical reference since individual brains may differ from the brain atlas. The display settings can be adjusted in 3D Window Tab.&lt;br /&gt;
&lt;br /&gt;
[[Image:BrainAtlas1.png|600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Brain Atlases'''&lt;br /&gt;
&lt;br /&gt;
In BESA Research the atlases listed below are provided. '''BESA is not the author of the atlases; please cite the appropriate publications if you use any of the atlases in your publication.'''&lt;br /&gt;
&lt;br /&gt;
[http://atlas.brainnetome.org/bnatlas.html '''Brainnetome'''] &amp;lt;br&amp;gt;&lt;br /&gt;
This is one of the most modern brain probabilistic atlas where structural, functional, and connectivity information was used to perform cortical parcellation. It was introduce by Fan and colleagues (2016), and is still work in progress. The atlas was created using data from 40 healthy adults taking part in the Human Connectome Project. In March 2018, the atlas consists of 246 structures labeled independently for each hemisphere. In BESA we provide the max probability map with labeling. Please visit the Brainnetome webpage to see more details related to the indicated brain regions (i.e. behavioral domains, paradigm classes and regions connectivity).&lt;br /&gt;
&lt;br /&gt;
'''AAL''' &amp;lt;br&amp;gt;&lt;br /&gt;
Automated Anatomical Labeling atlas was created in 2002 by Tzourio-Mazoyer and collegues (2002). It is the mostly used atlas nowadays. The atlas is based on the averaged brain of one subject (young male) who was scanned 27 times. The atlas resolution is 1 mm isometric. The brain sulci were drawn manually on every 2mm slice and then brain regions were automatically assigned. The atlas consists of 116 regions which are asymmetrical between hemispheres. The atlas is implemented as in the [https://www.fil.ion.ucl.ac.uk/spm/ '''SPM12'''] toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Brodmann''' &amp;lt;br&amp;gt;&lt;br /&gt;
The Brodmann map was created by Brodmann (1909). The brain regions were differentiated by cytoarchitecture of each cortical area using the Nissi method of cell staining. The digitalization of the original Brodmann map was performed by Damasio and Damasio (1989). The digitalized atlas consists of 44 fields that are symmetric between hemispheres. BESA used the atlas implementation as in Chris Roden’s [https://people.cas.sc.edu/rorden/mricro/index.html '''MRICro'''] software.&lt;br /&gt;
&lt;br /&gt;
'''AAL2015''' &amp;lt;br&amp;gt;&lt;br /&gt;
Automated Anatomical Labeling revision 2015. This is the updated AAL atlas. In comparison to the previous version (AAL) mainly the frontal lobe shows a higher degree of parcellation (Rolls, Joliot, and Tzourio-Mazoyer 2015). The atlas is implemented as in the [https://www.fil.ion.ucl.ac.uk/spm/ '''SPM12'''] toolbox.&lt;br /&gt;
&lt;br /&gt;
'''Talairach''' &amp;lt;br&amp;gt;&lt;br /&gt;
Atlas was created in 1988 by Talairach and Tournoux (1988) and it is based on the post mortem brain slices of a 60 year old right handed European female. It was created by drawing and matching regions with the Brodmann map. The atlas is available at 5 tissue levels, however we used only the volumetric gyrus level as it is the most known in neuroscience and is the most appropriate for EEG. The atlas consists of 55 regions that are symmetric between hemispheres. The native resolution of the atlas was 0.43x0.43x2-5 mm. Please note that the poor resolution in Z direction is a direct consequence atlas definition, and since it is a post-mortem atlas it will not correctly match the brain template&lt;br /&gt;
(noticeable mainly on brain edges). The atlas digitalization was performed by Lancaster and colleagues (2000) resulting in a “golden standard” for neuroscience. The atlas was first implemented in a software called [http://www.talairach.org/daemon.html '''talairach daemon'''].&lt;br /&gt;
&lt;br /&gt;
'''Yeo7 and Yeo17''' &amp;lt;br&amp;gt;&lt;br /&gt;
Yeo7 and Yeo17 are the resting state functional connectivity atlases created by Yeo et al. (2011). For atlas creation 1000 subjects, coregistered using surface-based alignment were used. Two versions of parcellation were used resulting for the 7 and 17 networks (Yeo7 and Yeo17 atlas respectively). In the original publication atlases for two different levels of brain structure coverage were prepared: neocortex and liberal. In BESA products, only one of them (liberal) is available. Note that in comparison to the other atlases, here networks are reflected, rather than the individual brain structures. These atlases are in line with [[BESA_Research_Montage_Editor#Standard_Source_Montage_-_Resting_State_Montages | Resting State Source Montages]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Visualization modes'''&lt;br /&gt;
&lt;br /&gt;
'''Just Labels''' &amp;lt;br&amp;gt;&lt;br /&gt;
Displayed are crosshair coordinates (Talairach or MNI), the currently used brain atlas and the region name where the crosshair is placed. No atlas overlay will be visible on the 3D image.&lt;br /&gt;
&lt;br /&gt;
'''brainCOLOR''' &amp;lt;br&amp;gt;&lt;br /&gt;
All information is displayed as in “Just Labels” mode but also the atlas is visible as an overlay over the MRI. The coloring is performed using the algorithm introduced by Klein and colleagues (Klein et al. 2010). With this method of coloring the regions which are part of the same lobe are colored in a similar color but with different color shade. The shade is computed by the algorithm to make these regions visually differentiable from each other as much as possible.&lt;br /&gt;
&lt;br /&gt;
'''Individual Color''' &amp;lt;br&amp;gt;&lt;br /&gt;
In this mode the native brain atlas color is used if provided by the authors of the brain atlas (i.e. Yeo7). Where this was not available BESA autogenerated colors for the atlas using an approach similar to political map coloring. This approach aims to differentiate most regions that are adjacent to each other and no presumptions on lobes is applied.&lt;br /&gt;
&lt;br /&gt;
'''Contour''' &amp;lt;br&amp;gt;&lt;br /&gt;
Only region contours (borders between atlas regions) are drawn with blue color. This is the default mode in BESA Research.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''References'''&lt;br /&gt;
&lt;br /&gt;
* Brodmann, Korbinian. 1909. Vergleichende Lokalisationslehre Der Großhirnrinde. Leipzig: Barth. https://www.livivo.de/doc/437605.&lt;br /&gt;
* Damasio, Hanna, and Antonio R. Damasio. 1989. Lesion Analysis in Neuropsychology. Oxford University Press, USA.&lt;br /&gt;
* Fan, Lingzhong, Hai Li, Junjie Zhuo, Yu Zhang, Jiaojian Wang, Liangfu Chen, Zhengyi Yang, et al. 2016. “The Human Brainnetome Atlas: A New Brain Atlas Based on Connectional Architecture.” Cerebral Cortex 26 (8): 3508–26. https://doi.org/10.1093/cercor/bhw157.&lt;br /&gt;
* Klein, Arno, Andrew Worth, Jason Tourville, Bennett Landman, Tito Dal Canton, Satrajit S. Ghosh, and David Shattuck. 2010. “An Interactive Tool for Constructing Optimal Brain Colormaps.” https://mindboggle.info/braincolor/colormaps/index.html.&lt;br /&gt;
* Lancaster, Jack L., Marty G. Woldorff, Lawrence M. Parsons, Mario Liotti, Catarina S. Freitas, Lacy Rainey, Peter V. Kochunov, Dan Nickerson, Shawn A. Mikiten, and Peter T. Fox. 2000. “Automated Talairach Atlas Labels for Functional Brain Mapping.” Human Brain Mapping 10 (3): 120–131.&lt;br /&gt;
*Rolls, Edmund T., Marc Joliot, and Nathalie Tzourio-Mazoyer. 2015. “Implementation of a New Parcellation of the Orbitofrontal Cortex in the Automated Anatomical Labeling Atlas.” NeuroImage 122 (November): 1–5. https://doi.org/10.1016/j.neuroimage.2015.07.075.&lt;br /&gt;
* Talairach, J, and P Tournoux. 1988. Co-Planar Stereotaxic Atlas of the Human Brain. 3-Dimensional Proportional System: An Approach to Cerebral Imaging. Thieme.&lt;br /&gt;
*Thomas Yeo, B. T., F. M. Krienen, J. Sepulcre, M. R. Sabuncu, D. Lashkari, M. Hollinshead, J. L. Roffman, et al. 2011. “The Organization of the Human Cerebral Cortex Estimated by Intrinsic Functional Connectivity.” Journal of Neurophysiology 106 (3): 1125–65. https://doi.org/10.1152/jn.00338.2011.&lt;br /&gt;
* Tzourio-Mazoyer, N., B. Landeau, D. Papathanassiou, F. Crivello, O. Etard, N. Delcroix, B. Mazoyer, and M. Joliot. 2002. “Automated Anatomical Labeling of Activations in SPM Using a Macroscopic Anatomical Parcellation of the MNI MRI Single-Subject Brain.” NeuroImage 15 (1): 273–89. https://doi.org/10.1006/nimg.2001.0978.&lt;br /&gt;
&lt;br /&gt;
== Slice View ==&lt;br /&gt;
''This feature requires BESA Research 7.1 or higher.''&lt;br /&gt;
&lt;br /&gt;
A convenient way to review MRI data and export it in graphical form is a multi-slice view. To enable multi-slice view press the toggle multiple view button until the slice view is shown in the 3D window.&lt;br /&gt;
&lt;br /&gt;
[[Image:SliceView1.png|600px]]&lt;br /&gt;
&lt;br /&gt;
In this view discrete sources, [[Source_Analysis_3D_Imaging#Overview | distributed sources]] and [[Source_Analysis_3D_Imaging#Brain Atlas| brain atlas]] can be also be overlayed. The display matrix can be adjusted by slice view controls that are available in the 3D Window tab of the Preferences Dialog Box. One of the following slicing direction can be selected: Transverse, Coronal, Sagittal by pressing the appropriate button in the 3D window toolbar.&lt;br /&gt;
&lt;br /&gt;
By adjusting First slice and Last slice sliders, the span of the volume that will be displayed can be adjusted. The interval between slices can be adjusted by changing the Spacing slider value. The layout of slices will be automatically adjusted to fill the full space of the main window. All values in the sliders are given in mm.&lt;br /&gt;
&lt;br /&gt;
'''Note''': The last slice value will be adjusted to the closest possible number matching the given first slice and spacing value. During multi-slice view the cursor is disabled and no&lt;br /&gt;
atlas information is provided.&lt;br /&gt;
&lt;br /&gt;
== Glassbrain ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Glassbrain.png|600px]]&lt;br /&gt;
&lt;br /&gt;
The glass brain can be enabled or disabled in one of the following ways:&lt;br /&gt;
&lt;br /&gt;
*by pressing the button  in the toolbar ,&lt;br /&gt;
&lt;br /&gt;
*by using the shortcut SHIFT-G or&lt;br /&gt;
&lt;br /&gt;
*by checking the checkbox in Preferences, 3D Display tab.&lt;br /&gt;
&lt;br /&gt;
The transparency value of the glass brain can be adjusted in one of the following ways:&lt;br /&gt;
&lt;br /&gt;
*by a slider/edit box in Preferences, 3D Display tab or&lt;br /&gt;
&lt;br /&gt;
by using the keyboard shortcut SHIFT-UP (to increase transparency by 10%) or SHIFT-DOWN (to decrease transparency by 10%).&lt;br /&gt;
&lt;br /&gt;
Note that If a distributed solution is displayed together with the glass brain, a notification is displayed in the left bottom corner of 3D window to prevent misconception of the glass brain as a cortical image:&lt;br /&gt;
&lt;br /&gt;
“Volume-based image only&amp;quot;, which means that the results of distributed source analysis images are visualized only for the current MRI slice, and are not projected to the displayed surface. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{BESAManualNav}}&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:Glassbrain.png</id>
		<title>File:Glassbrain.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:Glassbrain.png"/>
				<updated>2021-11-25T12:30:23Z</updated>
		
		<summary type="html">&lt;p&gt;Dominik: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dominik</name></author>	</entry>

	</feed>