Unexpected [Ca²⁺]ᵢ initialisation when both cad and cadifus are inserted in the same section
Posted: Thu Aug 27, 2026 4:09 pm
Hello everyone,
I am building a new cell type with fine nanoscale processes (diameter approximately 0.05–0.5 µm). The main compartments, including the soma and dendrites, have cadifus inserted through a biophysics JSON loader, which sets the resting intracellular calcium concentration to cai0 = 5e-5 mM (50 nM).
The nano sections initially had insert cad hardcoded in their initBiophysics() procedure, while cadifus was subsequently inserted into the same sections by the loader.
The nano sections displayed an anomalously high resting intracellular calcium concentration of approximately 100 nM instead of 50 nM before any stimulus, and their calcium dynamics were clearly incorrect during the simulation.
After investigating, I found that both cad and cadifus write to cai. When they are inserted into the same section, cai appears to be initialised by whichever mechanism executes its INITIAL block last. In this case, cad sets cai = cainf = 1e-4 mM, silently overriding the cai0 = 5e-5 mM defined by cadifus. During the simulation, both mechanisms then attempt to update the same ion concentration.
Is the recommended BrainCell approach to ensure that only one calcium-handling mechanism writing to cai is inserted in each section? Should the biophysics loader detect and prevent conflicting calcium mechanisms, or is there an existing way within BrainCell to specify which mechanism controls cai ?
I am building a new cell type with fine nanoscale processes (diameter approximately 0.05–0.5 µm). The main compartments, including the soma and dendrites, have cadifus inserted through a biophysics JSON loader, which sets the resting intracellular calcium concentration to cai0 = 5e-5 mM (50 nM).
The nano sections initially had insert cad hardcoded in their initBiophysics() procedure, while cadifus was subsequently inserted into the same sections by the loader.
The nano sections displayed an anomalously high resting intracellular calcium concentration of approximately 100 nM instead of 50 nM before any stimulus, and their calcium dynamics were clearly incorrect during the simulation.
After investigating, I found that both cad and cadifus write to cai. When they are inserted into the same section, cai appears to be initialised by whichever mechanism executes its INITIAL block last. In this case, cad sets cai = cainf = 1e-4 mM, silently overriding the cai0 = 5e-5 mM defined by cadifus. During the simulation, both mechanisms then attempt to update the same ion concentration.
Is the recommended BrainCell approach to ensure that only one calcium-handling mechanism writing to cai is inserted in each section? Should the biophysics loader detect and prevent conflicting calcium mechanisms, or is there an existing way within BrainCell to specify which mechanism controls cai ?