[FieldTrip] Using FieldTrip for Plotting SPM Statistical Maps

mikkelcv at drcmr.dk mikkelcv at drcmr.dk
Fri Mar 15 10:46:12 CET 2024


Dear Benedetta

Depending on what level you have your t-maps (sensor level, source level, or something else), you can manually create the FieldTrip data structure. All you need is to arrange your t-map as NxM matrix, a vector with the N channel names, and a vector with the M dimension, usually time or frequency. Finally, you specify the “dimord” according to one of the datatypes, e.g., “chan_time” if the data is channelled by time points. The details on what you need and what the data fields should be named are explained here: https://www.fieldtriptoolbox.org/development/datastructure/

For example, if you have a single t-value per channel location in a standard EEG cap, you would export the N channels x 1 “t-map” and the channel names. Once you have arranged it according to the FieldTrip naming conventions, you can use ft_checkdata to see if the structure is “valid” in FieldTrips view or if something is still missing.

Best regards
Mikkel

Fra: fieldtrip <fieldtrip-bounces at science.ru.nl> på vegne af Cecconi Benedetta via fieldtrip <fieldtrip at science.ru.nl>
Dato: torsdag, 14. marts 2024 kl. 19.06
Til: fieldtrip at science.ru.nl <fieldtrip at science.ru.nl>
Cc: Cecconi Benedetta <Benedetta.Cecconi at uliege.be>
Emne: [FieldTrip] Using FieldTrip for Plotting SPM Statistical Maps

Hello everyone 🙂



I have contrast and t-maps generated in SPM-EEG, and I've been finding it challenging to plot these in SPM while allowing for some customization (even basic ones like adjusting the scale or plotting multiple time points).



Since there does not seem to be a simple solution to achieve this, I was considering using FieldTrip for plotting these statistical maps. I found the function spm2fieldtrip, but it only seems to handle the conversion of raw data. I was wondering if any of you have experience or insights on using FieldTrip for plotting SPM statistical maps directly, without the need to redo the entire analysis on FieldTrip.



Any tips or guidance would be greatly appreciated..



Thanks in advance for your help! 🙂



Best,

Benedetta
-----
Doctoral Candidate - FNRS ASP

Coma Science Group<https://www.coma.uliege.be/>   GIGA Consciousness
Centre du Cerveau²<http://www.chuliege.be/cerveau>      CHU de Liège

University of Liège, Belgium
11 Avenue de l'Hôpital, B34+2
4000-Liège (Sart Tilman)
Belgium
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20240315/4a2f9260/attachment.htm>


More information about the fieldtrip mailing list