Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Simulations & Solvers
  4. T-Neuro
  5. Importing NEURON .hoc files in Sim4Life

Importing NEURON .hoc files in Sim4Life

Scheduled Pinned Locked Moved T-Neuro
2 Posts 2 Posters 28 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GeremiaLombardi
    wrote last edited by
    #1

    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?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guillermo
      ZMT
      wrote last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Search