Skip to content

Moved KiloSort's template_features to _additional_kilosort_files#222

Merged
ttngu207 merged 2 commits intodatajoint:mainfrom
tabedzki:patch-kilosort-files
Jun 4, 2025
Merged

Moved KiloSort's template_features to _additional_kilosort_files#222
ttngu207 merged 2 commits intodatajoint:mainfrom
tabedzki:patch-kilosort-files

Conversation

@tabedzki
Copy link
Contributor

@tabedzki tabedzki commented Jun 4, 2025

Hello there,

Our fork of the ephys pipeline current errors out on the ingestion of Kilosort files as part of the element-array-ephys. The error originates specifically in validate , in which certain required files are part of the _kilosort_core_files (DJ's current repo) but not part of the Kilosort output anymore (Kilosort4 repo), specifically template_features.npy and template_features_ind.npy

After chatting with @ttngu207, I believe the solution is to move template_features.npy and template_features_ind.npy from core Kilosort files to the additional files.

File "/home/u19prod@pu.win.princeton.edu/miniconda3/envs/U19-pipeline_python_env3/lib/python3.12/site-packages/element_array_ephys/readers/kilosort.py", line 78, in validate
raise FileNotFoundError(
FileNotFoundError: Kilosort files missing in (/mnt/cup/braininit/Data/Processed/electrophysiology/jk8386/jk8386_jk71/20250530_g2/jk71_05302025_g0/jk71_05302025_g0_imec0/job_id_837/kilosort4_output): ['template_features.npy', 'template_feature_ind.npy']

ttngu207
ttngu207 previously approved these changes Jun 4, 2025
Copy link
Contributor

@ttngu207 ttngu207 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @tabedzki!
Would you please bump the version?

@ttngu207 ttngu207 merged commit 297e261 into datajoint:main Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants