NeuralEnsemble / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://neo.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
312 stars 243 forks source link

[NWBIO] Write AnalogSignals as ElectricalSeries #1207

Open JuliaSprenger opened 1 year ago

JuliaSprenger commented 1 year ago

Is your feature request related to a problem? Please describe. Currently only icephys series types or TimeSeries are supported when writing nwb files. However, some analysis tools, e.g. spikeinterface are loading data only from ElectricalSeries, a subclass of TimeSeries. As far as I can see the main difference is the linking to electrodes, which already exists for icepyhs series types.

Describe the solution you'd like neo.AnalogSignals with an annotation nwb_neurodata_type='ElectricalSeries' should be saved to an pynwb.ecephys.ElectricalSeries object

JuliaSprenger commented 1 year ago

@legouee @apdavison What do you think?

apdavison commented 1 year ago

Yes, I'll take a look at this.