Noise MOD creating strange voltage discontinuities
Posted: Mon Mar 07, 2016 8:39 pm
So I have been using a mod file for creating membrane noise based on a very simple Ornstein–Uhlenbeck process of current. However, the other day, I noted that if I increase the current then the membrane potential behaves very very strangely.
Here is an image of the noise behaving normally in a simple compartment model containing ONLY the default passive conductance

I set the random seed to be the same, and then increase the amplitude by a factor of 10. The current dutifully scales by 10, and I would expect the voltage deflections to essentially scale by a factor of 10 also, but as you can see, that does not happen

The mod code is:
Anyone have any thoughts on what is happening and what I can do about it?
Thanks
Here is an image of the noise behaving normally in a simple compartment model containing ONLY the default passive conductance

I set the random seed to be the same, and then increase the amplitude by a factor of 10. The current dutifully scales by 10, and I would expect the voltage deflections to essentially scale by a factor of 10 also, but as you can see, that does not happen

The mod code is:
Code: Select all
INDEPENDENT {t FROM 0 TO 1 WITH 1 (ms)}
NEURON {
POINT_PROCESS Inoise2
RANGE tau, amp
RANGE new_seed
NONSPECIFIC_CURRENT i
}
UNITS {
(nA) = (nanoamp)
}
PARAMETER {
dt (ms)
amp = .01 (nA)
tau = 30 (ms)
}
ASSIGNED {
i (nA) : fluctuating current
}
INITIAL {
i = 0
}
BREAKPOINT {
i= i - ( dt * i ) / tau + amp * normrand(0,1)
}
PROCEDURE new_seed(seed) { : procedure to set the seed
set_seed(seed)
}
Thanks