Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

Main_Plot_Figures.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. %% Close all figures, clear variables and command window
  2. close all
  3. clear
  4. clc
  5. %% Directory of the repository and the NIX library
  6. strMainPath = 'human_amygdala_mua_seeg_fearvideo';
  7. strNIXLibraryPath = 'nix-mx_Win64_1.4.1'; % For Mac: 'nix_mx_macOS_1.4.2_Matlab2020a'
  8. strFieldTripPath = 'fieldtrip-20200315';
  9. strGrammPath = 'gramm-master'; % https://github.com/piermorel/gramm
  10. %% Add necessary folders to the MATLAB path
  11. addpath([strMainPath filesep 'code_MATLAB'])
  12. addpath(genpath(strNIXLibraryPath))
  13. addpath(strFieldTripPath)
  14. addpath(strGrammPath)
  15. ft_defaults
  16. warning('strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
  17. warning('strNIXLibraryPath should be the full path of the NIX library ''nix-mx_Win64_1.4.1''')
  18. warning('strFieldTripPath should be the full path of the FieldTrip toolbox ''fieldtrip-2020xxxx''')
  19. warning('strGrammPath should be the full path of the Gramm toolbox ''gramm-master''')
  20. %% NIX data files
  21. strNIXFileNames = dir([strMainPath filesep 'data_NIX' filesep '*.h5']);
  22. strNIXFileNames = {strNIXFileNames.name}';
  23. assert(~isempty(strNIXFileNames),'strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
  24. %% Figure 1
  25. nExampleNeuron = 32; % neuron 30 reproduces the publication figure
  26. fig1 = Figure_1([strMainPath filesep 'data_NIX' filesep],nExampleNeuron);
  27. %% Figure 2
  28. fig2 = Figure_2([strMainPath filesep 'data_NIX' filesep]);