[FieldTrip] FiledTrip - Python compatibility?

Robert Oostenveld r.oostenveld at donders.ru.nl
Wed Apr 19 16:02:04 CEST 2017


Hi Greydon,

Let me also CC this to the FieldTrip list, as I know there are more people thinking about this.

Although I am using Python for other projects (e.g. EEGsynth <http://www.eegsynth.org/> , we don’t have concrete plans for improving the compatibility between FieldTrip and Python, or to port parts of FieldTrip over to Python. Personally (*) I also feel that Python is not the optimal language and/or data analysis environment for the goals of the FieldTrip project. It would for sure attract more computer scientists and people that like programming, but for (non-technical) cognitive neuroscientists and people that are just able to do scripting I suspect it to become more like an application rather than a toolbox where you can look under the hood and mix it in with ones own code. 

(*) Other people might feel different of course

MNE-Python is of course a project that I am following. The occasional improvements on the FieldTrip side are primarily focussed on making the transition between MNE-Python and FieldTrip more smooth (both ways).

A complicating feature in Python is that data handling is different than in MATLAB, where we only use native built-in data structures. Saving data from Python requires a well-established file format (which does not exist) or a stable object definition (which is hard in science). Also for (open access) data sharing I hope that we can do more work on representing analysis results in a format that allows them to be reused in another pipeline. That is for exampel something that we attempted in the MEG section of the human connectome project, where the use cifti files (i.e. nifti-2 with a header extension), text files and - where needed - matlab files in a format that works well with Python. 

If you have ideas for improving the interoperability, you are welcome to contribute <http://fieldtriptoolbox.org/contribute>.

best
Robert

PS Thanks for the nice remarks about FieldTrip!


> On 16 Apr 2017, at 18:17, Greydon Gilmore <greydon.gilmore at gmail.com> wrote:
> 
> Hi Robert,
> 
> I recently stumbled across FieldTrip and I have been in love ever since. I love that I can incorporate the functions into my own scripts. 
> 
> I am curious o know if there is any work being done to make FieldTrip compatible with Python? 
> 
> Thank you for all the work your team put into FieldTrip, it's streamlined my workflow greatly.
> 
> Greydon
> 
> -- 
> Greydon Gilmore, B.Sc., M.Sc. (Neuroscience) 
> Ph.D. candidate in Biomedical Engineering
> Movement Disorder Centre, University Hospital
> University of Western Ontario
> 339 Windermere Road, BLL-250
> 519-685-8500 ext. 76708
> London, Ontario
> Canada, N6A 5A5

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170419/d0cda5a0/attachment.html>


More information about the fieldtrip mailing list