Reconstruct ICA components in Matlab command window

Hi,
I computed my data ICA components using brainstorm. Now, I want to have time series of components in Matlab.

How can I do that? I think I should save active projectors by using option in “Select active projectors”, then apply pinv(Projector.Components)*data. Is it a correct manner?

Best,
Talesh

You build the projectors with function process_ssp2(‘BuildProjector’, ListProj, 1):

ListProj: Get it from the channel file (field .Projector).
This creates a Projector matrix, that you can then simply multiply with the data. Example:

Alternatively, you can display the IC time series from the window “Select active projectors”, then export the displayed time series (unselect the [DC] button in the Record tab): right-click on the figure > Snapshot > Export to Matlab.

Dear Francois,

I can plot the ICA component in brainstorm from the window “Select active projectors”, but I also want to see every component PSD. How can I do that?

You can try the following:

  1. Open the recordings, from the “Select active projectors”, display the IC time series
  2. In the Record tab, click on the drop-down menu with the montage list > Edit montage
  3. Duplicate the montage “ICA components[tmp]”, rename it into something like “IC” (the important is to remove the [tmp] tag from the name)
  4. Import the recordings in the database (right-click on the Link to raw file > Import in database), possibly as a long continuous segment
  5. Select the imported file in Process1, run the process Standardize > Apply montage > “IC”
  6. You should be able to compute the PSD from this imported file
  7. If you need to review this as a continuous file, right-click on it > Review as raw

Thanks so much dear Francois, your suggestions have always been useful for me. But, when I process the step 6, the error "No sensors are selected " occurred. My data is recorded with 256 channel and my components are 251.

The warm regards,
Talesh

I agree, there should be a button for this. It “just has to be done”. I added this to our infinite to-do list: "Save IC time series in database "
http://neuroimage.usc.edu/brainstorm/Next#Processes

About your error: you must configure your subjects with the option “Default channel : No, Use one channel file per acquisition run”. Then the process “Apply montage” should create a new channel file, with a new type of sensors “MONTAGE” (right-click on the channel file > Edit, to verify the type of the channels). You can change it if you want.
When computing the PSD, you must indicate the type of the channels you want to process (“MONTAGE”), or leave the option “Sensor names or types” empty