-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: load channel info for Phy data #574
Comments
Interesting, I don't think we've seen a case of that metadata before... Would you be willing to share this instance of Phy data with us? Also, what acquisition system did you use for this? It may ultimately be simpler to add the recording interface to get the channel information, but set the conversion option @alejoe91 Are you familiar with what they're talking about in Phy? Does SI interface with that at all? Or would you recommend they simply generate a probe/dummy recording separately from the sorting extractor to attach that information? |
Thank you very much for the super-fast response!
Sorry, "A bunch of" was a bit rushed as a message, what I see there is just the channel position, which is what I would like to have. I guess that you would want more complete metadata to add the feature. My goal atm is to just keep track of the position on the probe of the sorted clusters. I was also wondering if I would then need to manually figure out the positional info for each unit, or there is already code to assign each unit to a channel based on the cluster's footprint
I missed this option though, this looks the way to go in general to log more info, thanks! Thank you again for your help and the super useful package. |
I have reached out to the SI team about this - I don't personally know off the top of my head
It's indirect, but the NWB method of handling this would be to utilize the This would link a unit to an electrode, and that electrode could have exact position/location information on its own table I admit however, we do not currently have this linkage formed automatically in NeuroConv as we haven't seen many cases of it - what you could do for now is manually add the interface_phy = PhySortingInterface(folder_path=folder_path, verbose=False)
interface_phy.sorting_extractor.add_property(values=[all_your_channel_positions, ...], unit_ids=interface_phy.get_unit_ids()) and that will then automatically add the electrode indices (as integers, not links) which is something at least. My syntax might be a bit off but I'll let @alejoe91 correct me on that Otherwise, would you be willing to share your example of Phy data that has channel information so that I can build and test a seamless feature for establishing the linkage? |
Hi @vigji NeuroConv uses spikeinterface to read from various formats. In SpikeInterface, there are 3 main objects:
Now, the way that @CodyCBakerPhD if the goal here is just to add a
Otherwise, as Cody suggests, you can "maually" add the depth and have this logic after you instantiate the interface object. Third option is to make a |
@vigji if I understand correctly you don't have explicit channel information, but you're looking for a way to computed it from channel positions and templates, right? |
Thank you very much guys! all your inputs I resorted to reimplementing all my pipeline in spikeinterface, which was immensely needed :) don't know how I could have missed starting using it earlier... Don't think I will have the need to follow up on this, closing it for now! |
What would you like to see added to NeuroConv?
Not sure that this is missing - in which case apologies- but I could not get to it after quite some search in the docs and in the code. Also, I'm pretty new to this whole world of .nwb and ECEphys...
I am trying to load some sorted spike data from a Phy folder. This is my code now:
I would like to just keep the sorted data in the file, and not the original recordings as the size is huuuuge. In the Phy folder I have a bunch of channel metadata that could potentially be read, but as far as I can get there is no generate_recording_with_channel_metadata() method in the
PhySortingInterface
class, so callingadd_channel_metadata_to_nwb()
is ineffective.Am I getting this correctly? is this option currently missing for Phy files?
Is your feature request related to a problem?
Loading channel metadata from Phy-sorted data
Do you have any interest in helping implement the feature?
Yes, but I would need guidance.
Code of Conduct
The text was updated successfully, but these errors were encountered: