by orbifold · 6y ago · 0 comments
https://senselab.med.yale.edu/ModelDB/showmodel.cshtml?model...
The simulator used is called Neuron. Code for it is written in a custom language called Hoc and models are implemented in yet another domain specific language. Hardcoded parameters galore including whole sections of code that are prefaced with: this has been copied from this other publication.
https://senselab.med.yale.edu/ModelDB/showmodel.cshtml?model...
The dendritic tree geometry is specified as hardcoded set of point and branch declarations
https://senselab.med.yale.edu/ModelDB/showmodel.cshtml?model...
(apparently that morphology was reconstructed from imaging data?)
Without wanting to spend a lot of time on it, why is it horrific?
There's nothing intrinsically wrong with hardcoded values as they're biological constants, and nicely identified by the standard convention of using ALL_CAPS_VARIABLES.
Edit: Scanning a bit more, he's probably referring to this file, which is pretty horrific:
https://github.com/ModelDBRepository/254217/blob/master/_mor...
I think a mass open source campaign to replace NEURON and ModelDB with something more modern, and clean up and convert every published model would be worth the effort. There are quite a few alternative programs (GENESIS, Neuroconstruct etc) that are either incomplete or abandoned because of lack of funding/interest.
Even if there are issues, it's tremendously valuable that they shared this, so others can reproduce and build on their work. That said, most scientists would like to have better quality code in science as well, but I think the incentive structures and other demands that make it challenging...