[Mne_analysis] Coordinates of dipoles in fwd['sol']['data']?
Karin Westin
karin.westin85 at gmail.com
Fri May 7 08:49:18 EDT 2021
External Email - Use Caution
Ok thanks!
Skickat från min iPhone
> 7 maj 2021 kl. 13:46 skrev Alexandre Gramfort <alexandre.gramfort at inria.fr>:
>
>
> External Email - Use Caution
>
> yes it's like this
>
> Alex
>
>> On Fri, May 7, 2021 at 11:49 AM Karin Westin <karin.westin85 at gmail.com> wrote:
>> External Email - Use Caution
>>
>> Just one follow up question... how is the free orientation forward matrix arranged, ie do columns 1-3 include three orientations for dipole 1, 2-6 for dipole 2 and so on?
>>
>> Karin
>>
>> Den tors 6 maj 2021 kl 13:17 skrev Eric Larson <larson.eric.d at gmail.com>:
>>> External Email - Use Caution
>>>
>>> The forward is free orientation, i.e., 3 directions per location. 16382 * 2 * 3 = 98292.
>>>
>>> I'm guessing you actually have (98292 - 98268) / 3 = 8 fewer locations in the left hemisphere (i.e., 16374) than in the right (16382)?
>>>
>>> Eric
>>>
>>>
>>>> On Thu, May 6, 2021 at 6:05 AM Karin Westin <karin.westin85 at gmail.com> wrote:
>>>> External Email - Use Caution
>>>>
>>>> But 16382 dipoles per hemisphere don’t add up to the 98267 dipoles of the forward matrix?
>>>>
>>>> Skickat från min iPhone
>>>>
>>>>>> 6 maj 2021 kl. 10:58 skrev Karin Westin <karin.westin85 at gmail.com>:
>>>>>>
>>>>> Thank you for your answer!
>>>>>
>>>>> But from that I get
>>>>> np.shape(right_coords) (16382, 3) and
>>>>> np.shape(fwd['sol']['data']) (130, 98268)
>>>>>
>>>>> so I still don't understand how to extract coordinates of dipole in column j of fwd['sol']['data']?
>>>>>
>>>>> Thanks in advance,
>>>>> Karin
>>>>>
>>>>> Den tors 6 maj 2021 kl 07:54 skrev VERRIER Clement <clement.VERRIER at univ-amu.fr>:
>>>>>> External Email - Use Caution
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> You should be able to extract the dipoles coordinates of each hemisphere using the following (works with version 0.22.1):
>>>>>>
>>>>>> >>> left_hemi, right_hemi = fwd["src"]
>>>>>> >>> left_coords, right_coords = [hemi["rr"][hemi["vertno"]] for hemi in [left_hemi, right_hemi]]
>>>>>>
>>>>>> If you want all coordinates (i.e. those associated with the nondecimated mesh), you just have to use remove the extra hemi["vertno"] slicing.
>>>>>>
>>>>>> Hope it helps!
>>>>>>
>>>>>> Best,
>>>>>> Clément
>>>>>>
>>>>>>
>>>>>>> On 6 May 2021, at 12:54 AM, Karin Westin <karin.westin85 at gmail.com> wrote:
>>>>>>>
>>>>>>> External Email - Use Caution
>>>>>>>
>>>>>>>
>>>>>>> Hi all!
>>>>>>>
>>>>>>> As I understood it, the matrix fwd['sol']['data'] represents sensors x dipoles. How can one extract the coordinates of these dipoles?
>>>>>>>
>>>>>>> Thanks in advance,
>>>>>>> Karin
>>>>>>> _______________________________________________
>>>>>>> Mne_analysis mailing list
>>>>>>> Mne_analysis at nmr.mgh.harvard.edu
>>>>>>> MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1v-5IW-boEakpAvAJIruwW7ohQKZzEc75Uj2Hi6ifx2BSXfbPuGk0KicI-C1hr0LDkPhOmQUMMRbm8j4rkws2rUwN0yFLwKdepIMNfnwi7GAI_0xil5sOYlq7rqe4brLpjrB2dNR6oADnSKTNOVRtiC_lkv4Tfzly5kBLp6ALfgl9dg8_IgJidEQukLTFY5cbrQc1ydb9IvEHiNaXIOEZGthwc1BUCpM6srganmFMmPvb_ODVC-5JAHkCX1_p7EO1iStl8DfTGjcFg_lQMrHKiA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mne_analysis mailing list
>>>>>> Mne_analysis at nmr.mgh.harvard.edu
>>>>>> MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1v-5IW-boEakpAvAJIruwW7ohQKZzEc75Uj2Hi6ifx2BSXfbPuGk0KicI-C1hr0LDkPhOmQUMMRbm8j4rkws2rUwN0yFLwKdepIMNfnwi7GAI_0xil5sOYlq7rqe4brLpjrB2dNR6oADnSKTNOVRtiC_lkv4Tfzly5kBLp6ALfgl9dg8_IgJidEQukLTFY5cbrQc1ydb9IvEHiNaXIOEZGthwc1BUCpM6srganmFMmPvb_ODVC-5JAHkCX1_p7EO1iStl8DfTGjcFg_lQMrHKiA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
>>>> _______________________________________________
>>>> Mne_analysis mailing list
>>>> Mne_analysis at nmr.mgh.harvard.edu
>>>> MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1v-5IW-boEakpAvAJIruwW7ohQKZzEc75Uj2Hi6ifx2BSXfbPuGk0KicI-C1hr0LDkPhOmQUMMRbm8j4rkws2rUwN0yFLwKdepIMNfnwi7GAI_0xil5sOYlq7rqe4brLpjrB2dNR6oADnSKTNOVRtiC_lkv4Tfzly5kBLp6ALfgl9dg8_IgJidEQukLTFY5cbrQc1ydb9IvEHiNaXIOEZGthwc1BUCpM6srganmFMmPvb_ODVC-5JAHkCX1_p7EO1iStl8DfTGjcFg_lQMrHKiA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
>>> _______________________________________________
>>> Mne_analysis mailing list
>>> Mne_analysis at nmr.mgh.harvard.edu
>>> MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1v-5IW-boEakpAvAJIruwW7ohQKZzEc75Uj2Hi6ifx2BSXfbPuGk0KicI-C1hr0LDkPhOmQUMMRbm8j4rkws2rUwN0yFLwKdepIMNfnwi7GAI_0xil5sOYlq7rqe4brLpjrB2dNR6oADnSKTNOVRtiC_lkv4Tfzly5kBLp6ALfgl9dg8_IgJidEQukLTFY5cbrQc1ydb9IvEHiNaXIOEZGthwc1BUCpM6srganmFMmPvb_ODVC-5JAHkCX1_p7EO1iStl8DfTGjcFg_lQMrHKiA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/1v-5IW-boEakpAvAJIruwW7ohQKZzEc75Uj2Hi6ifx2BSXfbPuGk0KicI-C1hr0LDkPhOmQUMMRbm8j4rkws2rUwN0yFLwKdepIMNfnwi7GAI_0xil5sOYlq7rqe4brLpjrB2dNR6oADnSKTNOVRtiC_lkv4Tfzly5kBLp6ALfgl9dg8_IgJidEQukLTFY5cbrQc1ydb9IvEHiNaXIOEZGthwc1BUCpM6srganmFMmPvb_ODVC-5JAHkCX1_p7EO1iStl8DfTGjcFg_lQMrHKiA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://secure-web.cisco.com/1v-5IW-boEakpAvAJIruwW7ohQKZzEc75Uj2Hi6ifx2BSXfbPuGk0KicI-C1hr0LDkPhOmQUMMRbm8j4rkws2rUwN0yFLwKdepIMNfnwi7GAI_0xil5sOYlq7rqe4brLpjrB2dNR6oADnSKTNOVRtiC_lkv4Tfzly5kBLp6ALfgl9dg8_IgJidEQukLTFY5cbrQc1ydb9IvEHiNaXIOEZGthwc1BUCpM6srganmFMmPvb_ODVC-5JAHkCX1_p7EO1iStl8DfTGjcFg_lQMrHKiA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20210507/5bbfe8ba/attachment-0001.html
More information about the Mne_analysis
mailing list