Convert Python to Hoc

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
vogdb
Posts: 37
Joined: Sun Aug 13, 2017 9:51 am

Convert Python to Hoc

Post by vogdb »

Hello! There is a model https://senselab.med.yale.edu/ModelDB/s ... del=184187. It exists in NeuroML2 and standalone Python versions. Is it possible to convert any of these into Hoc? What would you suggest? Would it be simpler just to recreate Hoc file from scratch? My circumstances are that I need Hoc exactly.
I tried to convert NeuroML2 with CellBuilder->import but NeuroML2 seems to be unsupported yet.
vogdb
Posts: 37
Joined: Sun Aug 13, 2017 9:51 am

Re: Convert Python to Hoc

Post by vogdb »

Seems that https://github.com/NeuroML/jNeuroML is a way to go.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Convert Python to Hoc

Post by ted »

It will be interesting to know if the translated version of the model produces results identical to the original, and if not, what fixes are necessary to resolve the problem.
vogdb
Posts: 37
Joined: Sun Aug 13, 2017 9:51 am

Re: Convert Python to Hoc

Post by vogdb »

For now I couldn't do it. Currently jNeuroML does not support json files. I have to make it by hands unfortunately, can't waste time on this anymore.
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Convert Python to Hoc

Post by ted »

It should be possible to use NEURON's Import3d tool to convert the swc file to a hoc file. Adding an axon and assigning biophysical properties will be easy. Easier yet would be to have the Import3d tool export to a CellBuilder, then use the CellBuilder to set up Subsets, spatial discretization, and assignment of biophysical properties to the members of the subsets. Then export from that CellBuilder to a hoc file, and append to the end of that hoc file a statement that attaches an axon.
Post Reply