Difference between revisions of "How to Use BrainVision Analyzer with BESA Connectivity"

From BESA® Wiki
Jump to: navigation, search
(Created page with "{{BESAInfobox |title = Module information |module = BESA Connectivity |version = BESA Connectivity 1.0 or higher }} == Note and general remarks== To transform data from Brai...")
 
Line 7: Line 7:
  
 
== Note and general remarks==
 
== Note and general remarks==
To transform data from BrainVision Analyzer you need to convert it using MATLAB. We assume that you have it already installed on your PC and BrainVision Analyzer is configured to work with it. You will also need this script from our github page:
+
To transform data from BrainVision Analyzer to BESA Connectivity, you need to convert it using MATLAB. We assume that you have it already installed on your PC and BrainVision Analyzer is configured to work with it. You will also need this script from our Github page:
 +
 
 
https://github.com/BESA-GmbH/BESA-MATLAB-Scripts/blob/main/Additional_utilities/BESAConnectivityScripts/Analyzer_to_BESAConnectivity.m
 
https://github.com/BESA-GmbH/BESA-MATLAB-Scripts/blob/main/Additional_utilities/BESAConnectivityScripts/Analyzer_to_BESAConnectivity.m
 
You will also need these toolboxes:
 
You will also need these toolboxes:
Line 13: Line 14:
  
 
== What to do in BrainVision Analyzer==
 
== What to do in BrainVision Analyzer==
You need to prepare data that is in segments. You can of course apply any filtration and data processing beforehand. Then you export segments to matlab using Brain Voyager interface
+
You need to prepare data that is in segments - but not averaged! You can of course apply any filtering and data processing beforehand. Then you export segments to MATLAB using the Brain Vision Analyzer to MATLAB interface.
 +
Please make sure to use the following options when exporting:
 +
- Type "desktop" in the first dialog
 +
- Check boxes for "Export data in EEGLab format", "Raise EEGLab" and "Markers" in the second dialog.
 +
- In the third dialog, select all EEG channels that have coordinates (but not channels which do not have coordinates in Brain Vision Analyzer, like A1, A2)
 +
 
  
 
== Adapt the script ==
 
== Adapt the script ==
Script Analyzer_to_BESAConnectivity.m needs to be adapted. The following lines should be changed:
+
The script Analyzer_to_BESAConnectivity.m needs to be adapted. The following lines should be changed:
 
*In line after "%% Add toolboxes" provide full path to MATLAB2BESA toolbox
 
*In line after "%% Add toolboxes" provide full path to MATLAB2BESA toolbox
 
*You may adapt where the resulting file will be saved by changing the line "FilePathName = [pwd '\BAtoBESA.generic'];"
 
*You may adapt where the resulting file will be saved by changing the line "FilePathName = [pwd '\BAtoBESA.generic'];"
 
  
 
== Finalization ==
 
== Finalization ==
 
You just need to run the script just by either pressing Run in matlab toolbar or by calling "Analyzer_to_BESAConnectivity" command.  
 
You just need to run the script just by either pressing Run in matlab toolbar or by calling "Analyzer_to_BESAConnectivity" command.  
In BESA Connectivity you open the newly created file.
+
In BESA Connectivity you then start a Time-Frequency workflow and open the newly created file.
  
 
[[Category:Connectivity]] [[Category:Time-Frequency]] [[Category:Data Import/Export]]
 
[[Category:Connectivity]] [[Category:Time-Frequency]] [[Category:Data Import/Export]]

Revision as of 22:56, 14 November 2023

Module information
Modules BESA Connectivity
Version BESA Connectivity 1.0 or higher


Note and general remarks

To transform data from BrainVision Analyzer to BESA Connectivity, you need to convert it using MATLAB. We assume that you have it already installed on your PC and BrainVision Analyzer is configured to work with it. You will also need this script from our Github page:

https://github.com/BESA-GmbH/BESA-MATLAB-Scripts/blob/main/Additional_utilities/BESAConnectivityScripts/Analyzer_to_BESAConnectivity.m You will also need these toolboxes: https://github.com/BESA-GmbH/BESA-MATLAB-Scripts/tree/main/MATLAB2BESA

What to do in BrainVision Analyzer

You need to prepare data that is in segments - but not averaged! You can of course apply any filtering and data processing beforehand. Then you export segments to MATLAB using the Brain Vision Analyzer to MATLAB interface. Please make sure to use the following options when exporting: - Type "desktop" in the first dialog - Check boxes for "Export data in EEGLab format", "Raise EEGLab" and "Markers" in the second dialog. - In the third dialog, select all EEG channels that have coordinates (but not channels which do not have coordinates in Brain Vision Analyzer, like A1, A2)


Adapt the script

The script Analyzer_to_BESAConnectivity.m needs to be adapted. The following lines should be changed:

  • In line after "%% Add toolboxes" provide full path to MATLAB2BESA toolbox
  • You may adapt where the resulting file will be saved by changing the line "FilePathName = [pwd '\BAtoBESA.generic'];"

Finalization

You just need to run the script just by either pressing Run in matlab toolbar or by calling "Analyzer_to_BESAConnectivity" command. In BESA Connectivity you then start a Time-Frequency workflow and open the newly created file.