@@ -641,31 +641,33 @@ def yield_unit_waveforms():
641
641
642
642
# ----------- Quality Control ----------
643
643
644
+
644
645
@schema
645
- class ClusterQualityMetrics (dj .Imported ):
646
- definition = """
647
- -> CuratedClustering.Unit
648
- ---
649
- amp: float
650
- snr: float
651
- isi_violation: float
652
- firing_rate: float
653
-
654
- presence_ratio: float # Fraction of epoch in which spikes are present
655
- amplitude_cutoff: float # Estimate of miss rate based on amplitude histogram
656
- isolation_distance=null: float # Distance to nearest cluster in Mahalanobis space
657
- l_ratio=null: float #
658
- d_prime=null: float # Classification accuracy based on LDA
659
- nn_hit_rate=null: float #
660
- nn_miss_rate=null: float
661
- silhouette_score=null: float # Standard metric for cluster overlap
662
- max_drift=null: float # Maximum change in spike depth throughout recording
663
- cumulative_drift=null: float # Cumulative change in spike depth throughout recording
646
+ class QualityControl (dj .Imported ):
647
+ definition = """ Quality control metrics for a set of CuratedClustering
648
+ -> CuratedClustering
664
649
"""
665
650
666
- @property
667
- def key_source (self ):
668
- return Clustering
651
+ class ClusterQualityMetrics (dj .Part ):
652
+ definition = """ # Quality metrics for each cluster
653
+ -> master
654
+ -> CuratedClustering.Unit
655
+ ---
656
+ amp: float
657
+ snr: float
658
+ isi_violation: float
659
+ firing_rate: float
660
+ presence_ratio: float # Fraction of epoch in which spikes are present
661
+ amplitude_cutoff: float # Estimate of miss rate based on amplitude histogram
662
+ isolation_distance=null: float # Distance to nearest cluster in Mahalanobis space
663
+ l_ratio=null: float #
664
+ d_prime=null: float # Classification accuracy based on LDA
665
+ nn_hit_rate=null: float #
666
+ nn_miss_rate=null: float
667
+ silhouette_score=null: float # Standard metric for cluster overlap
668
+ max_drift=null: float # Maximum change in spike depth throughout recording
669
+ cumulative_drift=null: float # Cumulative change in spike depth throughout recording
670
+ """
669
671
670
672
def make (self , key ):
671
673
pass
0 commit comments