magland / sortingview

Web app for viewing results of ephys spike sorting
Apache License 2.0
25 stars 8 forks source link

clean up sortingview python package #174

Closed magland closed 2 years ago

magland commented 2 years ago

A lot of the functionality in this repo is unused, and the part that is most recommended to be used is under "experimental". Needs a reorganization cleanup.

jsoules commented 2 years ago

Per email from Kyu on 1/20/22, the main areas used by FrankLab are to be found in per https://github.com/LorenFrankLab/nwb_datajoint/blob/new_spikeinterface/src/nwb_datajoint/common/common_sortingview.py and and https://github.com/LorenFrankLab/nwb_datajoint/blob/new_spikeinterface/src/nwb_datajoint/common/sortingview_helper_fn.py

In the former, there's a note that sortingview requires an outdated format for recordings, i.e. loading the recording, wrapping it as a RecordingExtractor from the older SpikeExtractors, and then saving as an hdf5 file. I'm not sure if this is still the case or if we intend to do anything about this.

Altogether, these scripts make use of:

Next steps are to write up some scripts to determine what those functions are currently doing, and then some tests to confirm that they continue working as currently during cleanup.

khl02007 commented 2 years ago

In the former, there's a note that sortingview requires an outdated format for recordings, i.e. loading the recording, wrapping it as a RecordingExtractor from the older SpikeExtractors, and then saving as an hdf5 file. I'm not sure if this is still the case or if we intend to do anything about this.

I think this is still the case. @magland and I will meet to discuss if and how the LabboxEphysRecording / Sorting should be updated.

Defined in workspace.py:

I neglected to mention that we also make use of get_curated_sorting_extractor() from workspace.py

magland commented 2 years ago

@jsoules We'll keep the Workspace class intact as is. In other words the cleanup won't involve removing methods from Workspace.

jsoules commented 2 years ago

@magland in that case, assuming the same is true of the Sorting/RecordingExtractors, the vast majority of this code will be untouched--looks like it'll basically be down to probably renaming the experimental_spikesortingview method.

magland commented 2 years ago

There's a lot of extra stuff in the package that perhaps can be deleted.

jsoules commented 2 years ago

Ah, sorry, I meant that almost all of the code that FrankLab is using will be untouched. There's definitely plenty of cleanup to do, but if that isn't in the Workspace class, we should have a mostly free hand.