-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NetPyNE simulation for one_cell soma_cm2_hh model (sim_tests) #74
Comments
condDensity certainly would need units, but as discussed with @wvangeit in another issue (I forget where, Werner?) that line is not required, as the -80 (mV) for el_hh is set in the previous line... |
thx, I'll try removing the line. so @kaeldai, this doesn't seem to be an issue for bionet? can you point me to the bionet code that reads the biophys params from the neuroml file? thx |
I removed the problematic line as suggested by padraig: https://github.com/AllenInstitute/sonata/blob/sim_tests_dontmerge/examples/sim_tests/shared_components/templates/nml/soma_cm2_hh.nml#L9 But now getting a different error: @pgleeson - this seems to come from incorrectly reading the hh 'gnabar' and 'gkbar' params, even though I'm using the same code that is used by netpyne to import neuroml. Any suggestions?
|
The root of this seems to be specifying only part of the model in NeuroML. Ideally for this |
Mmm, interesting. So if I understand this correctly, NeuroML will only be able to interact with MOD files that are complying to some standard. Is this standard defined somewhere, so that we could link from it from the SONATA format description ? |
To be clear, NeuroML isn't designed to refer/interact with mod at all. Yes, there can be mod files generated from NML channel descriptions, but that's after everything including the cond densities/cells/channels are specified in valid NML. Here the SONATA standard/BMTK is using an ad hoc combination of hoc & NML which is outside the scope of standard NeuroML, and it for that toolchain to decide what's allowed. To summarise though, a mod file with just a single type of conductance (representing one voltage gated current) and a public parameter for conductance density and reversal potential (which is most of the mod files on ModelDB) should be fine, though the names for the parameters for cond dens/rev pot should probably be changed (maybe gbar and e?) so they can be found by the code linking the NML to the mod file. |
@salvadord I don't see any reason why the hh mechanism should be used/encouraged in the standard examples, it would just lead to confusion as there are multiple independent conductances in there. It would be best to use separated Na/K mechanisms and possibly the inbuilt pas. Perhaps the mod files from the standard Allen/Hay model could be reused @wvangeit? |
I'm trying this example: https://github.com/AllenInstitute/sonata/tree/sim_tests_dontmerge/examples/sim_tests/biophysical/one_cell/soma_cm2_hh
But I get an error reading the neuroml biophys params, specifically this line: https://github.com/AllenInstitute/sonata/blob/sim_tests_dontmerge/examples/sim_tests/shared_components/templates/nml/soma_cm2_hh.nml#L9 (because 'condDensity' is '80' without units). This is the error:
The code I'm using is here (which is adapted from the neuroml import code used in netpyne): https://github.com/Neurosim-lab/netpyne/blob/sonata/netpyne/conversion/sonataImport.py#L651
I have pyneuroml version '0.3.13'
@pgleeson - any suggestion? maybe I need to update some of the neuroml conversion code?
The text was updated successfully, but these errors were encountered: