Add an adaptive line-noise removal step (ZapLine / ZapLine-plus)

Aperta
#534 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by locating the existing band-stop FIR path using pop_eegfiltnew(..., revfilt=True) and check the package’s conventions for documented functions and pop_ wrappers. The issue asks for frequency estimation, DSS-based removal, deterministic behavior, a report, and permissively licensed code; done means those requirements are implemented and documented, with no specific test file named in the payload.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A processing pipeline built on eegprep wants to remove mains interference without notching a fixed narrow band.
Today the only removal in the package is a band-stop FIR through pop_eegfiltnew(..., revfilt=True);
there is no CleanLine and no ZapLine:

$ grep -rli "zapline\|cleanline" $(python -c "import eegprep, os; print(os.path.dirname(eegprep.__file__))")
(no output)

A fixed notch removes a band of about 1 Hz around the nominal frequency and everything else in it (including brain
activity), and leaves residual interference when the mains frequency drifts or has harmonics.

Expected: a documented function, for example zapline_plus(EEG, fline=None, ...) (and a pop_ wrapper), that estimates
the line frequency per recording (or takes it), removes the interference component(s) with a DSS-based method,
returns the cleaned dataset and a small report (frequency found, components removed, power before and after at the
line frequency), is deterministic for fixed inputs, and uses only permissively licensed code (the algorithms are
published: de Cheveigne 2020 for ZapLine; Klug and Kloosterman 2022 for ZapLine-plus).

Checked on eegprep 0.5.0 and on the develop branch at commit 89eb411 (2026-11-05).

Lingua principale
Python
Stelle
38
Fork
7
Merge medio
1g 11h
PR unite (30g)
77

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sccn/eegprep

Tutte le issue di sccn/eegprep

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.