-
Notifications
You must be signed in to change notification settings - Fork 1
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
vprobe electrodes locations #8
Conversation
Looks like you're setting it all explicitly Can you instead make a ProbeInterface.Probe object and use |
@CodyCBakerPhD what would be the advantage of doing that? |
It's a more standard workflow, is a more consolidatted injection, results in more standard electrode table structure (since it goes through a specific pathway for probes in the write tools) |
@CodyCBakerPhD sounds good to me! Could you point me to an example converter doing this? |
Example in tests: https://github.com/catalystneuro/neuroconv/blob/9a72cdf9f341359bb4058fa91260dcf595d800c1/src/neuroconv/tools/testing/data_interface_mixins.py#L483 Example for SpikeGLX (probe loaded via helpers): https://github.com/catalystneuro/neuroconv/blob/9a72cdf9f341359bb4058fa91260dcf595d800c1/src/neuroconv/datainterfaces/ecephys/spikeglx/spikeglxdatainterface.py#L89 Tutorial for created a custom probe: https://probeinterface.readthedocs.io/en/main/examples/ex_01_generate_probe_from_sratch.html |
I implemented the |
self.recording_extractor.set_property( | ||
key="group_name", | ||
values=[probe_name] * len(self.recording_extractor.channel_ids), | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't Jeremy's function do this bit already? https://github.com/catalystneuro/neuroconv/blob/main/src/neuroconv/datainterfaces/ecephys/baserecordingextractorinterface.py#L249
@alejoe91 I'm getting this error with the
Edit 1: It works with
|
@luiztauffer should be fixed now :) gains and offsets needed to be a scalar rather than an array. @CodyCBakerPhD you need to set group_name because the |
@luiztauffer Any updates on this PR? Is it producing good files and do those files work with dendro? |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@CodyCBakerPhD the conversion for Vprobe is working now, electrodes locations are correct |
This change reads the relative-to-probe electrodes locations and add it to the recording. This is important for spike sorting