Build indicator kinetics into the activity image

Abierto
#13 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

Start by locating the GIAnT-Python activity-image construction and the per-pixel baseline/noise estimate (currently a moving median) that feeds its high-pass filter and noise model; compare that path with localizeSources_vIM in GIAnT-MATLAB. Read #48 for the seeding thresholds and #42 for the sign-flip FDE, then reproduce the 780125 transient-decay measurements. Done means an activity image computed at the analysis rate with an indicator-kinetics filter and per-pixel noise, validated together with the slap2-F0-network baseline and re-estimated seeding thresholds.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

blocked enhancement

The activity image that seeds sources does not distinguish indicator transients from much faster events. In GIAnT-MATLAB it is computed at alignHz (80 Hz for SLAP2), where the iGluSnFR4f decay (tau_s, 24 ms) spans less than two frames. It accumulates squared spatiotemporal local maxima of each pixel's trace, z-scored against a single variance–brightness noise model per imaging path (localizeSources_vIM). Any location with brief transients that recur in every trial therefore scores as active.

On SLAP2 recording 780125 at the lower seeding thresholds proposed in AllenNeuralDynamics/GIAnT-MATLAB#48 (peakth and wmfPeakth 3), 28–62% of sources have transients that decay far faster than the indicator allows. Averaged over each source's strongest transients, 1–10% of the peak remains 25 ms later, compared with about 35% expected from the indicator and 28–34% measured in ROIs with strong activity. These sources are dim and sit near the soma and in ROIs without large activity-image peaks. They are not explained by motion, online offset switches, trial timing or signals shared within an ROI, and simulated Gaussian or Poisson noise produces almost none of these transients. Because they recur in every trial, neither the sign-flip false-discovery estimate (AllenNeuralDynamics/GIAnT-MATLAB#42) nor the halves test in WMF seeding rejects them. Raising the threshold does not separate them either, since their seed z-scores overlap those of sources with indicator-like kinetics.

GIAnT-MATLAB is getting an interim per-source test that scores the decay of each extracted source's transients and removes sources without indicator kinetics. That test runs after extraction, so spurious seeds still cost extraction time and take part in the joint fit, and sources with few strong transients cannot be scored.

The activity image itself should respond only to transients with the indicator's kinetics. For example, it could be computed at the analysis rate (200 Hz for SLAP2) with a temporal filter that requires the expected decay, and with noise estimated per pixel rather than from one model per path. The seeding thresholds would then need to be estimated again (sign-flip false-discovery estimate, simulations, transplanted ground truth).

This is planned for GIAnT-Python once the neural-network F0 estimate (AllenNeuralDynamics/slap2-F0-network) is part of the GIAnT-Python pipeline. The activity image's high-pass filter and noise model are both built on a per-pixel baseline estimate (currently a moving median), which the F0 network replaces, so the two changes should be validated together.

Lenguaje dominante
Python
Estrellas
0
Forks
1
Merge medio
4 h 48 min
PR fusionados (30 d)
55

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AllenNeuralDynamics/GIAnT-Python

Todos los issues de AllenNeuralDynamics/GIAnT-Python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.