-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for compartment reports (soma + named section) as well as spike reports #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I added spike report support to this PR as well |
Do you think we should update the Example 2 to show the generated reports? |
@darshanmandge I already did ;) |
Thanks! Do you want to store an example output and describe how to access the data via the example notebook e.g. using bluepysnap or efel? |
Maybe a next time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this functionality!
Introduces functionality for writing SONATA-compatible compartment reports from NEURON simulations in
bluecellulab
. The example notebook2-sonata-network
has been updated to demonstrate spike and compartment report generation.Supported Features
Compartment reports:
"section": "soma"
is resolved tosoma[0]
, supporting"center"
(0.5) and"all"
segments."section": "dend"
or similar resolves to all matching sections likedend[0]
,dend[1]
, etc.config['output']['output_dir']
to construct<output_dir>/<report_name>.h5
.Spike reports:
Additions
write_reports()
: Writes all report in SONATA HDF5 format (currently supports compartment and spike reports).resolve_segments()
: Determines target segments from section/compartment config.get_section()
/get_sections()
:get_section()
: Resolves fully specified names like"soma[0]"
.get_sections()
: Resolves base names like"dend"
to all matching sections."variable_name": "v"
support; other variables are logged and skipped.Limitations
"sections": "compartment_set"
is parsed but not fully supported in LibSONATA output."dend[4]"
in the config are not supported—only group names like"dend"
are accepted—because LibSONATA currently does not support addressing individual sections directly in reports."v"
) is currently recorded.Notes
output_dir
is provided in the config, reports are written there, otherwise, defaults to./<report_name>.h5
.