Skip to content

Measure steady-state voltage from fixed-interval samples in rheobase/Rin probes #108

Backlog

Description

@eleftherioszisis

Problem

_probe_rheobase_and_rin (and the older calculate_SS_voltage_subprocess) compute steady-state voltage as a plain np.mean over the recorded samples in (800, 1000] ms. With cvode, slow cells have only 4–5 samples in that window while the voltage is still drifting by ~10 mV, so where those samples land decides the result. Any change to cvode step placement (e.g. an extra Cell in the NEURON topology) moves Rin/RMP by a few percent, and with them the rheobase bisection bound.

Evidence (hippocampus bluepyopt test cell, Rin = ΔV / −0.02 nA)

Setup Samples in window Rin (MΩ)
cvode, cell alone 5 1432.99
cvode, + extra cell 4 1472.04
cvode, alone, recorded every 0.1 ms 2000 1417.94
cvode, + extra cell, recorded every 0.1 ms 2000 1417.90
fixed step dt = 0.025 ms (reference) 8000 1418.06

With fixed-interval recording the setups agree to ~0.003% and match the fixed-step reference. The rheobase gap (0.0340 vs 0.0349 nA) also closes (→ 0.0353 nA).

Proposal

  • Record the voltage used for steady-state estimates at fixed intervals (e.g. record_dt on the Cell and dt on the voltage recording) in _probe_rheobase_and_rin and calculate_SS_voltage_subprocess. A time-weighted mean of the cvode samples alone is not enough: 4–5 points over 200 ms of a curving trace remain coarse.
  • Optionally: a finer rheobase precision than 0.005 nA (≈14% of the value for a cell with rheobase ~0.035 nA).

Impact

Stored calibration values (Rin, rheobase) for slow cvode cells will change by up to a few percent, so this should be decided on its own rather than folded into another PR.

Open question

Even with perfect sampling, some cells are still falling ~10 mV across 800–1000 ms, so the protocol measures a Rin that hasn't settled. Should the window/duration change?

Context: review of #107.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions