# Metadata for time-frequency data

**URL:** <https://mne.discourse.group/t/metadata-for-time-frequency-data/1864>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 13, 2019, 10:39pm UTC](https://mne.discourse.group/t/metadata-for-time-frequency-data/1864 "2019-06-13T22:39:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 13, 2019, 10:39pm UTC](https://mne.discourse.group/t/metadata-for-time-frequency-data/1864/1 "2019-06-13T22:39:58Z")

</div>

External Email - Use Caution

Hi all,

I am trying to run a regression model on my time-frequency EEG data  
(AverageTFR or EpochsTFR). I am wondering if there is any way to have  
"metadata" for time-frequency data to not lose the behavioral information  
like reaction time for each trial.

Thank you,  
-Mary  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20190613/aa8e8400/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190613/aa8e8400/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 13, 2019, 10:52pm UTC](https://mne.discourse.group/t/metadata-for-time-frequency-data/1864/2 "2019-06-13T22:52:11Z")

</div>

External Email - Use Caution

I am aware of the following link:  
[https://martinos.org/mne/stable/auto\_examples/time\_frequency/plot\_time\_frequency\_simulated.html?highlight=epochstfr](https://martinos.org/mne/stable/auto_examples/time_frequency/plot_time_frequency_simulated.html?highlight=epochstfr)

However, I am using ITC (inter-trial-coherence) and not power data,  
therefore I have to set "return\_itc=True, average=True" in the  
\*tfr\_morlet() \*function and cannot be able to have my output as  
"mne.time\_frequency.EpochsTFR". For each subject/participant, I got  
averaged over all trials/epochs. My final output is a numpy.array with a  
shape "n\_subjects X n\_freqs X n\_time X n\_channels". I can save this  
result as EpochsTFR type, however, I will lose all metadata information.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 14, 2019, 8:12am UTC](https://mne.discourse.group/t/metadata-for-time-frequency-data/1864/3 "2019-06-14T08:12:33Z")

</div>

External Email - Use Caution

did you have a look at [https://github.com/mne-tools/mne-python/issues/5112](https://github.com/mne-tools/mne-python/issues/5112) ?

Alex  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20190614/fb595f46/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190614/fb595f46/attachment.html)
