Crudely converting OpenEphys to Neurodata Without Borders
Our lab is toying with the idea of moving our data to Neurodata Without Borders. Turns out it wonβt be such a monumental task after all. I figured someone would have written a guide for converting the old OpenEphys .continuous
style of data, but I couldnβt find any. Behold, converting my labβs cryptic metadata and OE data to NWB.
Links
The Outcomeβ¦
Before we wade into some code, let us fortify ourselves with the satisfaction of our endpoint.
/root
βββ acquisition
βΒ Β βββ CH5
βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βββ starting_time
βΒ Β βββ CH6
βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βββ starting_time
βΒ Β βββ CH7
βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βββ starting_time
βΒ Β βββ CH8
βΒ Β βββ data
βΒ Β βββ starting_time
βββ analysis
βββ file_create_date
βββ general
βΒ Β βββ experimenter
βΒ Β βββ institution
βΒ Β βββ lab
βΒ Β βββ pharmacology
βΒ Β βββ subject
βΒ Β βββ date_of_birth
βΒ Β βββ genotype
βΒ Β βββ sex
βΒ Β βββ species
βΒ Β βββ subject_id
βββ identifier
βββ intervals
βΒ Β βββ trials
βΒ Β βββ LaserOnOff
βΒ Β βββ amplitude
βΒ Β βββ duration
βΒ Β βββ gapdelay
βΒ Β βββ gapdur
βΒ Β βββ id
βΒ Β βββ laser
βΒ Β βββ loop_flg
βΒ Β βββ next
βΒ Β βββ pulseamp
βΒ Β βββ pulsedur
βΒ Β βββ ramp
βΒ Β βββ seamless
βΒ Β βββ soa
βΒ Β βββ soaflag
βΒ Β βββ start_time
βΒ Β βββ stop_time
βΒ Β βββ type
βββ processing
βββ session_description
βββ session_start_time
βββ stimulus
βΒ Β βββ presentation
βΒ Β βββ templates
βββ timestamps_reference_time
βββ units
βββ channel
βββ cluster
βββ id
βββ spike_times
βββ spike_times_index
βββ tetrode
11 directories, 50 files
ooo aaaaahhhhβ¦
so without further ado.