[FieldTrip] layout file from beamformer
Julian Keil
julian.keil at gmail.com
Fri May 23 10:45:20 CEST 2014
Hi Tyler,
I attached 2 plots for you, one with evoked ERF activity, and one of the
same activity but masked for the maximum.
As you can see, you get information about the activity for each dipole as
well as the location within the volume.
As for the layout, here's how it works for me:
% Sourcedummy in this case is a source structure containing the grid .pos
% and .inside field
elec = [];
elec.elecpos = sourcedummy.pos(sourcedummy.inside,:);
elec.chanpos = sourcedummy.pos(sourcedummy.inside,:);
tmp = num2cell(sourcedummy.inside);
elec.label = cellfun(@num2str,tmp,'UniformOutput',0);
cfg = [];
cfg.elec = elec;
cfg.projection = 'polar';
example_lay = ft_prepare_layout(cfg);
cfg=[];
cfg.layout = example_lay;
ft_layoutplot(cfg);
Please be careful with the 2D-projection of 3D-data. I'm not sure how
accurate the projection is and some grid points might overlap.
Good Luck,
Julian
On Fri, May 23, 2014 at 10:04 AM, Tyler Grummett <
tyler.grummett at flinders.edu.au> wrote:
> Hey Julian,
>
> That sounds good, it would be awesome if you could give me an example.
>
> Also though, what are the steps of using ft_prepare_layout with
> beamformer data. I am away it gives you permissions, but how do you enter
> that into ft_prepare_layout.
>
> This is only for using in trentool, otherwise I would be using your
> method
>
> Tyler
>
>
> On 23 May 2014, at 4:40 pm, "Julian Keil" <julian.keil at gmail.com> wrote:
>
> Dear Tyler,
>
> I recently had a similar problem.
>
> I solved this by plotting the x,y,z-coordinates of all dipoles within
> the BEM-Model and assign a color value depending on the power value to the
> dipole markers.
>
> In short: use ft_triplot to plot the mesh of the BEM. Then select the
> .pos-field of the dipoles inside your volume and plot them with plot3.
> In the plot3-step, you can assign each dipole a 'Color'-property based on
> your power or stats value.
>
> Alternatively, you can use ft_prepare_layout to get a planar projection
> of your sources, but at least in my case it did not look too good.
>
> Hope that helps, if you want to, I can send you an example of what the
> plots look like.
>
> Best,
>
> Julian
>
> Am 23.05.2014 um 04:10 schrieb Tyler Grummett:
>
> Hello fieldtrippers,
>
> I am trying to create a layout file that has the positions of the
> beamformer sources.
>
> The output of my beamformer analysis was 1400 channels and I am trying
> to create a layout file with certain position which correspond to certain
> sources.
>
> For example, if I wanted to plot 30 sources and all I had were the x y z
> position.
>
> I am hoping that this made sense, I cant quite work out what I should be
> asking for. I have worked out how to plot the power of the sources, but
> ft_topoplotIC is asking for a layout file (after I ran an ICA over it),
> which I cant work out how to make.
>
> Tyler
>
> *************************
>
> *Tyler Grummett ( BBSc, BSc(Hons I))*
> *PhD Candidate*
> *Brain Signals Laboratory*
> *Flinders University*
> *Rm 5A301*
> *Ext 66124*
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140523/ff3a44b1/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wirebrain_example.png
Type: image/png
Size: 57265 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140523/ff3a44b1/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wirebrain_example_mask.png
Type: image/png
Size: 37668 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140523/ff3a44b1/attachment-0005.png>
More information about the fieldtrip
mailing list