Format spec: say whether a probe lists all its contacts, and define device_channel_indices
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 75/100
- Tipo de issue
- Documentação
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- python
- Domínio
- documentation
Direção de pesquisa
Comece pela especificação do formato em probeinterface.readthedocs.io/en/main/format_spec.html e compare suas definições com a documentação da API de Probe.set_device_channel_indices e Probe.get_slice. Esclareça se os arquivos representam todos os contatos ou um subconjunto e defina o comprimento e os valores de device_channel_indices, além do significado de -1; o trabalho estará concluído quando a especificação resolver a ambiguidade descrita na issue. A pessoa que relatou o problema se oferece para ajudar com um PR.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 89
- Forks
- 52
- Merge médio
- 1d 19h
- PRs com merge (30d)
- 4
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de SpikeInterface/probeinterface
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
SpikeInterface/probeinterface#472 · 3 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
SpikeInterface/probeinterface#469 · 2 comentários ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
SpikeInterface/probeinterface#465 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 48/100
SpikeInterface/probeinterface#452 · 1 comentário ·
-
question
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
SpikeInterface/probeinterface#449 · 7 comentários ·
Todas as issues de SpikeInterface/probeinterface
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 69/100
daniel-ospina/tortoise#15308 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
-
difficulty:easy prio:low type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
NatronGitHub/Natron#2405 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Jstar269/nakagawa-recomp#3746 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia