Imported from https://github.com/solgaardlab/neurophox-notebooks