Skip to content

extract_KS_data and paths_from_KS don't recognize cluster_KSLabel.tsv #144

@HAM41

Description

@HAM41

When using raw Kilosort output (without Phy curation or BombCell), the functions extract_KS_data() and paths_from_KS() fail because they only check for:

  • cluster_bc_unitType.tsv (BombCell)
  • cluster_group.tsv (Phy curation)

But standard Kilosort output includes cluster_KSLabel.tsv, which is never checked.

Error:

FileNotFoundError: [Errno 2] No such file or directory: '.../spikesort_.../cluster_group.tsv'

Affected code:

  • extract_raw_data.py:311 - hardcodes cluster_group.tsv
  • utils.py:588 - fallback to cluster_group.tsv without checking for cluster_KSLabel.tsv

Suggested fix:
Add cluster_KSLabel.tsv as a fallback option before cluster_group.tsv, since it's a standard Kilosort output file.

Workaround:
Symlink: ln -s cluster_KSLabel.tsv cluster_group.tsv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions