[Mne_analysis] Corrmap indices

Alexandre Gramfort alexandre.gramfort at inria.fr
Wed Feb 28 15:16:31 EST 2018
Search archives:

unfortunately the corrmap function does not return such indices but just
figures.

I invite you to read the code here:

https://github.com/mne-tools/mne-python/blob/master/mne/
preprocessing/ica.py#L2313

and eventually copy the lines you need for your application.

HTH
Alex

On Wed, Feb 28, 2018 at 4:23 PM, victor ferat <victor.ferat at live.fr> wrote:

> Dear List,
>
>
>
> I am currently using MNE for a neurofeedback application. I would like to
> use ICA to reduce artefact in real time. Since I do not have any EOG/ECG
> electrode, I would like to use the corrmap method to detect artefact
> components.
>
> I followed the workflow explain in the example:
>
>
>
> *icas** = [reference_ica] + [ica]                             *
>
> *template** = (0, eog_inds[0])                                                  *
>
> *fig_template, fig_detected = corrmap
> <https://www.martinos.org/mne/stable/generated/mne.preprocessing.corrmap.html#mne.preprocessing.corrmap>(icas,
> template=template, label="blinks",*
>
> *                                     show=True, threshold=.8,
> ch_type='mag' )   *
>
>
>
> How can I obtain the number ( Ica number and Component indice ) of
>  detected similar ICAs in order to exclude them from my signal ?
>
> Next I would like to do something like
>
>
>
> *ica**.**exclude**.**extend**(**component indice**)*
>
> *raw_copy** = raw.copy()*
>
> *ica**.**apply**(**raw_copy**)*
>
>
>
>
>
> Any help to solve this would be appreciated,
>
>
>
> Victor,
>
> Neurosicence M2 Student, France
>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180228/f7bac26f/attachment.html 


More information about the Mne_analysis mailing list