Skip to content
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

Refer to NEST models and NESTML #363

Open
Jballbe opened this issue Apr 29, 2024 · 6 comments
Open

Refer to NEST models and NESTML #363

Jballbe opened this issue Apr 29, 2024 · 6 comments

Comments

@Jballbe
Copy link

Jballbe commented Apr 29, 2024

Hi,

I am implementing a network model using BMTK, and I was studying one of your tutorials where you refer a GLIF model :
{ "N": 2384, "model_name": "Sst_501282204", "cell_line": "i4Sst", "ei": "i", "model_type": "point_neuron", "model_template": "nest:glif_lif_asc_psc", "dynamics_params": "501282204_glif_lif_asc_config.json" },
However the glif_lif_asc_psc is not referred to on the NEST model page . Is this name referring to a subfile of NEST? if so, do you know where we can find the list of available models' name?

Also, I was wondering if I could use BMTK with NESTML to have a custom neuron model?

Thank you very much for your help!
Best regards,

Julien Ballbé

@kaeldai
Copy link
Collaborator

kaeldai commented Apr 30, 2024

Hi @Jballbe

The "glif_lif_asc_psc" is an older version of the NEST glif model so you are correct it doesn't correspond to any of the built-in NEST models. However, to help with backwards compatability, BMTK will automatically convert "glif_lif_asc_psc" => "glif_psc" and also update the .json file accordingly. We are in the process of updating the tutorial, but in the mean-time there is a point_450glifs/ example that is more up-to-date.

However if you want to use the old tutorials you can use the following code to convert the old glif model + AIBS json file into the appropiate NEST values:

import json
from bmtk.simulator.pointnet.glif_utils import convert_aibs2nest

nest_model, nest_params = convert_aibs2nest('nest:glif_lif_asc_psc', json.load(open('501282204_glif_lif_asc_config.json', 'r')))

@kaeldai
Copy link
Collaborator

kaeldai commented Apr 30, 2024

As far as your other question - I believe at the moment NESTML support has not been added to the main bmtk branch. However much work has been done (by another developer) on this and we may be able to add it very soon. I will need to talk to the other developer and get back with you.

@Jballbe
Copy link
Author

Jballbe commented May 1, 2024

Hi @kaeldai ,

Thank you very much for your precisions about the glif_lif_asc_psc model name, that enlightens me!
I have another question about the different NEST models, if I want to use another model available in NEST (let's say aeif_psc_delta_clopath – Adaptive exponential integrate-and-fire neuron), In the add_nodes command, can I pass in 'dynamics_params' a json file containing the different model parameters values? If yes, I suppose the different parameters names should correspond to those present in the NEST description?

Thank you for NESTML, I'd love to be able to use it!

@xpliu16
Copy link
Collaborator

xpliu16 commented May 21, 2024

Hi Julien,

Yes, I believe it should work that way - please let us know if you run into any issues. I have passed along to Kael a draft PR of NESTML that works for cell models, but turns out to be a bit more complicated for synapse models. Are you interested mostly in cell models for NESTML?

Thanks,
Ping

@Jballbe
Copy link
Author

Jballbe commented May 22, 2024

Hi Ping,

Thank you for your answer! I am sorry but what do you mean by "draft PR" ? I don't have the acronym...
Indeed, for now I am mostly interested in using custom cell models. Regarding the synapses , I use static models ("Static_ExctoExc.json"...), those found in your workshop repository, and I don't plan to use custom synaptic model in a short time scale.
Would those static synapses work together with NESTML?

Thank you !
Julien

@xpliu16
Copy link
Collaborator

xpliu16 commented May 22, 2024

Hi Julien,

PR = pull request (to merge code into the main repository). I just meant that I passed along my partial work to Kael who will work on testing it against latest Nest and incorporating it. Good to know that you're mostly interested in cell models - I believe those should be doable. I also think you can mix nestml cell models with standard static synapse, but Kael can confirm that in testing.

We'll keep you posted,
Ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants