Closed sarahthon closed 1 month ago
Hi Sarah,
si_unit_id
column which corresponds to the SpikeInterface unit id.Since there are multiple ways to curate, there is no guarantee that the "phy unit ID" is available (e.g. when using quality metrics)
This goes missing during curation (see picture). I thought maybe the "Id" option would be more stable.
I see - I can work with it "as is" :)
I see! You can also check the unit table in the NWBViewer (open the Units and got to table
, there should be a column called original_cluster_id
:)
Alternatively, in a different cell, you can read the sorting object and print this original_cluster_id
as follows:
import spikeinterface.extractors as se
sorting_phy = se.read_phy("path-to-phy-folder")
# you can copy past it from the GUI (after `phy template-gui`)
# note that you have to remove the params.py from the file path
print(sorting_phy.get_property("original_cluster_id"))
Its probably hidden here, should I be able to click on it to expand(does not work now)?
I assume it is updated form the "summary" tab somehow, trying to figure out how to update it according to my choices
Not sure if you can expand...can you try by loading directly the SpikeInterface Sorting object?
I get all the units (including noise), how can I exclude units marked as "noise"?
I eg, I have 21 units marked as unsorted, good or mua, but the output here lists all phy units (including 41 noise "units"):
Still I would have to match to the correct unit in phy, which I guess can be done manually when I sort on increasing unit ID number. But not the optimal solution when having many units
You can simply do this!
sorting_phy = se.read_phy("path-to-phy-folder", exclude_cluster_groups=["noise"])
@sarahthon can we close this?
Hi, two questions:
1) After curating in phy, the reloaded and curated units seen in the "curation" tab in the display browser do not match with the saved unit "ID" that is reported in phy. Making it very challenging to look at curated units in the display and comparing them to units in phy.
I eg, there no longer exists a unit in phy with ID "23" after curating. It seems like the unit ID in browser display is not updated (even after reloading units from phy:![image](https://github.com/CINPLA/expipe-plugin-cinpla/assets/39300702/c6d4caa7-2898-4cb1-b626-a2226cb23846)
2) Also, can we rather choose "phy unit ID" in the tab (where the number 5 is listed in the picture above), instead of what seems to be a list of the total number of cells ( i.eg. 0,2...,20 for 21 cells instead of their phy-ID)?