Skip to content

Instantly share code, notes, and snippets.

View lkoelman's full-sized avatar

Lucas lkoelman

View GitHub Profile
### NEURON Installation from source ###
# Based on documentation at:
# https://www.neuron.yale.edu/neuron/download/compile_linux
# http://www.davison.webfactional.com/notes/installation-neuron-python/
# http://pub.ist.ac.at/~jguzman/doc/neuron/index.html
# Install C/C++ Development tools (compiler etc.)
sudo apt install build-essential
# Install InterView dependencies
@lkoelman
lkoelman / convert_morphology.sh
Created February 8, 2018 17:41
Convert neuron morphology file using NLMorphologyConverter via WINE on Linux
wine start installer.msi # install the program
cd '~/.wine/drive_c/Program Files (x86)/Neuronland/NLMorphologyConverter'
wine NLMorphologyConverter.exe --help
# you can pass file paths in UNIX format to windows executables run via 'wine' command: they will be converted automatically
wine NLMorphologyConverter.exe /home/me/mymorph.p /home/me/mymorph.swc SWC
# For install via Yale packaged version: see http://www.neuron.yale.edu/ftp/neuron/nrn_mac_install.pdf
# For install via Brew prackage manager: see https://bbp.epfl.ch/nmc-portal/tools
# Set environment variables automatically:
/Applications/NEURON-7.5/nrn/x86_64/bin/nrnpyenv.sh
# Or do it manually by adding following to ~/.bash_profile
nrn_installdir=/path/to/NEURON/installdir # for example /Applications/NEURON-7.5
my_anaconda_path=/path/to/anaconda/dir # for example /Users/me/anaconda