Format spec: say whether a probe lists all its contacts, and define device_channel_indices
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 75/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- documentation
Direzione di ricerca
Inizia dalla specifica del formato all’indirizzo probeinterface.readthedocs.io/en/main/format_spec.html e confrontane le definizioni con la documentazione API di Probe.set_device_channel_indices e Probe.get_slice. Chiarisci se i file rappresentano tutti i contatti o un sottoinsieme e definisci la lunghezza e i valori di device_channel_indices, oltre al significato di -1; il lavoro è completato quando la specifica risolve l’ambiguità descritta nell’issue. Chi ha segnalato il problema si offre di aiutare con una PR.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 89
- Fork
- 52
- Merge medio
- 1g 19h
- PR unite (30g)
- 4
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SpikeInterface/probeinterface
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
SpikeInterface/probeinterface#472 · 3 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
SpikeInterface/probeinterface#469 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
SpikeInterface/probeinterface#465 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 48/100
SpikeInterface/probeinterface#452 · 1 commento ·
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
SpikeInterface/probeinterface#449 · 7 commenti ·
Tutte le issue di SpikeInterface/probeinterface
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
available bug good first issue tooling
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Nixitov/Riptide-Native#816 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
SpikeInterface/spikeinterface#5008 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
teng-lin/notebooklm-py#2593 ·
I maintainer di solito rispondono entro 1 giorno
-
claimed-by:collie role:small-fix status:running
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Beovulfo/herd-sdlc#325 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno