[FieldTrip] ft_channelrepair ignoring missing channels, and destroying grad info on elekta data
Craig Richter
craiggrichter at gmail.com
Fri Apr 5 19:05:28 CEST 2019
Hey FTers,
It appears that when a data structure with missing channels is entered into ft_channelrepair, the function is using the input data to determine the sens structure. Since the data is missing channels, the sens structure is also missing these channels, and no interpolation occurs, but no errors are thrown. It states that it was successful. The work-around is to provide a cfg.layout, or cfg.grad to ft_channelrepair, such that ft_fetch_sens does not depend on the input data and returns with a full sensor array, but in this case, the grad info in the data is lost. This appears to be a bug, though http://www.fieldtriptoolbox.org/example/fixing_a_missing_sensor/ would indicate this is the intended behaviour. Perhaps an error, or warning message should be generated. Also, the grad info is largely lost after interpolation except for chanpos and chanori. Is there no way to interpolate all the grad info, such that it is not lost (i.e. tra, and the coil data)?
Any suggestions would be great!
Thanks!
C.
Best,
C.
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202
More information about the fieldtrip
mailing list