Skip to content
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

Add simplecell example #165

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Add simplecell example #165

wants to merge 15 commits into from

Conversation

ilkilic
Copy link
Collaborator

@ilkilic ilkilic commented Aug 26, 2024

No description provided.

@ilkilic ilkilic self-assigned this Aug 26, 2024
@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 52.45%. Comparing base (8d5b0ab) to head (dc8e3c8).
Report is 116 commits behind head on main.

Files with missing lines Patch % Lines
bluepyemodel/emodel_pipeline/plotting.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #165      +/-   ##
==========================================
- Coverage   60.07%   52.45%   -7.63%     
==========================================
  Files         109      124      +15     
  Lines        7838    10436    +2598     
==========================================
+ Hits         4709     5474     +765     
- Misses       3129     4962    +1833     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

bluepyemodel/emodel_pipeline/plotting.py Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you have any of these mod files in this example.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If true, then this file can be removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I removed the mod files part but I think we should still keep the part about the morphology, right?

examples/simplecell/config/extract_config/.gitignore Outdated Show resolved Hide resolved
examples/simplecell/simplecell.ipynb Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gpfs pdfs paths can be removed form the file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Removed in the last commit

examples/simplecell/simplecell.ipynb Show resolved Hide resolved
" - `optimisation_params`: Additional optimisation parameters, such as `offspring_size` set to `20`, indicating the number of solutions generated per generation. \n",
" - `validation_protocols`: Lists protocols used for validation, e.g., `[\"IDrest_0.4\"]`. \n",
" - `morph_modifiers`: Set to an empty list `[]`, meaning no specific modifications to morphologies are applied by default.\n",
" - `plot_currentscape`: We set this to False because we are using NEURON's built-in HH mechanism, where the currents are not defined as RANGE variables. As a result, Currentscape is unable to access and plot these currents."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to add a warning in BPEM when plot_currentscape is True, but we have hh mechanism. This can be done in another PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added on in the last commit, let me know if it is alright

"source": [
"We can now define the targets which contains the protocols (ecodes) and the features. We define two protocols, `IDrest` and `IV` protocols.\n",
"\n",
"For the `IDrest` protocol with an amplitude of 0.2 nA (and 0.4 nA for validation), we select the `Spikecount`, `mean_frequency`, and `voltage_base` capture the neuron's spiking activity and resting potential. In the `IV` protocol, at an amplitude of -0.1 nA, `voltage_base` and `ohmic_input_resistance_vb_ssse` assess the neuron's baseline potential and input resistance. \n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentence is weird

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the last commit

" \"validated\": false,\n",
" \"seed\": 1,\n",
" \"pdfs\": [\n",
" \"/gpfs/bbp.cscs.ch/home/ikilic/workspace/BluePyEModel/examples/simplecell/figures/simplecell/optimisation/emodel=simplecell__etype=cADpyr__species=rat__brain_region=SSCX__seed=1__optimisation.pdf\",\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can also remove /gpfs paths here after removing them from final.json

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in the last commit

Copy link
Collaborator

@darshanmandge darshanmandge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants