<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi HanGue,<br>
<br>
My Batch plugin that is linked to the EEGLab site should be able to help with this.<br>
<br>
If you load a file, perform your operations, then save a new file, the Batch plugin facilitates saving a History Template Batching file (a text file that contains the EEG.history string, with some keywords for file name replacement). Once that you have this
 template file you can use the Batch menue to <font face="Courier New">Run a History Template Batch</font>. This will call up a GUI that will query you to select a history template file, then select a series of data files. When you press OK it will perform
 the operations from the history file on each of the selected data files sequentially.<br>
<br>
The history template file often needs editing once that it is saved in order to work properly, but I would be happy to help you with that if you run in to any road blocks.<br>
<br>
<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">James Desjardins, MA<br>
Electrophysiology Technologist<br>
Cognitive and Affective Neuroscience Lab, Psychology Department <br>
Jack and Nora Walker Centre for Lifespan Development Research<br>
Brock University<br>
500 Glenridge Ave.<br>
St. Catharines, ON, Canada L2S 3A1<br>
905-688-5550 x4676<br>
--<br>
"'Cause you never can tell What goes on down below!<br>
"This pool might be bigger Than you or I know!"<br>
<br>
McElligot's Pool<br>
Dr.Seuss 1947</div>
</span></font></div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF735678"><font face="Tahoma" color="#000000" size="2"><b>From:</b> eeglablist-bounces@sccn.ucsd.edu [eeglablist-bounces@sccn.ucsd.edu] on behalf of Makoto Miyakoshi [mmiyakoshi@ucsd.edu]<br>
<b>Sent:</b> March-19-13 1:33 PM<br>
<b>To:</b> HanGue Jo<br>
<b>Cc:</b> eeglablist@sccn.ucsd.edu<br>
<b>Subject:</b> Re: [Eeglablist] Artifact rejection on multiple datasets<br>
</font><br>
</div>
<div></div>
<div>Dear HanGue,
<div><br>
</div>
<div>Currently no. You should perform it for each subject.</div>
<div><br>
</div>
<div>Actually that was the motive for me to start writing a code in Matlab: automatize the boring and time-consuming preprocess steps (and it eliminates human error too). For that you need two simple techniques.</div>
<div>1. use 'eegh' to obtain the code you ran from GUI</div>
<div>2. use 'for...end' loop. I give you an example below. Also 'help' literally helps.</div>
<div><br>
</div>
<div>cd('yourDataFolder')</div>
<div>allSetFiles = dir('*.set');</div>
<div>for n = 1:length(allSetFiles)</div>
<div>      loadFileName = allSetFiles(n).name;</div>
<div>      dataName = loadFileName(1:end-4);</div>
<div>      EEG = pop_loadset('filename', loadFileName, 'filepath', pwd);</div>
<div><br>
</div>
<div>      ..... (do your processes here)</div>
<div><br>
</div>
<div>      pop_saveset(EEG, 'filename', loadFileName, 'filepath', pwd)</div>
<div>end<br>
<br>
Good luck.<br>
<br>
Makoto</div>
<div><br>
</div>
<div>
<div class="gmail_quote">2013/3/17 HanGue Jo <span dir="ltr"><<a href="mailto:johangue@gmail.com" target="_blank">johangue@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi all,
<div><br>
</div>
<div>Is there any method to use "Tools -> Reject data epochs" on multiple datasets or a study, in one step on multiple datasets ?</div>
<div><br>
</div>
<div>Best,</div>
<div>HanGue.</div>
<br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">
http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">
eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">
eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Makoto Miyakoshi<br>
JSPS Postdoctral Fellow for Research Abroad<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<br>
</div>
</div>
</div>
</div>
</body>
</html>