[Mne_analysis] Issues generating functional labels for RH

Natalie Klein neklein at andrew.cmu.edu
Fri Mar 4 09:46:26 EST 2016
Search archives:

I've recently run my own code based on this example and it works for both
hemispheres. Just guessing here, but what does stc_mean.vertices look like?
Does it have vertices in the correct hemisphere?

On Fri, Mar 4, 2016 at 9:37 AM, Cushing, Cody <CCUSHING1 at mgh.harvard.edu>
wrote:

> Hi all,
>
> I have been attempting to generate functional labels from source estimates
> for a data set as outlined here:
> https://martinos.org/mne/stable/auto_examples/inverse/plot_label_from_stc.html#sphx-glr-auto-examples-inverse-plot-label-from-stc-py
>
> This works beautifully for all the left hemisphere parcellations I try,
> but whenever I try a right hemisphere counter-part, the list of func_labels
> return empty, causing the below indexing error:
>
> ---------------------------------------------------------------------------
> IndexError                                Traceback (most recent call last)
> [] in <module>()
>      57
>      58 # take first as func_labels are ordered based on maximum values in
> stc
> ---> 59 func_label = func_labels[0]
>      60
>      61
>
> IndexError: list index out of range
>
> I have tried a couple of subjects and a variety of different parc labels.
> I have played with different time windows and eventually just opened it up
> to the whole trial (1s).  Every lh parc label works fine, but not a single
> rh parc I have tried returns any functional labels from this line of code:
>
> func_labels,_ = mne.stc_to_label(stc_mean_label, src=src, smooth=True,
>                                   subjects_dir=subjects_dir,
> connected=True)
>
> There is data in stc_mean_label.data.  I do not believe it could be due to
> a lack of right hemisphere activation because looking at the dSPM
> activations in mne_analyze shows just as much if not more activity in the
> right hemisphere for the parcellation pairs I've looked at (e.g.
> fusiform-rh and fusiform-lh).  The label is read fine (from the proper
> hemisphere), so I'm not quite sure what the problem is.  Is it possible
> that the empty return is a result of the module only looking in left
> hemisphere source space (where obviously no right hemisphere activation
> will be found)?
>
> Any help is greatly appreciated and I'm happy to supply whatever
> additional information.  The only changes I have made from the source code
> are supplying in my own paths for my personal data, but I am happy to
> provide my code upon request.
>
> Cheers,
> Cody
>
> _______________________________________________
> 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/20160304/5705be79/attachment-0001.html 


More information about the Mne_analysis mailing list