[Eeglablist] Crop EEG segments in command line

Carlos Mugruza cmugruza at yahoo.com
Thu Apr 12 04:54:03 PDT 2012


Thanks a lot Arno,
It worked in both ways.
Have a nice day.
Carlos.
--- On Wed, 4/11/12, Arnaud Delorme <arno at ucsd.edu> wrote:

From: Arnaud Delorme <arno at ucsd.edu>
Subject: Re: [Eeglablist] Crop EEG segments in command line
To: "Stephen Politzer-Ahles" <politzerahless at gmail.com>
Cc: "Carlos Mugruza" <cmugruza at yahoo.com>, "eeglablist at sccn.ucsd.edu" <eeglablist at sccn.ucsd.edu>, "Makoto Miyakoshi" <mmiyakoshi at ucsd.edu>
Date: Wednesday, April 11, 2012, 12:06 AM

Dear Carlos,
if you look at the EEGLAB history after rejecting continuous portions of data, you will get something like
EEG = eeg_eegrej( EEG, [1 3442;15625 20160;21528 22754;42578 44250]);
the data portions are 1 to 3442 samples, 15625 to 20160 etc...I think this is the function you are looking for. pop_select can also do it (but it actually calls this functions).Hope this helps,
Arno
On Apr 9, 2012, at 1:01 PM, Stephen Politzer-Ahles wrote:
 Hi Carlos,

I'm not sure about your exact situation, but if want to define conditions using multiple markers, I think ERPLAB (a plugin for EEGLAB) offers more options for defining conditions; if you have trouble getting what you need using pop_select, you might try out ERPLAB.


Best,
Steve Politzer-Ahles

On Mon, Apr 9, 2012 at 2:52 PM, Carlos Mugruza <cmugruza at yahoo.com> wrote:

Dear Stephen and Makoto,



Thanks by your answers, but I want to do this in continuous data.  I 
want to divide or extract the file but without breaking conditions 
(defined by 2 markers).  Because of that I was asking if someone used 
pop_eegplot.  But, now I was looking again and it looks that pop_select 
is the function I was looking for. So, it is time to make the short 
script.



Best wishes.



Carlos. _________________________________________
Carlos A. Mugruza  Vassallo
Neuroscience and DevelopmentScrymgeour Building
The University of Dundee 
Dundee, UK

DD1 4HN
Office (+44) 1382 384926    

Fax (+44) 1382 229993
Webpage:http://www.dundee.ac.uk/psychology/people/phdstudents/camugruzavassallo/
http://www.linkedin.com/in/carlosmugruza 

    
    From: Stephen Politzer-Ahles <politzerahless at gmail.com>
 To: Carlos Mugruza <cmugruza at yahoo.com> 

Cc: "eeglablist at sccn.ucsd.edu" <eeglablist at sccn.ucsd.edu> 

 Sent: Monday, April 9, 2012 11:26 AM
 Subject: Re: [Eeglablist] Crop EEG segments in command
 line
   

Hi Carlos,

Do you mean to trim long epochs into shorter epochs? (For example, if you have epochs that are 2000 ms long and you want them to be 1500 ms long?) If that is what you're wanting to do, you can do it from the command line using:



EEG = pop_epoch( EEG, {  }, [epochbegin epochend], 'newname', EEG.setname, 'epochinfo', 'yes');

where [epochbegin] and [epochend] are the latencies of the beginning and end of the epoch, respectively, with respect to the time-locking event. (I think pop_selectevent() also works, in more or less the same way; it also gives you the option of doing this only to certain conditions.)



Best,
Steve Politzer-Ahles


On Mon, Apr 9, 2012 at 12:51 AM, Carlos Mugruza <cmugruza at yahoo.com> wrote:


 Dear EEGLAB users,

I would like to know if there is any function to crop EEG files or maybe with eegplot or pop_eegplot.  I mean given a segment with latencies to reject. 



With EEG.srate, I understand it can be done few steps: to crop EEG.data and to identify EEG.urevents and EEG.events updating every latency and to reject events in the structure. 

Best wishes

Carlos.

_________________________________________
Carlos A. Mugruza  Vassallo
Neuroscience and DevelopmentScrymgeour Building
The University of Dundee 
Dundee, UK
DD1 4HN
Office (+44) 1382 384926    


Fax (+44) 1382 229993
Webpage:http://www.dundee.ac.uk/psychology/people/phdstudents/camugruzavassallo/

http://www.linkedin.com/in/carlosmugruza 

_______________________________________________

Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html

To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu

For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu




-- 
Stephen Politzer-Ahles

University of Kansas
Linguistics Department
http://www.linguistics.ku.edu/



    


-- 
Stephen Politzer-Ahles
University of Kansas
Linguistics Department
http://www.linguistics.ku.edu/


_______________________________________________
Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.ucsd.edu
For digest mode, send an email with the subject "set digest mime" to eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20120412/752a966c/attachment.html>


More information about the eeglablist mailing list