[Eeglablist] CSD

Haneen Alsuradi haneen at nyu.edu
Fri Jul 10 10:14:07 PDT 2020


Hello Lina,

I have tried implementing CSD on my pre-processed data for the first time
last week. I tried to follow the tutorial on their website; below is the
code which I used and it worked for me:

        %CSD

        ConvertLocations('locs.ced', 'locs.csd'); %convert EEGlab location
file from .ced or .locs to .csd

        E = textread('E60.asc','%s'); % E60.asc is a file that simply has
the list of your channels labels

        M=ExtractMontage('locs.csd',E);

        [G,H] = GetGH(M);

        data = single(repmat(NaN,size(EEG.data))); % use single data
precision



        for ne = 1:length(EEG.epoch)               % loop through all epochs

            myEEG = single(EEG.data(:,:,ne));      % reduce data precision
to reduce memory demand

            MyResults = CSD(myEEG,G,H, 1.0e-5, 10);            % compute
CSD for <channels-by-samples> 2-D epoch

            data(:,:,ne) = MyResults;              % assign data output

        end

        looping_CSD_final = double(data);          % final CSD data

        EEG.data=looping_CSD_final;

        data(:,:,:) = NaN;                         % re-initialize data
output


Basically, the CSD tool box cannot naturally apply CSD on EEG.data as it
works on 2D data. That's why we loop over epochs. You can find the
explanation. You can follow the tutorial in this link for more info:
https://urldefense.com/v3/__https://psychophysiology.cpmc.columbia.edu/software/csdtoolbox/tutorial.html__;!!Mih3wA!Qps44R7uPgkWZaWHcaKMDdomiWvceUuKAeA0Zj3EN6B7NT5shI2ynCQQO68lgJVa_9LbUg$ 
.


If anyone in the list has any comment on the above let us know please!


Best,

Haneen


On Fri, Jul 10, 2020 at 11:58 AM Lina Ismail <linaelsherif at knights.ucf.edu>
wrote:

> Thank you Arno
> I am asking for some help to implement on the cleaned epoch before the
> connectivity analysis.
> As a beginner videos for EEGLAB have significantly helped to clean the
> data but what after I failed to apply without any guidance.
> So asking for anyone who has applied it before?
>
> Get Outlook for iOS<
> https://urldefense.com/v3/__https://aka.ms/o0ukef__;!!Mih3wA!SpZcC8SP9rVaF1v2JHyqDQ7o8FbIRMm1YvSRc4aY6u0SAp__vJYB-npHQKPZmNt6e14UpQ$
> >
> ________________________________
> From: eeglablist <eeglablist-bounces at sccn.ucsd.edu> on behalf of Delorme,
> Arnaud <adelorme at ucsd.edu>
> Sent: Thursday, July 9, 2020 8:26:03 PM
> Cc: eeglablist at sccn.ucsd.edu <eeglablist at sccn.ucsd.edu>
> Subject: Re: [Eeglablist] CSD
>
> Dear Lina,
>
> Applying current source density method is better than working with raw
> channel potentials - because if there is a superficial patch of cortex
> active, CSD will allow to extract it and mostly cancel the effect volume
> conduction. It can thus be considered as a rudimentary source extraction
> methods.
>
> It does not fully replace proper source localization analysis though,
> which should be done prior to using connectivity analysis methods.
> Connectivity analysis methods run at the channel level (raw potential) may
> return a variety of spurious connection which are uninterpretable (by
> spurious I mean that a channel being casually related to another might not
> mean that the patch of cortex underneath both channel are casually related).
>
> Arno
>
> > On Jul 8, 2020, at 6:11 PM, Lina Ismail <linaelsherif at Knights.ucf.edu>
> wrote:
> >
> > Hello all,
> > Have any one worked with current source density after cleaning the EEG
> data and extracting the epochs.
> > I am a beginner and need some help for reducing the EEG volume
> conduction before applying some connectivity analysis
> >
> > Best regards
> > Lina ismail
> >
> > Get Outlook for iOS<
> https://urldefense.com/v3/__https://nam02.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Faka.ms*2Fo0ukef__*3B!!Mih3wA!XLasDtvuspetLvlw5vZSWUkFhMQFpFgp8vgWH3NEC0sn9at0qvx--9isTZxPC6TODxvl9Q*24&data=02*7C01*7Clinaelsherif*40knights.ucf.edu*7Cb381102bcab04477e7cd08d8246f9fc8*7C5b16e18278b3412c919668342689eeb7*7C0*7C0*7C637299409123726147&sdata=HI27i47NnabhKtvMtEcJ6MIeNLsbqEE7TAmlP55ddd0*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSU!!Mih3wA!SpZcC8SP9rVaF1v2JHyqDQ7o8FbIRMm1YvSRc4aY6u0SAp__vJYB-npHQKPZmNth9-q4bA$
> >
> > _______________________________________________
> > Eeglablist page:
> https://urldefense.com/v3/__https://nam02.safelinks.protection.outlook.com/?url=http*3A*2F*2Fsccn.ucsd.edu*2Feeglab*2Feeglabmail.html&data=02*7C01*7Clinaelsherif*40knights.ucf.edu*7Cb381102bcab04477e7cd08d8246f9fc8*7C5b16e18278b3412c919668342689eeb7*7C0*7C0*7C637299409123726147&sdata=GBLYBOM9nKEAjKX9pycFR*2BPfBhLLWz*2BXinYLanDjrgU*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJQ!!Mih3wA!SpZcC8SP9rVaF1v2JHyqDQ7o8FbIRMm1YvSRc4aY6u0SAp__vJYB-npHQKPZmNtr7mzT6Q$
> > 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
>
> _______________________________________________
> Eeglablist page:
> https://urldefense.com/v3/__https://nam02.safelinks.protection.outlook.com/?url=http*3A*2F*2Fsccn.ucsd.edu*2Feeglab*2Feeglabmail.html&data=02*7C01*7Clinaelsherif*40knights.ucf.edu*7Cb381102bcab04477e7cd08d8246f9fc8*7C5b16e18278b3412c919668342689eeb7*7C0*7C0*7C637299409123726147&sdata=GBLYBOM9nKEAjKX9pycFR*2BPfBhLLWz*2BXinYLanDjrgU*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJQ!!Mih3wA!SpZcC8SP9rVaF1v2JHyqDQ7o8FbIRMm1YvSRc4aY6u0SAp__vJYB-npHQKPZmNtr7mzT6Q$
> 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
> _______________________________________________
> Eeglablist page:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__sccn.ucsd.edu_eeglab_eeglabmail.html&d=DwICAg&c=slrrB7dE8n7gBJbeO0g-IQ&r=ptYeGO3Up2eC7IFfvamjGQ&m=vZFKvtGvs4HPznjyfsMSeCTibwj7DwqKvjrPlQeHv2Q&s=T1e0mLNYTWGmHZfwH8L2cQschSXUCI8GQZKLPkeflvY&e=
> 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
>



More information about the eeglablist mailing list