Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Ion related initial values set in the NEURON parser not passed to CoreNEURON #779

Open
iomaganaris opened this issue Feb 21, 2022 · 2 comments · May be fixed by #780
Open

Ion related initial values set in the NEURON parser not passed to CoreNEURON #779

iomaganaris opened this issue Feb 21, 2022 · 2 comments · May be fixed by #780
Labels
bug frontiers-paper-2021 netpyne Issues related to NetPyNE simulations neuron

Comments

@iomaganaris
Copy link
Contributor

iomaganaris commented Feb 21, 2022

Some scripts in NEURON when instantiating the cells might define the initial value of ion variables like:

ko0_k_ion = 3.82   //mM
ki0_k_ion = 140    //mM

These variables (from my understanding) seem that when CoreNEURON gets executed in file mode (using its coredat files) are not passed to CoreNEURON to set them when it registers the ions in

void ion_reg(const char* name, double valence) {

The default values come from:
https://github.com/BlueBrain/CoreNeuron/blob/master/coreneuron/membrane_definitions.h
The ion registration and calculation is done correctly in direct mode, when CoreNEURON is launched from NEURON.

To Reproduce
I was only able to reproduce this with a NetPyNE closed source simulation. I can provide more details if needed.

Expected behavior
I suppose that those variables should be passed to the coredat files, so that they can be read by CoreNEURON?

Logs
NEURON values:

nrn_init_ion 15 conci 10.000000 conco 140.000000 charge 1.000000 celsius 34.000000
nrn_init_ion 16 conci 140.000000 conco 3.820000 charge 1.000000 celsius 34.000000
nrn_init_ion 25 conci 0.000050 conco 2.000000 charge 2.000000 celsius 34.000000
nrn_init_ion 49 conci 1.000000 conco 1.000000 charge 1.000000 celsius 34.000000

CoreNEURON values:

nrn_init_ion 15 na_ion conci 10.000000 conco 140.000000 charge 1.000000 celsius 34.000000
nrn_init_ion 16 k_ion conci 54.400000 conco 2.500000 charge 1.000000 celsius 34.000000
nrn_init_ion 25 ca_ion conci 0.000050 conco 2.000000 charge 2.000000 celsius 34.000000
nrn_init_ion 49 hi_ion conci 1.000000 conco 1.000000 charge 1.000000 celsius 34.000000

System (please complete the following information)

  • OS: Ubuntu 20.04
  • Compiler: GCC
  • Version: NEURON master branch, CoreNEURON magkanar/fix_pdata branch
  • Backend: CPU

cc: @pramodk @nrnhines This issue is a bit related to the issue we were debugging together in the past with NetPyNE simulations however the issue we were seeing then is fixed from this PR #775

@iomaganaris iomaganaris added bug neuron netpyne Issues related to NetPyNE simulations frontiers-paper-2021 labels Feb 21, 2022
@iomaganaris
Copy link
Contributor Author

Edit: These values exist in the globals.dat file from the coredat files but for some reason are not set properly in CoreNEURON

@iomaganaris
Copy link
Contributor Author

It seems like this issue doesn't influence the spikes of the simulation tested with small circuits of the M1 and S1 NetPyNE models. Still I have created a draft PR to solve this issue here: #780

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug frontiers-paper-2021 netpyne Issues related to NetPyNE simulations neuron
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant