Build indicator kinetics into the activity image

未关闭
#13 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
data

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
0
派生
1
平均合并
4 小时 48 分钟
30 天内合并 PR
55

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AllenNeuralDynamics/GIAnT-Python 的其他 Issue

查看 AllenNeuralDynamics/GIAnT-Python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。