Importing NEURON .hoc files in Sim4Life
-
I would like to import into Sim4Life a neural network model that was originally implemented in the NEURON simulator.
The model includes several .hoc and .mod files.Is there a way to adapt or convert these files to make the model compatible with Sim4Life?
Has anyone successfully imported NEURON network models (not just single neurons) into Sim4Life before? -
Dear Geremia,
Here is the procedure I use for S4L:
Prerequisites:
The Yale Neuron compiler 8.2.6 for Windows
https://github.com/neuronsimulator/nrn/releases/tag/8.2.6
You can use newer versions, but this one works best with S4L.- Create a directory for a particular neuron structure, at root level: hoc files, asc, etc. a subdirectory called 'mechanisms': all your mod files.
- From a console, run the Yale Compiler on your 'mechanisms' directory:
> nrnivmodl
if it succeeds, it will create a nrnmech.dll file. - move the nrnmech.dll file to root level (where your hoc files are) and clean the 'mechanisms' directory - all the .c and .o files.
- Compress into a zip file the main directory (that contains the hoc files, nrnmech.dll and 'mechanisms' dir). Change the extension to .hocz
- Now, in S4L use the import button to import your new neuron model, your newly created hocz file.
Regards,
Guillermo
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login