This capsule is designed to automatically label spike sorted units for the AIND pipeline.
It uses pre-trained models to classify units as:
- noise (non-neuronal)
- MUA (multi-unit activity)
- SUA (single-unit activity)
The model was developed by the Musall's Group at the Forschungszentrum Jülich, Germany.
The model files are in the code/unit_classifier_models_v1.0
folder.
metrics.json
: list of required metrics for the modelsnoise-neuron_classifier.pkl
: thescikit-learn
model for noise VS neuron classificationsua-mua_classifier.pkl
: thescikit-learn
model for sua VS mua classification
The data/
folder must include the output of the aind-ephys-postprocessing, including the postprocessed_{recording_name}
folder.
The code/run
script takes no arguments.
The output of this capsule is the following:
results/unit_classifier_{recording_name}.csv
file, containing thedecoder_labels
anddecoder_probability
for each unitresults/data_process_unit_classifier_{recording_name}.json
file, a JSON file containing aDataProcess
object from the aind-data-schema package.