[FieldTrip] topoplot CSD data

Snijders, T.M. (Tineke) tineke.snijders at donders.ru.nl
Thu Jul 28 10:16:18 CEST 2016

Hi Sandra,

I assume the input GA_Checker_og is a grand average where you have used cfg.keepindividual='yes', so you have the field .individual in the data instead of .avg.
So, you can either use cfg.keepindividual='no' when making your grand average, or I guess you can use ft_timelockanalysis after the ft_scalpcurrentdensity.


From: fieldtrip-bounces at science.ru.nl [fieldtrip-bounces at science.ru.nl] on behalf of sandra guerreiro jacinto [sgj.umontreal at gmail.com]
Sent: Wednesday, July 27, 2016 11:07 PM
To: fieldtrip at science.ru.nl
Subject: [FieldTrip] topoplot CSD data

I’m having trouble topoplot my data after a ft_scalpcurrentdensity procedure.

I get an error message :
«  Error using topoplot_common (line 267)
cfg.parameter=avg is not present in data structure »

Is that correct I take my individuals and make the mean over all subjects in order to create the avg?

here is my code:

    cfg.method       ='spline';
    cfg.elec         = ft_read_sens('standard_waveguard64.elc');
    cfg.trials       = 'all' ;

    cfg.conductivity =  0.33;
    cfg.lambda       = 1e-05;
    cfg.order        =  4;
    cfg.degree       = 14;
    ft_csd_GA_Checker_og = ft_scalpcurrentdensity(cfg, GA_Checker_og)

    ft_csd_GA_Checker_og.avg = squeeze(mean(ft_csd_GA_Checker_og.trial,1));

the last line was my turnaround. I just want to make sure the procedure is correct.

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160728/2c1225cb/attachment-0002.html>

More information about the fieldtrip mailing list