|
1 | | -% eegplugin_prepPipeline() - a wrapper to the prepPipeline, which does early stage |
2 | | -% |
3 | | -% Usage: |
4 | | -% >> eegplugin_prepPipeline(fig, try_strings, catch_strings); |
5 | | -% |
6 | | -% see also: prepPipeline |
7 | | - |
8 | | -% Author: Kay Robbins, with contributions from Nima Bigdely-Shamlo, Tim Mullen, Christian Kothe, and Cassidy Matousek. |
9 | | - |
10 | | -% This program is free software; you can redistribute it and/or modify |
11 | | -% it under the terms of the GNU General Public License as published by |
12 | | -% the Free Software Foundation; either version 2 of the License, or |
13 | | -% (at your option) any later version. |
14 | | -% |
15 | | -% This program is distributed in the hope that it will be useful, |
16 | | -% but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | | -% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | | -% GNU General Public License for more details. |
19 | | -% |
20 | | -% You should have received a copy of the GNU General Public License |
21 | | -% along with this program; if not, write to the Free Software |
22 | | -% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 | | - |
24 | | -%function eegplugin_clean_rawdata(fig,try_strings,catch_strings) |
25 | | - |
26 | | -% create menu |
27 | | -% toolsmenu = findobj(fig, 'tag', 'tools'); |
28 | | -% uimenu( toolsmenu, 'label', 'Clean continuous data using ASR', 'separator','on',... |
29 | | -% 'callback', 'EEG = pop_clean_rawdata(EEG); [ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG); eeglab redraw'); |
30 | | - |
31 | | -% eegplugin_prepPipeline() - the PREP pipeline plugin |
32 | | -function vers = eegplugin_prepPipeline(fig, trystrs, catchstrs) |
33 | | - |
34 | | -%% Add path to prepPipeline subdirectories if not in the list |
35 | | -tmp = which('getPrepDefaults'); |
36 | | -if isempty(tmp) |
37 | | - myPath = fileparts(which('prepPipeline')); |
38 | | - addpath(genpath(myPath)); |
39 | | -end; |
40 | | -vers = getPrepVersion(); |
41 | | - |
42 | | -% create menu |
43 | | -comprep = [trystrs.no_check '[EEG LASTCOM] = pop_prepPipeline(EEG);' catchstrs.new_and_hist]; |
44 | | -menu = findobj(fig, 'tag', 'tools'); |
45 | | -uimenu( menu, 'Label', 'Run PREP pipeline', 'callback', comprep, ... |
46 | | - 'separator', 'on'); |
47 | | - |
| 1 | +% eegplugin_prepPipeline() - a wrapper to the prepPipeline, which does early stage |
| 2 | +% |
| 3 | +% Usage: |
| 4 | +% >> eegplugin_prepPipeline(fig, try_strings, catch_strings); |
| 5 | +% |
| 6 | +% see also: prepPipeline |
| 7 | + |
| 8 | +% Author: Kay Robbins, with contributions from Nima Bigdely-Shamlo, Tim Mullen, Christian Kothe, and Cassidy Matousek. |
| 9 | + |
| 10 | +% This program is free software; you can redistribute it and/or modify |
| 11 | +% it under the terms of the GNU General Public License as published by |
| 12 | +% the Free Software Foundation; either version 2 of the License, or |
| 13 | +% (at your option) any later version. |
| 14 | +% |
| 15 | +% This program is distributed in the hope that it will be useful, |
| 16 | +% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | +% GNU General Public License for more details. |
| 19 | +% |
| 20 | +% You should have received a copy of the GNU General Public License |
| 21 | +% along with this program; if not, write to the Free Software |
| 22 | +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 23 | + |
| 24 | +%function eegplugin_clean_rawdata(fig,try_strings,catch_strings) |
| 25 | + |
| 26 | +% create menu |
| 27 | +% toolsmenu = findobj(fig, 'tag', 'tools'); |
| 28 | +% uimenu( toolsmenu, 'label', 'Clean continuous data using ASR', 'separator','on',... |
| 29 | +% 'callback', 'EEG = pop_clean_rawdata(EEG); [ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG); eeglab redraw'); |
| 30 | + |
| 31 | +% eegplugin_prepPipeline() - the PREP pipeline plugin |
| 32 | +function vers = eegplugin_prepPipeline(fig, trystrs, catchstrs) |
| 33 | + |
| 34 | +%% Add path to prepPipeline subdirectories if not in the list |
| 35 | +tmp = which('getPrepDefaults'); |
| 36 | +if isempty(tmp) |
| 37 | + myPath = fileparts(which('prepPipeline')); |
| 38 | + addpath(genpath(myPath)); |
| 39 | +end |
| 40 | +vers = getPrepVersion(); |
| 41 | + |
| 42 | +% create menu |
| 43 | +comprep = [trystrs.no_check '[EEG LASTCOM] = pop_prepPipeline(EEG);' catchstrs.new_and_hist]; |
| 44 | +menu = findobj(fig, 'tag', 'tools'); |
| 45 | +uimenu( menu, 'Label', 'Run PREP pipeline', 'callback', comprep, ... |
| 46 | + 'separator', 'on'); |
| 47 | + |
0 commit comments