{'table_name': '_s_i_clustering',
'key_hash': '76049255a37f5196ee7642ffd724cd3c',
'status': 'error',
'key': {'organoid_id': 'O09',
'experiment_start_time': datetime.datetime(2023, 5, 3, 17, 33),
'insertion_number': 0,
'start_time': datetime.datetime(2023, 5, 11, 4, 22),
'end_time': datetime.datetime(2023, 5, 11, 4, 27),
'paramset_idx': 27},
'error_message': 'SpikeSortingError: Spike sorting in docker failed with the following error:\nTraceback (most recent call last):\n File "/mnt/efs/works/org/utah/proj/organoids/outbox/O09-12_raw/202305110422_202305110427/O09/kilosort3_27/kilosort3/in_container_sorter_script.py", line 23, in <module>\n sorting = run_sorter_local(\n File "/root/.local/lib/python3.9/site-packages/spikeinterface/sorters/runsorter.py", line 290, in run_sorter_local\n SorterClass.set_params_to_folder(recording, folder, sorter_params, verbose)\n File "/root/.local/lib/python3.9/site-packages/spikeinterface/sorters/basesorter.py", line 192, in set_params_to_folder\n raise ValueError(error_msg)\nValueError: Invalid parameters: [\'n_pcs\', \'do_CAR\'] \nValid parameters are: dict_keys([\'detect_threshold\', \'projection_threshold\', \'preclust_threshold\', \'whiteningRange\', \'car\', \'minFR\', \'minfr_goodchannels\', \'nblocks\', \'sig\', \'freq_min\', \'sigmaMask\', \'lam\', \'nPCs\', \'ntbuff\', \'nfilt_factor\', \'do_correction\', \'NT\', \'AUCsplit\', \'wave_length\', \'keep_good_only\', \'skip_kilosort_preprocessing\', \'scaleproc\', \'save_rez_to_mat\', \'delete_tmp_files\', \'delete_recording_dat\', \'pool_engine\', \'n_jobs\', \'chunk_duration\', \'progress_bar\', \'mp_context\', \'max_threads_per_worker\'])\n',
'error_stack': 'Traceback (most recent call last):\n File "/opt/conda/lib/python3.10/site-packages/datajoint/autopopulate.py", line 397, in _populate1\n make(dict(key), **(make_kwargs or {}))\n File "/opt/conda/lib/python3.10/site-packages/element_array_ephys/spike_sorting/si_spike_sorting.py", line 278, in make\n _run_sorter()\n File "/opt/conda/lib/python3.10/site-packages/element_interface/utils.py", line 235, in wrapped\n results = func(*args, **kwargs)\n File "/opt/conda/lib/python3.10/site-packages/element_array_ephys/spike_sorting/si_spike_sorting.py", line 264, in _run_sorter\n si_sorting: si.sorters.BaseSorter = si.sorters.run_sorter(\n File "/opt/conda/lib/python3.10/site-packages/spikeinterface/sorters/runsorter.py", line 196, in run_sorter\n return run_sorter_container(\n File "/opt/conda/lib/python3.10/site-packages/spikeinterface/sorters/runsorter.py", line 673, in run_sorter_container\n raise SpikeSortingError(f"Spike sorting in {mode} failed with the following error:\\n{run_sorter_output}")\nspikeinterface.sorters.utils.misc.SpikeSortingError: Spike sorting in docker failed with the following error:\nTraceback (most recent call last):\n File "/mnt/efs/works/org/utah/proj/organoids/outbox/O09-12_raw/202305110422_202305110427/O09/kilosort3_27/kilosort3/in_container_sorter_script.py", line 23, in <module>\n sorting = run_sorter_local(\n File "/root/.local/lib/python3.9/site-packages/spikeinterface/sorters/runsorter.py", line 290, in run_sorter_local\n SorterClass.set_params_to_folder(recording, folder, sorter_params, verbose)\n File "/root/.local/lib/python3.9/site-packages/spikeinterface/sorters/basesorter.py", line 192, in set_params_to_folder\n raise ValueError(error_msg)\nValueError: Invalid parameters: [\'n_pcs\', \'do_CAR\'] \nValid parameters are: dict_keys([\'detect_threshold\', \'projection_threshold\', \'preclust_threshold\', \'whiteningRange\', \'car\', \'minFR\', \'minfr_goodchannels\', \'nblocks\', \'sig\', \'freq_min\', \'sigmaMask\', \'lam\', \'nPCs\', \'ntbuff\', \'nfilt_factor\', \'do_correction\', \'NT\', \'AUCsplit\', \'wave_length\', \'keep_good_only\', \'skip_kilosort_preprocessing\', \'scaleproc\', \'save_rez_to_mat\', \'delete_tmp_files\', \'delete_recording_dat\', \'pool_engine\', \'n_jobs\', \'chunk_duration\', \'progress_bar\', \'mp_context\', \'max_threads_per_worker\'])\n\n',
'timestamp': datetime.datetime(2025, 7, 29, 11, 57, 36)}
{'paramset_idx': 27,
'clustering_method': 'kilosort3',
'paramset_desc': 'kilosort3 skipping kilosort preprocessing',
'param_set_hash': UUID('d74142fc-5a80-d7f4-dff2-607342b0c5c6'),
'params': {'SI_PREPROCESSING_METHOD': 'organoid_preprocessing',
'SI_SORTING_PARAMS': {'scaleproc': 200,
'n_pcs': 3,
'do_CAR': False,
'skip_kilosort_preprocessing': True,
'keep_good_only': True},
'SI_POSTPROCESSING_PARAMS': {'extensions': {'random_spikes': {},
'waveforms': {},
'templates': {},
'noise_levels': {},
'correlograms': {},
'isi_histograms': {},
'principal_components': {'n_components': 5, 'mode': 'by_channel_local'},
'spike_amplitudes': {},
'spike_locations': {},
'template_metrics': {'include_multi_channel_metrics': True},
'template_similarity': {},
'unit_locations': {},
'quality_metrics': {}},
'job_kwargs': {'n_jobs': -1, 'chunk_duration': '1s'},
'export_to_phy': True,
'export_report': True}}}