Skip to content

Commit 3971fe6

Browse files
committed
add explanation in docstring of add_ephys_units_to_nwb
1 parent a7b2abb commit 3971fe6

File tree

1 file changed

+11
-0
lines changed
  • element_array_ephys/export/nwb

1 file changed

+11
-0
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,17 @@ def add_ephys_units_to_nwb(
242242
"""
243243
Add spiking data to NWBFile.
244244
245+
In NWB, spiking data is stored in a Units table. The primary Units table is
246+
stored at /units. The spiking data in /units is generally the data used in
247+
downstream analysis. Only a single Units table can be stored at /units. Other Units
248+
tables can be stored in a ProcessingModule at /processing/ecephys/. Any number of
249+
Units tables can be stored in this ProcessingModule as long as they have different
250+
names, and these Units tables can store intermediate processing steps or
251+
alternative curations.
252+
253+
Use `primary_clustering_paramset_idx` to indicate which clustering is primary. All
254+
others will be stored in /processing/ecephys/.
255+
245256
ephys.CuratedClustering.Unit::unit -> units.id
246257
ephys.CuratedClustering.Unit::spike_times -> units["spike_times"]
247258
ephys.CuratedClustering.Unit::spike_depths -> units["spike_depths"]

0 commit comments

Comments
 (0)