Skip to content

Commit f2ac602

Browse files
authored
Merge pull request #23 from ttngu207/main
added comments to tables
2 parents 6fcc31a + f05e1fe commit f2ac602

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

element_array_ephys/ephys.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ class AcquisitionSoftware(dj.Lookup):
9797

9898

9999
@schema
100-
class ProbeInsertion(dj.Manual): # (acute)
100+
class ProbeInsertion(dj.Manual):
101101
definition = """
102+
# Probe insertion implanted into an animal for a given session.
102103
-> Session
103104
insertion_number: tinyint unsigned
104105
---
@@ -109,6 +110,7 @@ class ProbeInsertion(dj.Manual): # (acute)
109110
@schema
110111
class InsertionLocation(dj.Manual):
111112
definition = """
113+
# Brain Location of a given probe insertion.
112114
-> ProbeInsertion
113115
---
114116
-> SkullReference
@@ -124,6 +126,7 @@ class InsertionLocation(dj.Manual):
124126
@schema
125127
class EphysRecording(dj.Imported):
126128
definition = """
129+
# Ephys recording from a probe insertion for a given session.
127130
-> ProbeInsertion
128131
---
129132
-> probe.ElectrodeConfig
@@ -133,6 +136,7 @@ class EphysRecording(dj.Imported):
133136

134137
class EphysFile(dj.Part):
135138
definition = """
139+
# Paths of files of a given EphysRecording round.
136140
-> master
137141
file_path: varchar(255) # filepath relative to root data directory
138142
"""
@@ -233,6 +237,7 @@ def make(self, key):
233237
@schema
234238
class LFP(dj.Imported):
235239
definition = """
240+
# Acquired local field potential (LFP) from a given Ephys recording.
236241
-> EphysRecording
237242
---
238243
lfp_sampling_rate: float # (Hz)
@@ -325,6 +330,7 @@ def make(self, key):
325330
@schema
326331
class ClusteringMethod(dj.Lookup):
327332
definition = """
333+
# Method for clustering
328334
clustering_method: varchar(16)
329335
---
330336
clustering_method_desc: varchar(1000)
@@ -337,6 +343,7 @@ class ClusteringMethod(dj.Lookup):
337343
@schema
338344
class ClusteringParamSet(dj.Lookup):
339345
definition = """
346+
# Parameter set to be used in a clustering procedure
340347
paramset_idx: smallint
341348
---
342349
-> ClusteringMethod
@@ -387,6 +394,7 @@ class ClusterQualityLabel(dj.Lookup):
387394
@schema
388395
class ClusteringTask(dj.Manual):
389396
definition = """
397+
# Manual table for defining a clustering task ready to be run
390398
-> EphysRecording
391399
-> ClusteringParamSet
392400
---
@@ -404,6 +412,7 @@ class Clustering(dj.Imported):
404412
+ If `task_mode == "load"`: verify output
405413
"""
406414
definition = """
415+
# Clustering Procedure
407416
-> ClusteringTask
408417
---
409418
clustering_time: datetime # time of generation of this set of clustering results
@@ -430,6 +439,7 @@ def make(self, key):
430439
@schema
431440
class Curation(dj.Manual):
432441
definition = """
442+
# Manual curation procedure
433443
-> Clustering
434444
curation_id: int
435445
---
@@ -465,12 +475,14 @@ def create1_from_clustering_task(self, key, curation_note=''):
465475
@schema
466476
class CuratedClustering(dj.Imported):
467477
definition = """
478+
# Clustering results of a curation.
468479
-> Curation
469480
"""
470481

471482
class Unit(dj.Part):
472483
definition = """
473484
-> master
485+
# Properties of a given unit from a round of clustering (and curation)
474486
unit: int
475487
---
476488
-> probe.ElectrodeConfig.Electrode # electrode with highest waveform amplitude for this unit
@@ -535,19 +547,22 @@ def make(self, key):
535547
@schema
536548
class WaveformSet(dj.Imported):
537549
definition = """
550+
# A set of spike waveforms for units out of a given CuratedClustering
538551
-> CuratedClustering
539552
"""
540553

541554
class PeakWaveform(dj.Part):
542555
definition = """
556+
# Mean waveform across spikes for a given unit at its representative electrode
543557
-> master
544558
-> CuratedClustering.Unit
545559
---
546-
peak_electrode_waveform: longblob # (uV) mean waveform for this unit's peak electrode
560+
peak_electrode_waveform: longblob # (uV) mean waveform for a given unit at its representative electrode
547561
"""
548562

549563
class Waveform(dj.Part):
550564
definition = """
565+
# Spike waveforms and their mean across spikes for the given unit
551566
-> master
552567
-> CuratedClustering.Unit
553568
-> probe.ElectrodeConfig.Electrode

element_array_ephys/probe.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def activate(schema_name, *, create_schema=True, create_tables=True):
2626
@schema
2727
class ProbeType(dj.Lookup):
2828
definition = """
29+
# Type of probe, with specific electrodes geometry defined
2930
probe_type: varchar(32) # e.g. neuropixels_1.0
3031
"""
3132

@@ -136,7 +137,8 @@ def build_electrodes(site_count, col_spacing, row_spacing,
136137

137138
@schema
138139
class Probe(dj.Lookup):
139-
definition = """ # represent a physical probe
140+
definition = """
141+
# Represent a physical probe with unique identification
140142
probe: varchar(32) # unique identifier for this model of probe (e.g. serial number)
141143
---
142144
-> ProbeType
@@ -147,6 +149,7 @@ class Probe(dj.Lookup):
147149
@schema
148150
class ElectrodeConfig(dj.Lookup):
149151
definition = """
152+
# The electrode configuration setting on a given probe
150153
electrode_config_hash: uuid
151154
---
152155
-> ProbeType

0 commit comments

Comments
 (0)