Merging 2 PSD Files

Hi BST forum,

I have computed 2 PSD files for the same time series. The first file contains the power and the second file contains the "1/f" background fit power. Then, to merge them, I dragged both files and run process - Extract - Concatenate Signals. This works very well but

  1. I cannot have the "view sensors" option anymore.
  2. If I select one sensor, I'd like to see both getting selected (i.e., power and the fit for the selected sensor). Whereas, it just selects only one!

I attach the image below:

what I expect to achieve is follows:

Is there any way(s) I could achieve my goal?

Many thanks!

Best,

Velu

Hi Velu,

When doing this there is not correspondence between the PSDs traces and sensors, that's why there no options to see sensors.

If you want to simultaneously plot the power spectrum alongside the background fit power for a given sensor

  1. Compute FOOOF on a PSD file. Process Frequency > specparam: fitting oscillations and 1/f
    https://neuroimage.usc.edu/brainstorm/Tutorials/Fooof

  2. Double-click the resulting file, to display it

  3. In the Display tab, select the desired sensor, Measure: Power and specparam:Overlay

  4. In the spectrum figure, there will be the option of 2D Sensor cap. Just click on the green trace, to see the sensor location.

I hope this helps you

Best,
Raymundo

Thank you very much, Raymundo for your prompt response! First of all, it is relieving to know that there is no correspondence between the PSD traces and the sensors. And secondly, it is great to already have a function that I can use.

Only drawback I have found is that - for the display, it considers all the frequency range of the original PSD file, whereas it correctly computes the background fit only for the "Frequency range of analysis". So, I have to run the "Extract" process using the output spectrum file to display the range I am interested in. I wonder if it would make sense to display only the analyzed frequency range (which the user is interested to see). :slight_smile:

Best,
Velu

Just want to clarify. One you compute the PSD there is correspondence between the sensors and the PSD traces. When the two PSD files are signal concatenated, that correspondence is broken, as the number of PSD traces is twice the number of sensors.

There are at two ways to zoom-in in the frequency axis:

  • By using the mouse scroll on the figure, the figure will zoom-in around the current freq marker (vertical red line)
  • In the Matlab Command Window: xlim([lowFreq, highFreq]);
  • @Luc, what do you think of an option like the suggested?
    We could add a checkbox in the Display tab:
    :ballot_box_with_check: Limit freq axis to freq range of analysis in specparam

FYI, this feature is now available in Brainstorm:


1 Like

That's amazing. Thanks a lot! :slight_smile: