Skip to content
  • Search
Skins
  • Light
  • Brite
  • 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 528 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 on 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 on 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

      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
      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