[Eeglablist] plotting sLORETA images

Allan Campopiano alcampopiano at gmail.com
Thu Jan 23 16:59:47 PST 2014


Hello Muhammad Abul Hassan,

One way to visualize sLORETA is to use MATLAB's scatter3 function. The
Google Drive link below will take you to example figures along with their
corresponding scripts and sample data. You will also find code that can
turn these figures into movie clips (see the .mp4).

https://drive.google.com/folderview?id=0B9MrS-UHiwQEZWZ1OXV6WjB5YWc&usp=drive_web

The scripts were built to visualize simulated data but they may still work
for your purposes. When you run them a browser will come up asking for the
necessary files (read below):

(1) scatter_slor.m

This script plots each voxel in 3D space based on the MNI (XYZ) coordinates
in slorcoords.txt (6236 X 3 array). It then plots the ROI activations
(linearly mapping voxel values to the current colormap) using data from
ROI_data.txt (6236 X 1 array).

(2) scatter_slor_points.m

This script highlights voxels of interest (e.g., the max voxel from various
conditions) on the MNI head. Lines along the XYZ planes stem from each
highlighted voxel so that their location in 3D space can be easily
determined. The max_voxel_inds.txt file, which contains row indices of the
voxels you wish to highlight, and the slorcoords.txt file are needed for
this script.

There are lots of comments in the scripts which may be useful if you need
to modify them. Both scripts contain the code to create the movie clip
version if you wish (this will take a while).

You may already know this, but aside from using MATLAB functions for
sLORETA visualizations, you could always convert your .txt files back into
.slor files after you have operated on them in some way. Just use the
built-in sLORETA file converter and visualize your data in the usual way.

I hope this helps!

Sincerely,



*Allan Campopiano* | MA Candidate
Laboratory of Cognitive and Affective Neuroscience
Brock University | Psychology Department | 500 Glenridge Ave.
St. Catharines, ON Canada L2S 3A1
*T* 905-688-5550 x3451 *F *905-688-6922


On Tue, Jan 21, 2014 at 4:47 AM, Cognitology <mspape at cognitology.eu> wrote:

> Hi,
>
> If you happen to use Windows, you could just use the LORETA program by
> downloading it. It’s incredibly easy to use and includes powerful
> statistical algorithms. Also, it’s somehow quite funny.
>
> Here’s an old one: http://www.uzh.ch/keyinst/loreta.htm
>
> There’s a new one out there, I think somewhere on google code, but I
> always have difficulty in finding it.
>
> Best,
>
> Michiel
>
>
>
> *From:* eeglablist-bounces at sccn.ucsd.edu [mailto:
> eeglablist-bounces at sccn.ucsd.edu] *On Behalf Of *M Abul Hassan
> *Sent:* 19. January 2014 23:52
> *To:* eeglab to-email
> *Subject:* [Eeglablist] plotting sLORETA images
>
>
>
> Dear EEGLAB users
>
> How can I plot sLORETA images from MATLAB command line once I have
> activation values for each voxel (MNI coordinates)?I am trying to use
> plotmri command but I don’t know how to control the input parameters.
>
> If anybody uses this command than please help me how to set the MNI
> structure for the plotmri function. Also, if someone knows another command
> to make sLORETA images, please let me know that command.
>
> Thanks
>
> Best Regards
>
> Muhammad  Abul Hasan
>
> _______________________________________________
> 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/20140123/76ef03c2/attachment.html>


More information about the eeglablist mailing list