[Mne_analysis] Coordinates of dipoles in fwd['sol']['data']?
Karin Westin
karin.westin85 at gmail.com
Thu May 6 06:02:26 EDT 2021
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
>>> https://secure-web.cisco.com/1ZxBopMXFtg6jO_yys0ksvIolWe3JiNBFr7yPVdfXPr9epcMw83qnKUNQX30-OUMQHVKAFdslBnXOCBaZnGGuH7S0mtP6Ixk0f4dY-C6o1Ul6kVaz6xNw0_pznqFGu7y3OIfBfIdbNVgm4SXHUtwxg2OmWzvBSAz55vC88vlanHOWLVXrO-Wxxzt7-BN7NuHaPW2Iidy-X1dK6OGZVnRrIgIhrsdv9bfO5Qe2T8ZN8Pl_1hCsuYeN7qbldrXWu1dn1R0iQfXYcMcRTuYqyNxFCA/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/1ZxBopMXFtg6jO_yys0ksvIolWe3JiNBFr7yPVdfXPr9epcMw83qnKUNQX30-OUMQHVKAFdslBnXOCBaZnGGuH7S0mtP6Ixk0f4dY-C6o1Ul6kVaz6xNw0_pznqFGu7y3OIfBfIdbNVgm4SXHUtwxg2OmWzvBSAz55vC88vlanHOWLVXrO-Wxxzt7-BN7NuHaPW2Iidy-X1dK6OGZVnRrIgIhrsdv9bfO5Qe2T8ZN8Pl_1hCsuYeN7qbldrXWu1dn1R0iQfXYcMcRTuYqyNxFCA/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/20210506/0a9e9773/attachment-0001.html
More information about the Mne_analysis
mailing list