Skip to content

Fail to load or create a SortingAnalyzer #37

@vncntprvst

Description

@vncntprvst

I ran the ephys-pipeline, using KS4, mostly successfully (see #36).
However, I've had trouble loading or creating a SortingAnalyzer with the results.
I tried different approaches:

sorting_analyzer = si.load_sorting_analyzer("<data_path>/sorting_output/postprocessed/experiment1_Record Node 101#Neuropix-PXI-100.ProbeA_recording1.zarr", with_recording=False)

This fails with: TypeError: load_sorting_analyzer() got an unexpected keyword argument 'with_recording'.
This works initially:

sorting_analyzer = si.load_sorting_analyzer("<data_path>/sorting_output/postprocessed/experiment1_Record Node 101#Neuropix-PXI-100.ProbeA_recording1.zarr")

But then that fails:

sorting_analyzer.compute([
    "random_spikes",
    "templates",
    "template_similarity",
    "unit_locations",
    "spike_amplitudes",
    "correlograms"
])

AssertionError: Extension templates requires the recording.

Trying to create a sorting analyzer also fails

sorting_analyzer = create_sorting_analyzer(sorting=sorting_curated , recording=preproc_recording)

I got various error type when trying to create either the sorting, the recording, or the sorting_analyzer object, such as:

FileNotFoundError: [Errno 2] No such file or directory: '<data_path>/Record Node 101/experiment1/recording1/continuous/Neuropix-PXI-100.ProbeA/timestamps.npy'
...
UnboundLocalError: local variable 'si_file' referenced before assignment
...
AssertionError: Extension templates requires the recording
...
AttributeError: 'NoneType' object has no attribute 'get_data'

Additional documentation on using the SortingAnalyzer to load and visualize outputs would be appreciated.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions