Support generic SONATA modoverride synapses via helper HOC - #91
Open
darshanmandge wants to merge 4 commits into
Open
Support generic SONATA modoverride synapses via helper HOC#91darshanmandge wants to merge 4 commits into
darshanmandge wants to merge 4 commits into
Conversation
- Relax ConnectionOverrides.mod_override from Literal["GluSynapse"] to str
- Add bluecellulab.synapse.synapse_helpers.load_synapse_helper for
neurodamus-style auto-loading of {SUFFIX}Helper.hoc via HOC_LIBRARY_PATH
- Add GenericSpikeSynapse class that constructs the point process via the
helper HOC template, matching neurodamus calling convention
- Wire SynapseFactory to dispatch to GenericSpikeSynapse when ModOverride
is set to a non-builtin SUFFIX
- Make U_SYN scaling tolerant of missing properties for non-AMPANMDA
mechanisms
Read the SONATA `modoverride` key when constructing connection overrides, while retaining `mod_override` as a backward-compatible fallback. Add regression coverage for the standard key and connections without a modoverride.
Keep Exp2Syn connection overrides on the built-in synapse path instead of requiring a nonexistent Exp2SynHelper.hoc template. Also fix reStructuredText formatting in the generic synapse docstrings so the documentation build passes with warnings treated as errors.
Codecov Report❌ Patch coverage is
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ConnectionOverrides.mod_overrideto support any compiled NEURON mechanism SUFFIX.GenericSpikeSynapse.modoverridekey.mod_overridespelling.Motivation
BlueCelluLab previously restricted
mod_overrideto the built-inGluSynapsemechanism and did not correctly read the SONATA-standardmodoverridekey. As a result, custom mechanisms that reference processes could not be selected via SONATA connection overrides.This change enables SONATA circuits to select arbitrary compiled NMODL mechanisms together with their companion helper HOC templates.
Changes
Generic mod override support
ConnectionOverrides.mod_overridefrom aLiteral["GluSynapse"]tostr | None.GenericSpikeSynapse.GluSynapsepath.Helper HOC loading
Add
bluecellulab.synapse.synapse_helperswith:load_synapse_helper(suffix)helper_available(suffix)The loader follows the Neurodamus convention:
SUFFIX.modSUFFIXHelper.hoc