[Mne_analysis] morph to volume source after apply_lcmv_epochs

Eric Larson larson.eric.d at gmail.com
Mon May 13 10:12:19 EDT 2019
Search archives:

        External Email - Use Caution        

`apply_lcmv_epochs` returns a list of STCs, not a single STC:

https://martinos.org/mne/stable/generated/mne.beamformer.apply_lcmv_epochs.html

So you probably want to iterate over them and morph each one, e.g.:

stcs_fsaverage = [morph.apply(stc) for stc in stcs]

Eric


On Mon, May 13, 2019 at 5:39 AM pooja prabhu <prabhuppooja at gmail.com> wrote:

>         External Email - Use Caution
>
> Hi list,
> I am creating volume source space of whole brain and then obtain stcs per
> single trial using apply_lcmv_epochs, and then morphing to fsaverage.
> Following is the snippet,
>
> stcs = apply_lcmv_epochs(epochs_hilb, filters,max_ori_out='signed')
> morph = mne.compute_source_morph(fwd['src'],
>                                  subject_from=subj,
> subject_to='fsaverage',
>                                  subjects_dir=subjects_dir)
> stc_fsaverage = morph.apply(stcs)
>
>
> whenever i am trying to apply the morphing [for example:
> morph.apply(stcs)], the code lands up with a error:
>
> AttributeError: 'list' object has no attribute 'subject'
>
> What could be the possible solution without changing the pipeline?
> It will be really helpful if list can help me!
> Thanks
>
> --
> Thank You
> Pooja Prabhu
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190513/ac37a26a/attachment-0001.html 


More information about the Mne_analysis mailing list