Skip to content

Conversation

@h-mayorquin
Copy link
Collaborator

@h-mayorquin h-mayorquin commented Nov 20, 2025

Currently, the get_probe() function from the library does not include MUX information for Neuropixels probes, while the format readers for spikeglx and openephys do. I started working on adding MUX information to the probes obtained with get_probe when I noticed that the existing code structure made this task more complicated than necessary. To add MUX support to library probes, one would need to either duplicate the construction logic or refactor how _read_imro_string() and recording readers (.e.g read_spikeglx) work together.

This PR introduces what I think is cleaner workflow based on a new function called build_neuropixels_probe(). This function constructs a complete Neuropixels probe from the probe catalogue directly and in full. The new functioncan be used as a stand alone in get_probe() and as the first step on recording readers such as SpikeGLX and OpenEphys (before slicing and adding recording metadata not available in the catalogue). The advantage of this is that we have a single source of truth for Neuropixels probe construction, which simplifies maintenance and future updates.

For the sake of the simplicity of the PR I am just changing the spikeglx workflow. Changing the openephys workflow and deprecating functions can be done in a follow up PR if this approach is accepted.

@h-mayorquin h-mayorquin changed the title Separate spikeglx catalogue from recording probe Add mux information to catalogue probes Nov 20, 2025
@h-mayorquin h-mayorquin changed the title Add mux information to catalogue probes Neuropixel: Add mux information to catalogue probes Nov 20, 2025
@h-mayorquin h-mayorquin force-pushed the separate_spikeglx_catalogue_from_recording_probe branch from 719bd0c to aa3e2aa Compare November 20, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants