The best way to preprocess before and after splitting
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 8/100
Direção de pesquisa
This is an open API design question, not a ready task: the payload names apply_preprocessing_pipeline, split_by and the common_reference step, and asks whether to document option 1 or add split_by as a pipeline step (option 2). Read the existing preprocessing pipeline code first to see how it chains recordings and dicts. A newcomer should not start a patch until a maintainer chooses an option in the thread.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Consider the following problem.
I have a 4-shank Neuropixels probe. There is a large piece of noise that I want to remove by doing a common median reference. I believe (for whatever reasons) that it will be better to subtract the median value taken from ALL channels/shanks. After this, I want to split the recording per shank up, and apply other preprocessing steps. You might even want to do another common median reference per shank after the global one.
Question: what's the best way to proceed. And should SpikeInterface support some syntactic sugar to allow you to do this with pipelines etc?
Some possible answers, with examples, give that you have a recording which cab en split by group.
- Do two preprocessing pipelines
[{'name': 'bandpass_filter', 'kwargs': {'freq_max': 3000}}, {'name': 'common_reference', 'kwargs': {}}]
preprocessing_before_split = [{'name': 'common_reference'}]
preprocessing_after_split = [{'name': 'common_reference'}]
pp_rec = si.apply_preprocessing_pipeline(
si.apply_preprocessing_pipeline(
recording, preprocessing_before_split
).split_by('group')),
preprocessing_after_split)
Good:
- We don't have to do anything
Bad - Bit awkward.
- Make
split_bya preprocessing step
preprocessing_pipeline = [{'name': 'common_reference'}, {'name', 'split_by', 'kwargs': {'property': 'group'}, {'name': 'common_reference'}]
pp_rec = si.apply_preprocessing_pipeline(recording, preprocessing_pipeline)
Good: simple for user
Bad:
- Typing gets more and more complex - Current if
apply_preprocessing_pipelinetakes in a rec/dict it returns a rec/dict. Now a rec might return a dict, ifsplit_byis around.
Any other ideas?
If we stick with 1, let's document it. If we aim for 2, let's do it!
I think I prefer 1...
- Linguagem predominante
- Python
- Estrelas
- 883
- Forks
- 291
- Merge médio
- 3d 17h
- PRs com merge (30d)
- 40
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/spikeinterface
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
SpikeInterface/spikeinterface#5008 ·
Mantenedores costumam responder em até 2 dias
-
`plot_potential_merges` draws the correlograms of other units when a merge group is not sortedAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
SpikeInterface/spikeinterface#5007 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
SpikeInterface/spikeinterface#5006 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
SpikeInterface/spikeinterface#5005 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
SpikeInterface/spikeinterface#5004 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de SpikeInterface/spikeinterface
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