Dear Brainstorm community,
I’m trying to export the Phase Locking Values, keeping time info.
I’m finding some difficulties to obtain the [B]labels corresponding to the pairs of sensors[/B] involved in the computation (e.g. “Fpz x Oz”) that can be seen in the plots (as the time series plot).
In the DataMat Struct I can find the labels, so I’m assuming they are created on the fly when the plot is called.
However I could not find the function (and specifically the row in the code) in which the Electrode names are combined into these new labels.
Can anyone help me in this issue?
Thanks!
Giorgio
Hi Giorgio,
In the output files for all the connectivity processes, the names of the pairs of signals are saved in the fields RowNames and RefRowNames.
If you don’t find the information your are looking for in these fields, can you please post a few screen captures to illustrate better the type of information you are looking for?
Thanks,
Francois
Hi Francois,
thank you for the quick reply. I already found those fields, however I just wanted to know how they are combined to generate the pairs that are showed in the PLV time series.
For example, in my case my DataMat.TF is a 3x1000 matrix (so three pairs of electrodes are considered).
In both the RowNames and RefRowNames I found {'Fpz', 'Oz'} in the RowNames,
If I see the TimeSeries plot I just see the three relevant combinations
'Fz x Fz'
'Oz x Fz'
'Oz x Oz'
So basically I'm looking on how brainstorm obtains these three labels and how they are related to the 3 rows of the DataMat.TF.
Best
The matrix in .TF is a [2x2x1000] matrix in your case, but it is compressed because it is symmetrical.
RefRowNames correspond to the rows (dimension 1) and RowNames correspond to the columns (dimension 2).
The storage of the values is described in the forums at the bottom of this page:
http://neuroimage.usc.edu/brainstorm/Tutorials/Connectivity#Additional_documentation
You will find the appropriate function calls to produce the [2x2x1000] matrix you want from the [3x1000] value you have in the file.