flatironinstitute / neurosift

Browser-based NWB visualization and DANDI exploration
Apache License 2.0
42 stars 6 forks source link

Support for ndx-events.Events and pynwb.behavior.BehavioralEpochs #168

Open pauladkisson opened 4 months ago

pauladkisson commented 4 months ago

See https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/7d1990d7-a714-406e-9cb2-1b8f4015869e/download/&dandisetId=000971&dandisetVersion=draft for events and https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/7d1990d7-a714-406e-9cb2-1b8f4015869e/download/&dandisetId=000971&dandisetVersion=draft for BehavioralEpochs

pauladkisson commented 3 months ago

Has there been any progress on this? Are there any blockers I can help with?

Also a note: ndx_events.Events is specifically from version 0.2.0

magland commented 3 months ago

Hi @pauladkisson I've been working on some other things so probably won't get to this for a little while. Do you know typescript/react? I can point you to the relevant code if you want to take a look.

pauladkisson commented 3 months ago

Do you know typescript/react? I can point you to the relevant code if you want to take a look.

Unfortunately I do not.

But thank you for the update.

magland commented 3 months ago

Could you describe what the views should look like?

For processing/behavior/behavioral_epochs/reward_port_intervals We have the IntervalSeries view: https://neurosift.app/?p=/nwb&url=https://api.dandiarchive.org/api/assets/7d1990d7-a714-406e-9cb2-1b8f4015869e/download/&dandisetId=000971&dandisetVersion=draft&tab=neurodata-item:/processing/behavior/behavioral_epochs/reward_port_intervals|IntervalSeries

pauladkisson commented 3 months ago

I would suggest an analog to matplotlib.pyplot.eventplot for the Events and filled region for the IntervalSeries.

For example, see my example notebook.