[FieldTrip] Brain-shift compensation Error

Ignasi Sols ignasi.sols at nyu.edu
Thu Nov 1 04:06:54 CET 2018


Many thanks, Arjen. I could solve the problem following your suggestion.
It was an issue with the format of the channel information, that was not
recognized by* ft_channelselection.*

Best,
Ignasi

On Wed, Oct 31, 2018 at 2:26 AM Arjen Stolk <a.stolk8 at gmail.com> wrote:

> Hi Ignasi,
>
> One can only guess based on that error msg alone. You might want to put a
> debug marker at line 156, check whether coord0 is truly empty, and then try
> to trace back to what's causing it to be empty (e.g., an empty elecpos
> field in your elec structure?).
>
> Arjen
>
> On Tue, Oct 30, 2018 at 12:04 PM Ignasi Sols <ignasi.sols at nyu.edu> wrote:
>
>> Dear all,
>> I'm following the method developed by Stolk et al (2018) to localize the
>> electrodes of ECoG data.
>> I'm getting this error on step 23 (Project the electrode grids to the
>> surface hull of the implanted hemisphere) and I can't solve it. Could
>> anyone help me with this?
>>
>> Thanks,
>> Ignasi
>>
>>
>> *using electrodes specified in the configuration*
>> *using warp algorithm described in Dykstra et al. 2012 Neuroimage PMID:
>> 22155045*
>> *creating electrode pairs based on electrode positions*
>> *Error using fmincon (line 241)*
>> *You must provide a non-empty starting*
>> *point.*
>> *Error in warp_dykstra2012 (line 156)*
>> *coord_snapped = fmincon(efun, coord0,*
>> *[], [], [], [], [], [], cfun,*
>> *options);*
>> *Error in ft_electroderealign (line*
>> *406)*
>> *    norm.elecpos =*
>>     warp_dykstra2012(cfg, elec,
>>     headshape);
>>
>> --
>> Ignasi Sols
>> Postdoctoral Fellow
>> Department of Psychology
>> New York University
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=Jx9wYcv0XnbORxGzfpEH0gqB1QyHZMaw-4hs4evzORE&e=>
>> https://doi.org/10.1371/journal.pcbi.1002202
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__doi.org_10.1371_journal.pcbi.1002202&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=9nWIVPM4Xf2SQkk3fMSCzXvE82mHFH-pnn67Fhygfyk&e=>
>>
> _______________________________________________
> fieldtrip mailing list
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=Jx9wYcv0XnbORxGzfpEH0gqB1QyHZMaw-4hs4evzORE&e=
>
> https://urldefense.proofpoint.com/v2/url?u=https-3A__doi.org_10.1371_journal.pcbi.1002202&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=9nWIVPM4Xf2SQkk3fMSCzXvE82mHFH-pnn67Fhygfyk&e=
>


-- 
Ignasi Sols
Postdoctoral Fellow
Department of Psychology
New York University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20181031/b3a660ab/attachment-0001.html>


More information about the fieldtrip mailing list