Format spec: say whether a probe lists all its contacts, and define device_channel_indices
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 75/100
- Issue-Typ
- Dokumentation
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- documentation
Rechercherichtung
Beginne mit der Format-Spezifikation unter probeinterface.readthedocs.io/en/main/format_spec.html und vergleiche ihre Definitionen mit der API-Dokumentation zu Probe.set_device_channel_indices und Probe.get_slice. Kläre, ob Dateien alle Kontakte oder eine Teilmenge darstellen, und definiere Länge und Werte von device_channel_indices sowie die Bedeutung von -1; die Aufgabe ist abgeschlossen, wenn die Spezifikation die im Issue beschriebene Mehrdeutigkeit beseitigt. Die meldende Person bietet an, bei einem PR zu helfen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
The format spec (https://probeinterface.readthedocs.io/en/main/format_spec.html) lists contact_positions as necessary and device_channel_indices as optional, but doesn't say what either means for a probe whose recording uses only some of its electrodes. The API docs suggest two different answers:
Probe.set_device_channel_indices: "If some channels are not connected or not recorded then channel should be set to "-1"". This implies a probe file describes every contact, and the wiring says which ones were recorded.Probe.get_slice: "a copy of the Probe with a sub selection of contacts". Saved, this gives a file with only the recorded contacts.
Both kinds of file are in circulation, and a reader can't tell them apart from the file. For example, an NP2014 (4 shanks × 1280 electrodes) recorded on 384 channels can be saved as 5120 contacts with device_channel_indices of -1 for the 4736 unrecorded ones, or as 384 contacts. Both carry "model_name": "NP2014". Only knowledge of the part number reveals that the second is a subset, and nothing in it says which electrodes of the full probe the 384 contacts are, other than contact_ids by convention.
This matters to software that uses a probe file to configure hardware or to show the whole probe, rather than only to sort spikes. Open Ephys's Bonsai.Onix1 loads Neuropixels probe files as full probes and rejects the cut-down form, since there the geometry is fixed and the selection changes between recordings.
Suggestions, in order of preference:
- State in the spec that a probe describes all of its contacts, and that
device_channel_indicesgives each contact's channel on the acquisition device, or -1 for a contact not recorded.get_slicestays as an in-memory operation, and writing a sliced probe is documented as producing a file that describes a subset. - Failing that, mark a subset in the file, for example a probe-level annotation such as
"contact_subset": true, and definecontact_idsas the reference into the full probe from the catalog, so a reader can rebuild the full probe. - In either case, define
device_channel_indicesin the spec itself: its length, its value range, and what -1 means.
Happy to help with a PR to the spec text.
- Vorherrschende Sprache
- Python
- Sterne
- 89
- Forks
- 52
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus SpikeInterface/probeinterface
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
SpikeInterface/probeinterface#472 · 3 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
SpikeInterface/probeinterface#469 · 2 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
SpikeInterface/probeinterface#465 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 48/100
SpikeInterface/probeinterface#452 · 1 Kommentar ·
-
question
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
SpikeInterface/probeinterface#449 · 7 Kommentare ·
Alle Issues in SpikeInterface/probeinterface
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
daniel-ospina/tortoise#15308 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
difficulty:easy prio:low type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
NatronGitHub/Natron#2405 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Jstar269/nakagawa-recomp#3746 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag