-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zeffiro developer: A regular push adding the changes made in the curr…
…ent local repository to the remote origin. Contents of the folders ./data/ and ./profile/ are ignored. The update necessitates creating a personal access token.
- Loading branch information
Sampsa Pursiainen (TAU)
committed
Oct 3, 2022
1 parent
e0bbea6
commit 47adc81
Showing
6 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
project_struct = zeffiro_interface('start_mode','nodisplay','open_project','data/example_projects/ary_sphere_project_2'); | ||
%This script calculates averaged sensitivity maps using the MNE and dipole | ||
%scan tools. Start the script from the root folder by first adding the | ||
%script folder into the path (addpath('scripts/inverse_sensitivity')). | ||
|
||
%Import the spherical Ary domain. | ||
project_struct = zeffiro_interface('start_mode','nodisplay','open_project','data/example_projects/ary_sphere_project'); | ||
|
||
%Set mesh resolution and generate a finite element mesh. | ||
project_struct.mesh_resolution = 6; | ||
project_struct = zef_create_finite_element_mesh(project_struct); | ||
|
||
%Set the desired number of source positions and generate a lead field. | ||
project_struct.n_sources = 500; | ||
project_struct = zef_eeg_lead_field(project_struct); | ||
|
||
%Set noise level and number of cases to be averaged. | ||
noise_level = -30; | ||
n_cases = 2; | ||
|
||
%Start the MNE tool and calculate a map for sLORETA. | ||
project_struct = zef_minimum_norm_estimation(project_struct); | ||
sensitivity_map_sLoreta = zef_sensitivity_map_mne(project_struct, 'sLORETA', n_cases, noise_level); | ||
|
||
%Start the dipole scan tool and calculate a map. | ||
project_struct = zef_dipole_start(project_struct); | ||
sensitivity_map = zef_sensitivity_map_dipoleScan(project_struct, 2, -30) | ||
sensitivity_map_dipoleScan = zef_sensitivity_map_dipoleScan(project_struct, n_cases, noise_level); | ||
|
||
%Close Zeffiro. | ||
zef_close_all; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters