[Mne_analysis] Transform stc from head to MRI coordinate system?

Jon Houck jhouck at unm.edu
Wed May 30 17:56:56 EDT 2018
Search archives:

        External Email - Use Caution        

Hi Lori,

Are you definitely using the volume source space to compute the forward
solution and inverse operator?  There's not a separate '_volume_' function
for the forward solution or inverse inverse operator, so if you're also
setting up the surface models in the same script it would be very easy to
inadvertently use the surface model or even overwrite the volume output
files (speaking from experience...).  Here's what mine currently looks like:

head = setup_volume_source_space(subject, mri=fname_t1, bem=fname_bem,
mindist=mindist,
                         subjects_dir=subjects_dir, add_interpolator=True)
mne.write_source_spaces(fname_volsrc, head, overwrite=True)

forward = mne.make_forward_solution(fname_raw, fname_trans, head, fname_bem,
                    meg=True, eeg=False, mindist=mindist,
                    n_jobs=8)
mne.write_forward_solution(fname_volfwd, forward, overwrite=True)

inverse_operator = make_inverse_operator(raw.info, forward, noise_cov,
loose=1, depth=None, fixed=False)
write_inverse_operator(fname_volinv, inverse_operator, verbose=True)

Jon



On Wed, May 30, 2018 at 3:15 PM, Lori Sanfratello <lsanfratello at mrn.org>
wrote:

>         External Email - Use Caution
>
> Unfortunately, it seems to revert back to head coordinates at the fwd
> step.  Any other possibilities?
> Thanks,
> Lori
>
> On Tue, May 29, 2018 at 1:45 PM, Lori Sanfratello <lsanfratello at mrn.org>
> wrote:
> > Thanks Eric! I will give it a try.
> > Best,
> > Lori
> >
> > On Tue, May 29, 2018 at 10:12 AM, Eric Larson <larson.eric.d at gmail.com>
> wrote:
> >>         External Email - Use Caution
> >>
> >> I think that if you constructed your volume source space with the `mri`
> >> argument and `add_interpolator=True`, then you should be able to do
> >> `stc.save_as_volume(...)` or `as_volume` that will already properly be
> in
> >> the same MRI coordinates as the `mri` you originally supplied. Does that
> >> help?
> >>
> >> Eric
> >>
> >>
> >> On Mon, May 28, 2018 at 5:42 PM, Lori Sanfratello <lsanfratello at mrn.org
> >
> >> wrote:
> >>>
> >>>         External Email - Use Caution
> >>>
> >>> Hi, I would like my volumetric source estimate to be in MRI
> >>> coordinates, is there a way to easily transform my stc, before I save
> >>> it into nifti?
> >>> Thank you for any advice!
> >>> Best,
> >>> Lori
> >>> --
> >>> Dr. L. Sanfratello, PhD
> >>> Assistant Professor of Trans. Neuroscience
> >>> The Mind Research Network,
> >>> 1101 Yale Blvd NE
> >>> Albuquerque, NM 87106
> >>> 505 272-5557
> >>>
> >>> _______________________________________________
> >>> 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.
> >>>
> >>
> >>
> >> _______________________________________________
> >> 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.
> >>
> >
> >
> >
> > --
> > Dr. L. Sanfratello, PhD
> > Assistant Professor of Trans. Neuroscience
> > The Mind Research Network,
> > 1101 Yale Blvd NE
> > Albuquerque, NM 87106
> > 505 272-5557
>
>
>
> --
> Dr. L. Sanfratello, PhD
> Assistant Professor of Trans. Neuroscience
> The Mind Research Network,
> 1101 Yale Blvd NE
> Albuquerque, NM 87106
> 505 272-5557
>
> _______________________________________________
> 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/20180530/b3236ca3/attachment-0001.html 


More information about the Mne_analysis mailing list