@brainpilot/skills 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +28 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +35 -0
  6. package/skills/01_Meta-Skills/contribute-skill/SKILL.md +277 -0
  7. package/skills/01_Meta-Skills/contribute-skills-via-pr/SKILL.md +163 -0
  8. package/skills/01_Meta-Skills/paper-to-skill/SKILL.md +435 -0
  9. package/skills/01_Meta-Skills/paper-to-skill/references/extraction-guide.md +286 -0
  10. package/skills/01_Meta-Skills/paper-to-skill/references/skill-template.md +250 -0
  11. package/skills/01_Meta-Skills/repo-to-skill/SKILL.md +289 -0
  12. package/skills/01_Meta-Skills/share-case/SKILL.md +253 -0
  13. package/skills/01_Meta-Skills/share-usage/README.md +63 -0
  14. package/skills/01_Meta-Skills/share-usage/SKILL.md +395 -0
  15. package/skills/01_Meta-Skills/verify-skill/SKILL.md +331 -0
  16. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/SKILL.md +194 -0
  17. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/effect-sizes.md +352 -0
  18. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/sample-size-guide.md +407 -0
  19. package/skills/02_Cross-Domain_Foundation/cogsci-statistics/SKILL.md +361 -0
  20. package/skills/02_Cross-Domain_Foundation/cogsci-statistics/references/common-analyses.md +517 -0
  21. package/skills/02_Cross-Domain_Foundation/cogsci-visualization/SKILL.md +292 -0
  22. package/skills/02_Cross-Domain_Foundation/cogsci-visualization/references/plot-recipes.md +709 -0
  23. package/skills/02_Cross-Domain_Foundation/research-literacy/SKILL.md +286 -0
  24. package/skills/02_Cross-Domain_Foundation/research-literacy/references/common-assumptions.md +320 -0
  25. package/skills/02_Cross-Domain_Foundation/research-literacy/references/planning-template.md +143 -0
  26. package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/SKILL.md +197 -0
  27. package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/references/instruction-templates.md +60 -0
  28. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/SKILL.md +246 -0
  29. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/classic-paradigms.md +435 -0
  30. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/design-principles.md +256 -0
  31. package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/SKILL.md +270 -0
  32. package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/references/lavaan-templates.md +172 -0
  33. package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/SKILL.md +238 -0
  34. package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/references/scoring-rubric.md +143 -0
  35. package/skills/03_Cognitive_Psychology/drift-diffusion-model/SKILL.md +203 -0
  36. package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/fitting-guide.md +571 -0
  37. package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/model-variants.md +427 -0
  38. package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/SKILL.md +310 -0
  39. package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/references/ez-diffusion-formulas.md +137 -0
  40. package/skills/03_Cognitive_Psychology/signal-detection-analysis/SKILL.md +300 -0
  41. package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/application-guide.md +278 -0
  42. package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/sdt-formulas.md +318 -0
  43. package/skills/03_Cognitive_Psychology/visual-search-array-generator/SKILL.md +283 -0
  44. package/skills/03_Cognitive_Psychology/visual-search-array-generator/references/array-generation-parameters.yaml +111 -0
  45. package/skills/04_Psycholinguistics/reading-time-analysis/SKILL.md +301 -0
  46. package/skills/04_Psycholinguistics/reading-time-analysis/references/measure-computation-guide.md +195 -0
  47. package/skills/04_Psycholinguistics/self-paced-reading-designer/SKILL.md +257 -0
  48. package/skills/04_Psycholinguistics/self-paced-reading-designer/references/analysis-guide.md +356 -0
  49. package/skills/04_Psycholinguistics/self-paced-reading-designer/references/region-segmentation.md +266 -0
  50. package/skills/04_Psycholinguistics/sentence-stimulus-norming/SKILL.md +346 -0
  51. package/skills/04_Psycholinguistics/sentence-stimulus-norming/references/lexical-databases-guide.md +184 -0
  52. package/skills/05_EEG_ERP/eeg-paradigm-designer/SKILL.md +226 -0
  53. package/skills/05_EEG_ERP/eeg-paradigm-designer/references/component-paradigm-map.md +276 -0
  54. package/skills/05_EEG_ERP/eeg-paradigm-designer/references/timing-parameters.md +244 -0
  55. package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/SKILL.md +367 -0
  56. package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/references/parameter-lookup-tables.md +138 -0
  57. package/skills/05_EEG_ERP/erp-analysis/SKILL.md +185 -0
  58. package/skills/05_EEG_ERP/erp-analysis/references/erp-components.md +447 -0
  59. package/skills/05_EEG_ERP/erp-analysis/references/preprocessing-pipeline.md +277 -0
  60. package/skills/05_EEG_ERP/erp-analysis/references/statistical-approaches.md +351 -0
  61. package/skills/05_EEG_ERP/mne-python-guide/SKILL.md +174 -0
  62. package/skills/05_EEG_ERP/mne-python-guide/references/decoding.md +178 -0
  63. package/skills/05_EEG_ERP/mne-python-guide/references/io_formats.md +160 -0
  64. package/skills/05_EEG_ERP/mne-python-guide/references/preprocessing.md +259 -0
  65. package/skills/05_EEG_ERP/mne-python-guide/references/simulation.md +173 -0
  66. package/skills/05_EEG_ERP/mne-python-guide/references/source_localization.md +234 -0
  67. package/skills/05_EEG_ERP/mne-python-guide/references/statistics.md +196 -0
  68. package/skills/05_EEG_ERP/mne-python-guide/references/time_frequency.md +165 -0
  69. package/skills/05_EEG_ERP/mne-python-guide/references/visualization.md +175 -0
  70. package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/SKILL.md +317 -0
  71. package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
  72. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/SKILL.md +296 -0
  73. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/design-matrix-guide.md +214 -0
  74. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/statistical-inference.md +288 -0
  75. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/SKILL.md +274 -0
  76. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/quality-control.md +336 -0
  77. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/step-by-step-pipeline.md +380 -0
  78. package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/SKILL.md +264 -0
  79. package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/references/design-optimization-examples.md +114 -0
  80. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/SKILL.md +273 -0
  81. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/decoding-methods.md +170 -0
  82. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/rsa-guide.md +266 -0
  83. package/skills/06_fMRI_Neuroimaging/pycortex-guide/SKILL.md +123 -0
  84. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/database-subjects.md +179 -0
  85. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/dataset-types.md +208 -0
  86. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/freesurfer-fmriprep.md +162 -0
  87. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mapping-transforms.md +181 -0
  88. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mni-utils.md +207 -0
  89. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/surface-analysis.md +219 -0
  90. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/visualization.md +251 -0
  91. package/skills/07_Computational_Modeling/act-r-model-builder/SKILL.md +297 -0
  92. package/skills/07_Computational_Modeling/act-r-model-builder/references/model-patterns.md +197 -0
  93. package/skills/07_Computational_Modeling/act-r-model-builder/references/parameter-table.yaml +204 -0
  94. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/SKILL.md +294 -0
  95. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/diagnostics-checklist.md +351 -0
  96. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/prior-selection-guide.md +241 -0
  97. package/skills/07_Computational_Modeling/parameter-recovery-checker/SKILL.md +269 -0
  98. package/skills/07_Computational_Modeling/parameter-recovery-checker/references/recovery-diagnostics.md +207 -0
  99. package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/SKILL.md +317 -0
  100. package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
  101. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/SKILL.md +273 -0
  102. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/decoding-methods.md +170 -0
  103. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/rsa-guide.md +266 -0
  104. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/SKILL.md +305 -0
  105. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/data-requirements.md +60 -0
  106. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/method-comparison.md +151 -0
  107. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/SKILL.md +376 -0
  108. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/hh-parameters.md +117 -0
  109. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/network-regimes.md +130 -0
  110. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/SKILL.md +258 -0
  111. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/indicator-parameters.md +242 -0
  112. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/pipeline-details.md +211 -0
  113. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/SKILL.md +261 -0
  114. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/opsin-catalog.md +124 -0
  115. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/stimulation-parameters.md +304 -0
  116. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/SKILL.md +367 -0
  117. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/disconnection-guide.md +152 -0
  118. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/vlsm-pipeline.md +182 -0
  119. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/SKILL.md +250 -0
  120. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/deficit-profiles.md +302 -0
  121. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/test-catalog.md +304 -0
  122. package/skills/11_Developmental_Cognition/infant-looking-time-designer/SKILL.md +345 -0
  123. package/skills/11_Developmental_Cognition/infant-looking-time-designer/references/age-parameters.yaml +186 -0
  124. package/skills/12_Social_Cognition/tom-task-selector/SKILL.md +379 -0
  125. package/skills/12_Social_Cognition/tom-task-selector/references/task-database.md +317 -0
  126. package/skills/13_Visualization/nature-figure/README.md +442 -0
  127. package/skills/13_Visualization/nature-figure/SKILL.md +60 -0
  128. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-01-bar-charts.png +0 -0
  129. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-02-line-trends.png +0 -0
  130. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-03-heatmaps.png +0 -0
  131. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-04-scatter-bubble.png +0 -0
  132. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-05-radar-polar.png +0 -0
  133. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-06-distributions.png +0 -0
  134. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-07-forest-interval.png +0 -0
  135. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-08-area-stacked.png +0 -0
  136. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-09-image-plates.png +0 -0
  137. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-10-network-matrix.png +0 -0
  138. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_motivation.png +0 -0
  139. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation.png +0 -0
  140. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation_distillation.png +0 -0
  141. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_contrastive.png +0 -0
  142. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_CEDAR.png +0 -0
  143. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_IEDB.png +0 -0
  144. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_schematic.png +0 -0
  145. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/RNAGenScape_schematic.png +0 -0
  146. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/ablation.png +0 -0
  147. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/comparison.png +0 -0
  148. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_ablation.py +86 -0
  149. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_comparison.py +109 -0
  150. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/diffusion_swiss_roll.py +97 -0
  151. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/diffusion_swiss_roll.png +0 -0
  152. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.pdf +0 -0
  153. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.png +0 -0
  154. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.pdf +0 -0
  155. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.png +0 -0
  156. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.pdf +0 -0
  157. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.png +0 -0
  158. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Ablation.py +64 -0
  159. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_GeneRegulatory.py +74 -0
  160. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Trajectory.py +74 -0
  161. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/idea.png +0 -0
  162. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/illustration.png +0 -0
  163. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_idea.py +76 -0
  164. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_illustration.py +404 -0
  165. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/figures/freq_prior.png +0 -0
  166. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/plot_freq_prior.py +146 -0
  167. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_Cancer.png +0 -0
  168. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_IEDB.png +0 -0
  169. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_Cancer.png +0 -0
  170. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_IEDB.png +0 -0
  171. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/plot_bars.py +216 -0
  172. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/raw_data.py +125 -0
  173. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold.png +0 -0
  174. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold_holes.png +0 -0
  175. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_optimization.png +0 -0
  176. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_speed.png +0 -0
  177. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_sweep.png +0 -0
  178. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_comparison.py +228 -0
  179. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_hole_manifold.py +82 -0
  180. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_manifold.py +61 -0
  181. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_sweep.py +77 -0
  182. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_posttraining.png +0 -0
  183. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_radar.png +0 -0
  184. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_comparison_radar.py +173 -0
  185. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_posttraining.py +82 -0
  186. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/brute_force.png +0 -0
  187. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_category.png +0 -0
  188. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_subcategory.png +0 -0
  189. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/rewriting.png +0 -0
  190. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/selfcorrection_math.png +0 -0
  191. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_brute_force.py +248 -0
  192. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_category.py +132 -0
  193. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_subcategory.py +131 -0
  194. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_rewriting.py +105 -0
  195. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_selfcorrection_math.py +99 -0
  196. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/composition_heatmap.png +0 -0
  197. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/trend_by_month.png +0 -0
  198. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_composition.py +81 -0
  199. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_trend.py +125 -0
  200. package/skills/13_Visualization/nature-figure/assets/gallery/fig1-material-mechanism-rich.png +0 -0
  201. package/skills/13_Visualization/nature-figure/assets/gallery/fig2-spatial-imaging-rich.png +0 -0
  202. package/skills/13_Visualization/nature-figure/assets/gallery/fig3-in-vivo-efficacy-rich.png +0 -0
  203. package/skills/13_Visualization/nature-figure/assets/gallery/fig4-single-cell-systems-rich.png +0 -0
  204. package/skills/13_Visualization/nature-figure/assets/gallery/fig5-validation-perturbation-rich.png +0 -0
  205. package/skills/13_Visualization/nature-figure/evals/evals.json +37 -0
  206. package/skills/13_Visualization/nature-figure/manifest.yaml +57 -0
  207. package/skills/13_Visualization/nature-figure/references/api.md +428 -0
  208. package/skills/13_Visualization/nature-figure/references/backend-selection.md +100 -0
  209. package/skills/13_Visualization/nature-figure/references/chart-types.md +281 -0
  210. package/skills/13_Visualization/nature-figure/references/common-patterns.md +350 -0
  211. package/skills/13_Visualization/nature-figure/references/demos.md +65 -0
  212. package/skills/13_Visualization/nature-figure/references/design-theory.md +436 -0
  213. package/skills/13_Visualization/nature-figure/references/figure-contract.md +93 -0
  214. package/skills/13_Visualization/nature-figure/references/nature-2026-observations.md +112 -0
  215. package/skills/13_Visualization/nature-figure/references/qa-contract.md +119 -0
  216. package/skills/13_Visualization/nature-figure/references/r-template-index.md +66 -0
  217. package/skills/13_Visualization/nature-figure/references/r-workflow.md +161 -0
  218. package/skills/13_Visualization/nature-figure/references/tutorials.md +251 -0
  219. package/skills/13_Visualization/nature-figure/static/core/contract.md +29 -0
  220. package/skills/13_Visualization/nature-figure/static/core/stance.md +37 -0
  221. package/skills/13_Visualization/nature-figure/static/fragments/backend/python.md +37 -0
  222. package/skills/13_Visualization/nature-figure/static/fragments/backend/r.md +44 -0
  223. package/skills/14_Writing/markdown-report-writing/SKILL.md +306 -0
  224. package/skills/14_Writing/markdown-report-writing/references/compatibility-matrix.md +72 -0
  225. package/skills/14_Writing/markdown-report-writing/references/templates.md +299 -0
  226. package/skills/15_Others/neuroimaging-power-guide/SKILL.md +324 -0
  227. package/skills/15_Others/neuroimaging-power-guide/references/effect-size-lookup-tables.md +102 -0
  228. package/skills/15_Others/neuroimaging-sample-size-calculator/SKILL.md +330 -0
  229. package/skills/15_Others/neuroimaging-sample-size-calculator/references/worked-examples.md +220 -0
@@ -0,0 +1,151 @@
1
+ # Method Comparison: Detailed Parameters and Software for Neural Population Analysis
2
+
3
+ This reference document supplements `SKILL.md` with extended method comparisons, parameter tables, and software recommendations.
4
+
5
+ ## Full Method Comparison Table
6
+
7
+ | Method | Type | Temporal? | Task-driven? | Single-trial? | Key assumption | Best for | Source |
8
+ |---|---|---|---|---|---|---|---|
9
+ | PCA | Linear, static | No | No | Optional | Orthogonal components | Quick exploration; condition-averaged trajectories | Cunningham & Yu, 2014 |
10
+ | Factor Analysis | Linear, static | No | No | Yes | Shared + private variance | When noise structure matters | Cunningham & Yu, 2014 |
11
+ | GPFA | Linear, dynamic | Yes | No | Yes | Gaussian process smoothness | Single-trial latent trajectories | Yu et al., 2009 |
12
+ | dPCA | Linear, task-driven | Implicit | Yes | No (trial-avg) | Factorial design | Demixing task variables | Kobak et al., 2016 |
13
+ | jPCA | Linear, dynamic | Yes | No | No (trial-avg) | Rotational dynamics | Motor cortex dynamics | Churchland et al., 2012 |
14
+ | t-SNE | Nonlinear | No | No | Optional | Local distance preservation | Visualization ONLY | van der Maaten & Hinton, 2008 |
15
+ | UMAP | Nonlinear | No | No | Optional | Topological structure | Visualization ONLY | McInnes et al., 2018 |
16
+ | LFADS | Nonlinear, dynamic | Yes | No | Yes | RNN dynamics | Large datasets; complex dynamics | Pandarinath et al., 2018 |
17
+
18
+ ## PCA Parameters
19
+
20
+ ### Soft Normalization Details
21
+
22
+ The soft normalization procedure (Churchland et al., 2012):
23
+
24
+ ```
25
+ For each neuron i:
26
+ 1. Compute mean firing rate across all conditions and time: mean_i
27
+ 2. Compute the range (max - min) of the condition-averaged PSTH: range_i
28
+ 3. Normalized rate = (rate_i - mean_i) / (range_i + alpha)
29
+ ```
30
+
31
+ where `alpha = 5 spikes/s` is the soft normalization constant. This value was chosen to prevent low-firing neurons (range < 5 sp/s) from dominating while still allowing moderate-to-high firing neurons to contribute proportionally (Churchland et al., 2012).
32
+
33
+ ### Alternative: Square-Root Transform
34
+
35
+ ```
36
+ transformed = sqrt(spike_count / bin_width + 0.5)
37
+ ```
38
+
39
+ The addition of 0.5 stabilizes the transform for zero counts. This is a variance-stabilizing transform for Poisson-distributed spike counts (Churchland et al., 2012).
40
+
41
+ ### Parallel Analysis for Dimensionality (Humphries, 2021)
42
+
43
+ 1. Compute eigenvalues from actual data PCA
44
+ 2. Generate null data: for each neuron, shuffle the data (or use random Gaussian data matched in size)
45
+ 3. Compute eigenvalues from null data PCA
46
+ 4. Repeat null step 100--1000 times
47
+ 5. For each PC, compute the 95th percentile of null eigenvalues
48
+ 6. Signal dimensions = number of real eigenvalues exceeding the 95th percentile null
49
+
50
+ ## GPFA Implementation Details
51
+
52
+ ### Expectation-Maximization (EM) Algorithm
53
+
54
+ GPFA uses EM to learn model parameters (Yu et al., 2009):
55
+
56
+ - **E-step**: Infer latent trajectories given current parameters
57
+ - **M-step**: Update loading matrix C, private noise variances d, and GP hyperparameters
58
+ - **Convergence**: Monitor log-likelihood; typically converges within 50--200 iterations
59
+ - **Initialization**: Initialize with Factor Analysis solution
60
+
61
+ ### Cross-Validation for Dimensionality
62
+
63
+ 1. Hold out one neuron at a time (leave-one-neuron-out)
64
+ 2. Fit GPFA on remaining neurons
65
+ 3. Predict held-out neuron's activity from the inferred latent trajectories
66
+ 4. Compute log-likelihood of held-out data
67
+ 5. Average across held-out neurons
68
+ 6. Choose dimensionality maximizing average held-out log-likelihood
69
+
70
+ ### Bin Size Considerations
71
+
72
+ | Bin size | Temporal resolution | SNR | Typical application | Source |
73
+ |---|---|---|---|---|
74
+ | 10 ms | High | Low | Fast dynamics (e.g., saccades) | Expert consensus |
75
+ | 20 ms | Good | Medium | Motor cortex reaching | Yu et al., 2009 |
76
+ | 50 ms | Moderate | High | Slower cognitive tasks | Yu et al., 2009 |
77
+ | 100 ms | Low | Very high | Very slow processes; prefrontal dynamics | Expert consensus |
78
+
79
+ ## dPCA Implementation Details
80
+
81
+ ### Marginalization Procedure (Kobak et al., 2016)
82
+
83
+ For a factorial design with stimulus (S), decision (D), and time (T):
84
+
85
+ 1. **Full data tensor**: X(neuron, stimulus, decision, time, trial)
86
+ 2. **Trial-average**: X_avg(neuron, stimulus, decision, time)
87
+ 3. **Marginalizations**:
88
+ - Time: average over stimulus and decision -> X_t(neuron, time)
89
+ - Stimulus: average over decision -> X_s(neuron, stimulus, time) minus X_t
90
+ - Decision: average over stimulus -> X_d(neuron, decision, time) minus X_t
91
+ - Interaction: X_avg - X_t - X_s - X_d
92
+
93
+ 4. **For each marginalization**: Find encoder/decoder pairs that maximize marginalized variance
94
+
95
+ ### Regularization Selection
96
+
97
+ ```
98
+ Lambda grid: logarithmically spaced from 1e-7 to 1e0
99
+ Cross-validation: hold out 20% of trials
100
+ Metric: reconstruction error on held-out trials
101
+ Select lambda minimizing held-out error
102
+ ```
103
+
104
+ Typical optimal lambda values fall in the range 1e-4 to 1e-2 (Kobak et al., 2016).
105
+
106
+ ## jPCA Details (Churchland et al., 2012)
107
+
108
+ ### Procedure
109
+
110
+ 1. Perform PCA to reduce to 6 dimensions (captures >90% of condition-averaged variance in motor cortex data)
111
+ 2. Compute the time derivative of the PC trajectories: dX/dt
112
+ 3. Fit a linear dynamical system: dX/dt = M * X
113
+ 4. Decompose M into symmetric (M_symm) and skew-symmetric (M_skew) parts
114
+ 5. jPCA finds the skew-symmetric component, which captures rotational dynamics
115
+ 6. Project data onto the top jPCA plane
116
+
117
+ ### Interpretation
118
+
119
+ - Strong rotational fit (R^2 > 0.5 for M_skew) suggests rotational dynamics in the population
120
+ - Rotational dynamics have been found in motor cortex (Churchland et al., 2012) and other areas
121
+ - Absence of rotational dynamics is also informative (suggests non-oscillatory population dynamics)
122
+
123
+ ## Software Recommendations
124
+
125
+ | Software | Language | Methods | Source |
126
+ |---|---|---|---|
127
+ | **DataHigh** | MATLAB | GPFA, PCA, FA | Yu et al., 2009; Cowley et al., 2013 |
128
+ | **dPCA toolbox** | Python, MATLAB | dPCA | Kobak et al., 2016 (github.com/machenslab/dPCA) |
129
+ | **elephant** | Python | PCA, FA, GPFA | INCF (elephant.readthedocs.io) |
130
+ | **scikit-learn** | Python | PCA, FA, t-SNE | Pedregosa et al., 2011 |
131
+ | **LFADS** | Python (TF) | LFADS | Pandarinath et al., 2018 |
132
+ | **pyaldata** | Python | Population analysis utilities | Lawlor et al., 2018 |
133
+ | **UMAP** | Python | UMAP | McInnes et al., 2018 (umap-learn) |
134
+
135
+ ### Key Software Notes
136
+
137
+ - For GPFA: the original MATLAB code from Yu et al. (2009) remains the reference implementation. The elephant Python library provides a maintained Python version.
138
+ - For dPCA: the official toolbox (github.com/machenslab/dPCA) provides both Python and MATLAB implementations with cross-validation and shuffle testing built in.
139
+ - For jPCA: the original MATLAB code from Churchland et al. (2012) is available from the Shenoy lab website.
140
+
141
+ ## References
142
+
143
+ - Churchland, M. M., et al. (2012). Neural population dynamics during reaching. *Nature*, 487(7405), 51--56.
144
+ - Cowley, B. R., et al. (2013). DataHigh: Graphical user interface for visualizing and interacting with high-dimensional neural activity. *Journal of Neural Engineering*, 10(6), 066012.
145
+ - Cunningham, J. P., & Yu, B. M. (2014). Dimensionality reduction for large-scale neural recordings. *Nature Neuroscience*, 17(11), 1500--1509.
146
+ - Humphries, M. D. (2021). Strong and weak principles of neural dimension reduction. *Neuron*, 109(8), 1230--1234.
147
+ - Kobak, D., et al. (2016). Demixed principal component analysis of neural population data. *eLife*, 5, e10989.
148
+ - McInnes, L., Healy, J., & Melville, J. (2018). UMAP: Uniform manifold approximation and projection for dimension reduction. *arXiv:1802.03426*.
149
+ - Pandarinath, C., et al. (2018). Inferring single-trial neural population dynamics using sequential auto-encoders. *Nature Methods*, 15(10), 805--815.
150
+ - van der Maaten, L., & Hinton, G. (2008). Visualizing data using t-SNE. *Journal of Machine Learning Research*, 9, 2579--2605.
151
+ - Yu, B. M., et al. (2009). Gaussian-process factor analysis for low-dimensional single-trial analysis of neural population activity. *Journal of Neurophysiology*, 102(1), 614--635.
@@ -0,0 +1,376 @@
1
+ ---
2
+ name: "spiking-network-model-builder"
3
+ description: "Assists building spiking neural network simulations: neuron models, connectivity, plasticity rules"
4
+ domain: "computational-neuroscience"
5
+ version: "1.0.0"
6
+ authors:
7
+ - "Claude Code Agent"
8
+ papers:
9
+ - "Brette & Gerstner, 2005"
10
+ - "Brunel, 2000"
11
+ - "Izhikevich, 2003"
12
+ - "Bi & Poo, 1998"
13
+ - "Dayan & Abbott, 2001"
14
+ - "Gerstner et al., 2014"
15
+ dependencies:
16
+ required:
17
+ - research-literacy
18
+ review_status: "ai-generated"
19
+ ---
20
+
21
+ # Spiking Network Model Builder
22
+
23
+ ## Purpose
24
+
25
+ This skill encodes expert methodological knowledge for constructing biologically realistic spiking neural network simulations. A competent programmer without computational neuroscience training will get this wrong because:
26
+
27
+ - **Neuron model choice determines what phenomena can emerge.** A leaky integrate-and-fire (LIF) neuron cannot produce bursting, adaptation, or rebound spikes. If your phenomenon depends on these, you need an AdEx or Izhikevich model, not just a "more complex" model (Izhikevich, 2004).
28
+ - **E/I balance is not optional.** Cortical networks maintain a tight excitation/inhibition balance. Networks without proper E/I ratio produce either silence or epileptiform runaway activity, neither of which is biologically realistic (Brunel, 2000).
29
+ - **Synaptic time constants encode biology.** AMPA (fast, ~5 ms), NMDA (slow, ~100 ms), and GABA_A (~10 ms) receptors have fundamentally different dynamics. Using a single generic synapse model erases critical temporal structure (Dayan & Abbott, 2001).
30
+ - **Time step selection affects correctness.** Too-large integration steps cause LIF neurons to miss spikes and HH neurons to become numerically unstable. The correct step depends on the neuron model, not general ODE intuition (Rotter & Diesmann, 1999).
31
+ - **Weight scaling must respect network size.** Naive weight choices produce firing rates that change with network size. Balanced networks require 1/sqrt(N) scaling (Brunel, 2000).
32
+
33
+ ## When to Use This Skill
34
+
35
+ - Constructing a spiking neural network simulation for a research question
36
+ - Choosing a neuron model appropriate for the phenomenon of interest
37
+ - Setting biologically constrained connectivity parameters
38
+ - Implementing synaptic plasticity (STDP, homeostatic, etc.)
39
+ - Validating model outputs against known cortical statistics
40
+ - Selecting simulation software and numerical parameters
41
+
42
+ Do NOT use this skill for:
43
+
44
+ - Rate-based neural network models (use standard ML/deep learning frameworks)
45
+ - Detailed compartmental modeling of single neurons (use NEURON with morphological data)
46
+ - Analyzing experimental neural data (see `neural-population-analysis-guide`)
47
+
48
+ ## Research Planning Protocol
49
+
50
+ Before executing the domain-specific steps below, you MUST:
51
+
52
+ 1. **State the research question** -- What specific question is this analysis/paradigm addressing?
53
+ 2. **Justify the method choice** -- Why is this approach appropriate? What alternatives were considered?
54
+ 3. **Declare expected outcomes** -- What results would support vs. refute the hypothesis?
55
+ 4. **Note assumptions and limitations** -- What does this method assume? Where could it mislead?
56
+ 5. **Present the plan to the user and WAIT for confirmation** before proceeding.
57
+
58
+ For detailed methodology guidance, see the `research-literacy` skill.
59
+
60
+ ---
61
+
62
+
63
+ ## ⚠️ Verification Notice
64
+
65
+ This skill was generated by AI from academic literature. All parameters, thresholds, and citations require independent verification before use in research. If you find errors, please [open an issue](https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills/issues).
66
+
67
+ ## Step 1: Select a Neuron Model
68
+
69
+ ### Neuron Model Decision Tree
70
+
71
+ ```
72
+ What firing properties does your model need?
73
+ |
74
+ +-- "Just spikes, basic rate coding, large networks"
75
+ | --> Leaky Integrate-and-Fire (LIF)
76
+ | Simplest; fastest simulation; no adaptation or bursting
77
+ |
78
+ +-- "Spike initiation sharpness matters"
79
+ | --> Exponential IF (EIF)
80
+ | Adds realistic spike onset; still single-variable
81
+ |
82
+ +-- "Spike-frequency adaptation or bursting"
83
+ | --> Adaptive Exponential IF (AdEx)
84
+ | Two variables; can produce regular spiking, bursting,
85
+ | intrinsic oscillations, adaptation
86
+ |
87
+ +-- "Diverse firing patterns with minimal complexity"
88
+ | --> Izhikevich model
89
+ | Four parameters; 20+ firing patterns; fast to simulate
90
+ |
91
+ +-- "Biophysically detailed ion channel dynamics"
92
+ --> Hodgkin-Huxley (HH)
93
+ Four variables; channel-level accuracy; slow to simulate
94
+ Use only when ion channel pharmacology is relevant
95
+ ```
96
+
97
+ ### Neuron Model Parameters
98
+
99
+ #### Leaky Integrate-and-Fire (LIF)
100
+
101
+ | Parameter | Symbol | Value | Source |
102
+ |---|---|---|---|
103
+ | Resting potential | V_rest | **-65 mV** | Dayan & Abbott, 2001 |
104
+ | Threshold | V_thresh | **-50 mV** | Dayan & Abbott, 2001 |
105
+ | Reset potential | V_reset | **-65 mV** | Dayan & Abbott, 2001 |
106
+ | Membrane time constant | tau_m | **20 ms** | Dayan & Abbott, 2001 |
107
+ | Membrane resistance | R_m | **100 MOhm** (typical cortical) | Dayan & Abbott, 2001 |
108
+ | Refractory period | t_ref | **2 ms** (absolute) | Dayan & Abbott, 2001 |
109
+
110
+ #### Exponential Integrate-and-Fire (EIF)
111
+
112
+ | Parameter | Symbol | Value | Source |
113
+ |---|---|---|---|
114
+ | All LIF parameters | -- | Same as above | Dayan & Abbott, 2001 |
115
+ | Sharpness of spike initiation | Delta_T | **2 mV** | Fourcaud-Trocme et al., 2003 |
116
+ | Spike detection threshold | V_peak | **0 mV** or **20 mV** | Fourcaud-Trocme et al., 2003 |
117
+
118
+ #### Adaptive Exponential IF (AdEx)
119
+
120
+ | Parameter | Symbol | Value | Source |
121
+ |---|---|---|---|
122
+ | Subthreshold adaptation | a | **4 nS** | Brette & Gerstner, 2005 |
123
+ | Spike-triggered adaptation | b | **0.08 nA** (80 pA) | Brette & Gerstner, 2005 |
124
+ | Adaptation time constant | tau_w | **100--300 ms** | Brette & Gerstner, 2005 |
125
+ | Spike initiation sharpness | Delta_T | **2 mV** | Brette & Gerstner, 2005 |
126
+ | All EIF parameters | -- | Same as EIF above | Brette & Gerstner, 2005 |
127
+
128
+ **AdEx firing patterns by parameter regime** (Brette & Gerstner, 2005; Naud et al., 2008):
129
+
130
+ | Pattern | a (nS) | b (nA) | tau_w (ms) | Typical neuron type |
131
+ |---|---|---|---|---|
132
+ | Regular spiking | 4 | 0.08 | 150 | Cortical pyramidal |
133
+ | Bursting | 4 | 0.5 | 100 | Intrinsically bursting |
134
+ | Fast spiking | 0 | 0 | -- | PV+ interneuron (no adaptation) |
135
+ | Adapting | 4 | 0.08 | 300 | Slow-adapting pyramidal |
136
+
137
+ #### Izhikevich Model
138
+
139
+ The model uses two variables (v, u) with four parameters (a, b, c, d) (Izhikevich, 2003):
140
+
141
+ | Pattern | a | b | c (mV) | d | Source |
142
+ |---|---|---|---|---|---|
143
+ | Regular spiking | 0.02 | 0.2 | -65 | 8 | Izhikevich, 2003 |
144
+ | Intrinsically bursting | 0.02 | 0.2 | -55 | 4 | Izhikevich, 2003 |
145
+ | Chattering | 0.02 | 0.2 | -50 | 2 | Izhikevich, 2003 |
146
+ | Fast spiking | 0.1 | 0.2 | -65 | 2 | Izhikevich, 2003 |
147
+ | Low-threshold spiking | 0.02 | 0.25 | -65 | 2 | Izhikevich, 2003 |
148
+
149
+ #### Hodgkin-Huxley (HH)
150
+
151
+ Use only when biophysical detail is required. See `references/hh-parameters.md` for the full parameter set. Key values (Hodgkin & Huxley, 1952):
152
+
153
+ - g_Na = **120 mS/cm^2**, E_Na = **50 mV**
154
+ - g_K = **36 mS/cm^2**, E_K = **-77 mV**
155
+ - g_L = **0.3 mS/cm^2**, E_L = **-54.4 mV**
156
+ - C_m = **1 uF/cm^2**
157
+
158
+ ---
159
+
160
+ ## Step 2: Configure Synapses
161
+
162
+ ### Synaptic Time Constants
163
+
164
+ | Receptor | tau_rise | tau_decay | Net tau_syn | Source |
165
+ |---|---|---|---|---|
166
+ | **AMPA** | ~0.5 ms | ~5 ms | **5 ms** (single exponential) | Dayan & Abbott, 2001 |
167
+ | **NMDA** | ~2 ms | ~100 ms | **100 ms** (single exponential) | Dayan & Abbott, 2001 |
168
+ | **GABA_A** | ~0.5 ms | ~10 ms | **10 ms** (single exponential) | Dayan & Abbott, 2001 |
169
+ | **GABA_B** | ~50 ms | ~200 ms | **200 ms** (single exponential) | Dayan & Abbott, 2001 |
170
+
171
+ ### Conductance-Based vs. Current-Based Synapses
172
+
173
+ | Type | Equation | When to Use | Source |
174
+ |---|---|---|---|
175
+ | **Current-based** | I_syn = w * g(t) | Large networks; faster simulation; when voltage-dependent effects are unimportant | Brunel, 2000 |
176
+ | **Conductance-based** | I_syn = g(t) * (V - E_rev) | When synaptic interactions depend on membrane potential (e.g., NMDA voltage dependence, shunting inhibition) | Dayan & Abbott, 2001 |
177
+
178
+ > **Domain judgment**: Current-based synapses are appropriate for most network-level studies. Switch to conductance-based when the research question involves voltage-dependent effects (NMDA Mg2+ block, shunting inhibition) or when accurate I-V relationships matter (Brunel, 2000; Dayan & Abbott, 2001).
179
+
180
+ ### Short-Term Plasticity: Tsodyks-Markram Model
181
+
182
+ The Tsodyks-Markram (TM) model captures short-term facilitation and depression (Tsodyks & Markram, 1997):
183
+
184
+ | Parameter | Facilitating synapse | Depressing synapse | Source |
185
+ |---|---|---|---|
186
+ | U (initial release prob.) | **0.1** | **0.5** | Tsodyks & Markram, 1997 |
187
+ | tau_rec (recovery time) | **800 ms** | **800 ms** | Tsodyks & Markram, 1997 |
188
+ | tau_fac (facilitation time) | **1000 ms** | **0 ms** (no facilitation) | Tsodyks & Markram, 1997 |
189
+
190
+ ---
191
+
192
+ ## Step 3: Configure Network Connectivity
193
+
194
+ ### Excitatory/Inhibitory Balance
195
+
196
+ | Parameter | Value | Source |
197
+ |---|---|---|
198
+ | Excitatory fraction | **80%** of neurons | Braitenberg & Schutz, 1998 |
199
+ | Inhibitory fraction | **20%** of neurons | Braitenberg & Schutz, 1998 |
200
+ | E-to-E connection probability | **10--20%** (random) | Brunel, 2000 |
201
+ | E-to-I connection probability | **10--20%** | Brunel, 2000 |
202
+ | I-to-E connection probability | **10--20%** | Brunel, 2000 |
203
+ | I-to-I connection probability | **10--20%** | Brunel, 2000 |
204
+
205
+ ### Weight Scaling for Balanced Networks
206
+
207
+ For a balanced network to produce biologically realistic asynchronous irregular (AI) firing (Brunel, 2000):
208
+
209
+ - **Excitatory weight**: J_E = J_0 / sqrt(N_E * p), where N_E is excitatory population size and p is connection probability
210
+ - **Inhibitory weight**: J_I = -g * J_E, where **g > 1** (typically g = 4--8 for the AI regime)
211
+ - **External drive**: Poisson input to maintain target firing rates
212
+
213
+ > **Domain judgment**: The ratio g = J_I/J_E (relative inhibitory strength) determines the network regime. g < 4 produces synchronous regular firing; g = 4--8 produces the biologically realistic asynchronous irregular (AI) state; g >> 8 produces very low firing rates or silence (Brunel, 2000).
214
+
215
+ ### Network Size
216
+
217
+ | Scale | Neurons | Typical Use | Source |
218
+ |---|---|---|---|
219
+ | Minimal | 100--500 | Quick tests; parameter exploration | Expert consensus |
220
+ | Cortical column | **1,000--10,000** | Standard for cortical circuit models | Brunel, 2000 |
221
+ | Large-scale | 10,000--100,000 | Multi-area models; detailed column | Potjans & Diesmann, 2014 |
222
+
223
+ ---
224
+
225
+ ## Step 4: Implement Plasticity Rules
226
+
227
+ ### Spike-Timing-Dependent Plasticity (STDP)
228
+
229
+ Standard pair-based STDP parameters (Bi & Poo, 1998; Song et al., 2000):
230
+
231
+ | Parameter | Symbol | Value | Source |
232
+ |---|---|---|---|
233
+ | Potentiation time constant | tau_+ | **20 ms** | Bi & Poo, 1998 |
234
+ | Depression time constant | tau_- | **20 ms** | Bi & Poo, 1998 |
235
+ | Potentiation amplitude | A_+ | **0.01** (relative) | Song et al., 2000 |
236
+ | Depression amplitude | A_- | **-0.012** (|A_-| > A_+) | Song et al., 2000 |
237
+ | Maximum weight | w_max | Set to prevent runaway | Song et al., 2000 |
238
+
239
+ > **Domain judgment**: The asymmetry |A_-| > A_+ is critical. Without it, STDP drives all weights to their maximum value (runaway potentiation). The slight depression bias ensures stable weight distributions (Song et al., 2000). Additional stabilization mechanisms (weight dependence, homeostatic plasticity) are often needed in practice.
240
+
241
+ ### Rate-Based Plasticity: BCM Rule
242
+
243
+ The Bienenstock-Cooper-Munro (BCM) rule provides a stable, rate-based plasticity rule (Bienenstock et al., 1982):
244
+
245
+ - **Learning rule**: dw/dt = eta * y * (y - theta_m) * x
246
+ - **Sliding threshold**: theta_m = E[y^2], ensuring stability
247
+ - Where y = postsynaptic rate, x = presynaptic rate, eta = learning rate
248
+
249
+ ### Homeostatic Plasticity
250
+
251
+ For long simulations with STDP, add homeostatic mechanisms to prevent runaway dynamics:
252
+
253
+ - **Synaptic scaling**: Multiplicatively scale all incoming weights to maintain target firing rate (Turrigiano et al., 1998)
254
+ - **Intrinsic plasticity**: Adjust neuronal excitability (threshold or adaptation) to maintain target rate (Desai et al., 1999)
255
+ - **Target firing rate**: **1--5 Hz** for excitatory cortical neurons (expert consensus based on in vivo recordings)
256
+
257
+ ---
258
+
259
+ ## Step 5: Set Simulation Parameters
260
+
261
+ ### Integration Time Step
262
+
263
+ | Neuron Model | Recommended dt | Maximum dt | Rationale | Source |
264
+ |---|---|---|---|---|
265
+ | LIF | **0.1 ms** | 0.5 ms | Exact integration possible; larger steps miss coincident spikes | Rotter & Diesmann, 1999 |
266
+ | EIF / AdEx | **0.1 ms** | 0.1 ms | Exponential term requires small steps near threshold | Brette & Gerstner, 2005 |
267
+ | Izhikevich | **0.1 ms** | 0.5 ms (with Euler) | Use 0.5 ms with two half-steps per Izhikevich (2003) | Izhikevich, 2003 |
268
+ | Hodgkin-Huxley | **0.01--0.05 ms** | 0.05 ms | Gating variable dynamics require fine resolution | Rotter & Diesmann, 1999 |
269
+
270
+ ### Simulation Duration
271
+
272
+ | Phenomenon | Minimum Duration | Rationale | Source |
273
+ |---|---|---|---|
274
+ | Network stabilization (transient) | **500 ms** discard | Allow initial transient to decay | Expert consensus |
275
+ | Asynchronous irregular state | **1--5 s** after transient | Sufficient for firing rate and CV statistics | Brunel, 2000 |
276
+ | STDP weight development | **10--100 s** | Weights evolve slowly | Song et al., 2000 |
277
+ | Oscillation analysis | **2--10 s** | Need multiple cycles for spectral analysis | Expert consensus |
278
+
279
+ ---
280
+
281
+ ## Step 6: Validate the Model
282
+
283
+ ### Essential Validation Metrics
284
+
285
+ | Metric | Target Value | What It Indicates | Source |
286
+ |---|---|---|---|
287
+ | Mean firing rate (excitatory) | **1--10 Hz** | Realistic cortical activity | Brunel, 2000 |
288
+ | Mean firing rate (inhibitory) | **5--30 Hz** | Fast-spiking interneurons fire faster | Brunel, 2000 |
289
+ | CV of ISI | **~1.0** (0.8--1.2) | Irregular firing (Poisson-like) | Brunel, 2000; Softky & Koch, 1993 |
290
+ | Fano factor (spike count) | **~1.0** | Poisson-like variability | Softky & Koch, 1993 |
291
+ | Population synchrony (chi) | **< 0.2** for AI state | Asynchronous activity | Brunel, 2000 |
292
+ | Pairwise correlation | **0.01--0.1** | Weak correlations as in cortex | Cohen & Kohn, 2011 |
293
+
294
+ > **Domain judgment**: A network with mean firing rate in range but CV << 1 (regular firing) is NOT in a biologically realistic regime. Cortical neurons fire irregularly (CV ~ 1) even when the network is in a stationary state. If your CV is much less than 1, inhibition is likely too weak or connectivity too structured (Brunel, 2000).
295
+
296
+ ---
297
+
298
+ ## Simulator Selection
299
+
300
+ | Simulator | Language | Best For | Limitations | Source |
301
+ |---|---|---|---|---|
302
+ | **NEST** | Python/C++ | Large-scale LIF/IF networks; exact integration | Less flexible for custom models | Gewaltig & Diesmann, 2007 |
303
+ | **Brian2** | Python | Rapid prototyping; custom equations; education | Slower than NEST for very large networks | Stimberg et al., 2019 |
304
+ | **NEURON** | Python/HOC | Compartmental models; biophysical detail | Overkill for point-neuron networks | Hines & Carnevale, 1997 |
305
+ | **GeNN** | C++/Python | GPU-accelerated; very large networks | Requires NVIDIA GPU; steeper learning curve | Yavuz et al., 2016 |
306
+
307
+ > **Recommendation**: Start with **Brian2** for prototyping and model development. Use **NEST** for production runs of large-scale networks. Use **NEURON** only when compartmental morphology is needed. Use **GeNN** when GPU acceleration is required for network size (Stimberg et al., 2019).
308
+
309
+ ---
310
+
311
+ ## Common Pitfalls
312
+
313
+ ### 1. No E/I Balance
314
+
315
+ Networks without proper E/I ratio (80/20) and weight scaling produce unrealistic dynamics: runaway excitation, epileptiform synchrony, or silence. Always verify the network operates in the AI regime (Brunel, 2000).
316
+
317
+ ### 2. Ignoring the Initial Transient
318
+
319
+ The first 200--500 ms of simulation reflect initial conditions, not the network's steady state. Always discard this transient period before computing statistics (expert consensus).
320
+
321
+ ### 3. Wrong Time Step for the Neuron Model
322
+
323
+ Using dt = 1 ms for HH models causes numerical instability. Using dt = 0.01 ms for LIF networks wastes computation. Match dt to the model (Rotter & Diesmann, 1999).
324
+
325
+ ### 4. STDP Without Stabilization
326
+
327
+ Pair-based STDP alone drives weights to bimodal (all 0 or all w_max) distributions. Add weight dependence, homeostatic scaling, or use triplet STDP rules for stable learning (Song et al., 2000; Turrigiano et al., 1998).
328
+
329
+ ### 5. Network Size-Dependent Behavior
330
+
331
+ Changing network size N without rescaling weights (1/sqrt(N)) changes firing rates and dynamics. Always verify that results are robust to network size or explicitly rescale (Brunel, 2000).
332
+
333
+ ### 6. Using Conductance-Based Synapses When Current-Based Suffice
334
+
335
+ Conductance-based synapses are slower to simulate and add complexity. Unless voltage-dependent effects (NMDA, shunting inhibition) are central to the question, current-based synapses are appropriate and much faster (Brunel, 2000).
336
+
337
+ ---
338
+
339
+ ## Minimum Reporting Checklist
340
+
341
+ Based on Nordlie et al. (2009) model description standards and Brunel (2000):
342
+
343
+ - [ ] Neuron model type and all parameters (with units)
344
+ - [ ] Synapse model type (current vs. conductance) and time constants per receptor type
345
+ - [ ] Network size (N_E, N_I) and connection probability
346
+ - [ ] Weight values and scaling rule (how weights relate to N)
347
+ - [ ] External input description (Poisson rate, current injection)
348
+ - [ ] Plasticity rule and parameters (if applicable)
349
+ - [ ] Integration method and time step
350
+ - [ ] Simulation duration (including discarded transient)
351
+ - [ ] Validation metrics: mean firing rates, CV of ISI, synchrony measure
352
+ - [ ] Simulator name and version
353
+ - [ ] Random seed or number of independent realizations
354
+
355
+ ---
356
+
357
+ ## Key References
358
+
359
+ - Bi, G.-Q., & Poo, M.-M. (1998). Synaptic modifications in cultured hippocampal neurons: Dependence on spike timing, synaptic strength, and postsynaptic cell type. *Journal of Neuroscience*, 18(24), 10464--10472.
360
+ - Bienenstock, E. L., Cooper, L. N., & Munro, P. W. (1982). Theory for the development of neuron selectivity: Orientation specificity and binocular interaction in visual cortex. *Journal of Neuroscience*, 2(1), 32--48.
361
+ - Braitenberg, V., & Schutz, A. (1998). *Cortex: Statistics and Geometry of Neuronal Connectivity* (2nd ed.). Springer.
362
+ - Brette, R., & Gerstner, W. (2005). Adaptive exponential integrate-and-fire model as an effective description of neuronal activity. *Journal of Neurophysiology*, 94(5), 3637--3642.
363
+ - Brunel, N. (2000). Dynamics of sparsely connected networks of excitatory and inhibitory spiking neurons. *Journal of Computational Neuroscience*, 8(3), 183--208.
364
+ - Dayan, P., & Abbott, L. F. (2001). *Theoretical Neuroscience: Computational and Mathematical Modeling of Neural Systems*. MIT Press.
365
+ - Fourcaud-Trocme, N., Hansel, D., van Vreeswijk, C., & Brunel, N. (2003). How spike generation mechanisms determine the neuronal response to fluctuating inputs. *Journal of Neuroscience*, 23(37), 11628--11640.
366
+ - Gerstner, W., Kistler, W. M., Naud, R., & Paninski, L. (2014). *Neuronal Dynamics: From Single Neurons to Networks and Models of Cognition*. Cambridge University Press.
367
+ - Hodgkin, A. L., & Huxley, A. F. (1952). A quantitative description of membrane current and its application to conduction and excitation in nerve. *Journal of Physiology*, 117(4), 500--544.
368
+ - Izhikevich, E. M. (2003). Simple model of spiking neurons. *IEEE Transactions on Neural Networks*, 14(6), 1569--1572.
369
+ - Izhikevich, E. M. (2004). Which model to use for cortical spiking neurons? *IEEE Transactions on Neural Networks*, 15(5), 1063--1070.
370
+ - Nordlie, E., Gewaltig, M.-O., & Plesser, H. E. (2009). Towards reproducible descriptions of neuronal network models. *PLoS Computational Biology*, 5(8), e1000456.
371
+ - Rotter, S., & Diesmann, M. (1999). Exact digital simulation of time-invariant linear systems with applications to neuronal modeling. *Biological Cybernetics*, 81(5--6), 381--402.
372
+ - Song, S., Miller, K. D., & Abbott, L. F. (2000). Competitive Hebbian learning through spike-timing-dependent synaptic plasticity. *Nature Neuroscience*, 3(9), 919--926.
373
+ - Tsodyks, M. V., & Markram, H. (1997). The neural code between neocortical pyramidal neurons depends on neurotransmitter release probability. *Proceedings of the National Academy of Sciences*, 94(2), 719--723.
374
+
375
+ See `references/hh-parameters.md` for full Hodgkin-Huxley parameter tables.
376
+ See `references/network-regimes.md` for Brunel network regime diagrams and extended parameter sweeps.
@@ -0,0 +1,117 @@
1
+ # Hodgkin-Huxley Model: Full Parameter Tables
2
+
3
+ This reference document supplements `SKILL.md` with the complete Hodgkin-Huxley parameter set and its variants.
4
+
5
+ ## Original Hodgkin-Huxley Parameters (Squid Giant Axon)
6
+
7
+ All parameters from Hodgkin & Huxley (1952) at 6.3 degrees C:
8
+
9
+ ### Membrane Properties
10
+
11
+ | Parameter | Symbol | Value | Unit |
12
+ |---|---|---|---|
13
+ | Membrane capacitance | C_m | 1.0 | uF/cm^2 |
14
+ | Resting potential | V_rest | -65 | mV |
15
+
16
+ ### Ionic Conductances
17
+
18
+ | Channel | Max conductance (g) | Reversal potential (E) | Source |
19
+ |---|---|---|---|
20
+ | Sodium (Na) | 120 mS/cm^2 | +50 mV | Hodgkin & Huxley, 1952 |
21
+ | Potassium (K) | 36 mS/cm^2 | -77 mV | Hodgkin & Huxley, 1952 |
22
+ | Leak (L) | 0.3 mS/cm^2 | -54.4 mV | Hodgkin & Huxley, 1952 |
23
+
24
+ ### Gating Variable Rate Functions
25
+
26
+ The rate functions alpha and beta for each gating variable (m, h, n) at membrane potential V (in mV, shifted so resting = -65 mV):
27
+
28
+ **Sodium activation (m)**:
29
+ ```
30
+ alpha_m(V) = 0.1 * (V + 40) / (1 - exp(-(V + 40) / 10))
31
+ beta_m(V) = 4.0 * exp(-(V + 65) / 18)
32
+ ```
33
+
34
+ **Sodium inactivation (h)**:
35
+ ```
36
+ alpha_h(V) = 0.07 * exp(-(V + 65) / 20)
37
+ beta_h(V) = 1.0 / (1 + exp(-(V + 35) / 10))
38
+ ```
39
+
40
+ **Potassium activation (n)**:
41
+ ```
42
+ alpha_n(V) = 0.01 * (V + 55) / (1 - exp(-(V + 55) / 10))
43
+ beta_n(V) = 0.125 * exp(-(V + 65) / 80)
44
+ ```
45
+
46
+ ### Steady-State and Time Constant Summary
47
+
48
+ At resting potential (V = -65 mV):
49
+
50
+ | Variable | Steady state | Time constant (ms) | Source |
51
+ |---|---|---|---|
52
+ | m | 0.053 | 0.15 | Hodgkin & Huxley, 1952 |
53
+ | h | 0.596 | 5.57 | Hodgkin & Huxley, 1952 |
54
+ | n | 0.318 | 4.66 | Hodgkin & Huxley, 1952 |
55
+
56
+ ## Temperature Correction
57
+
58
+ The original parameters were measured at 6.3 degrees C. For simulations at physiological temperature (37 degrees C), apply a Q10 correction factor (Hodgkin & Huxley, 1952):
59
+
60
+ ```
61
+ rate_corrected = rate_original * Q10^((T - 6.3) / 10)
62
+ ```
63
+
64
+ Typical Q10 values:
65
+ - Q10 = **3** for rate functions (alpha, beta)
66
+
67
+ At 37 degrees C, this means rates are approximately 10x faster than original parameters.
68
+
69
+ ## Cortical Neuron HH Variants
70
+
71
+ For mammalian cortical neurons (not squid axon), common modifications:
72
+
73
+ ### Wang-Buzsaki Fast-Spiking Interneuron Model
74
+
75
+ Adjusted for cortical interneurons (Wang & Buzsaki, 1996):
76
+
77
+ | Parameter | Value | Unit |
78
+ |---|---|---|
79
+ | C_m | 1.0 | uF/cm^2 |
80
+ | g_Na | 35 | mS/cm^2 |
81
+ | g_K | 9 | mS/cm^2 |
82
+ | g_L | 0.1 | mS/cm^2 |
83
+ | E_Na | 55 | mV |
84
+ | E_K | -90 | mV |
85
+ | E_L | -65 | mV |
86
+
87
+ ### Traub-Miles Pyramidal Cell Model
88
+
89
+ For cortical pyramidal cells (Traub & Miles, 1991):
90
+
91
+ | Parameter | Value | Unit |
92
+ |---|---|---|
93
+ | C_m | 1.0 | uF/cm^2 |
94
+ | g_Na | 100 | mS/cm^2 |
95
+ | g_K | 80 | mS/cm^2 |
96
+ | g_L | 0.1 | mS/cm^2 |
97
+ | E_Na | 50 | mV |
98
+ | E_K | -100 | mV |
99
+ | E_L | -67 | mV |
100
+
101
+ ## Integration Methods for HH Models
102
+
103
+ | Method | Order | Stability | Recommended dt | Notes |
104
+ |---|---|---|---|---|
105
+ | Forward Euler | 1st | Conditionally stable | 0.01 ms | Simple but requires very small dt |
106
+ | Runge-Kutta 4 (RK4) | 4th | Better stability | 0.025--0.05 ms | Standard for HH; good accuracy/speed tradeoff |
107
+ | Exponential Euler | 1st (adapted) | Unconditionally stable for linear parts | 0.05 ms | Exploits linear structure of gating variables |
108
+ | Implicit methods (Crank-Nicolson) | 2nd | Unconditionally stable | 0.05--0.1 ms | More complex implementation; useful for stiff systems |
109
+
110
+ > **Recommendation**: Use RK4 with dt = 0.025 ms as the default for HH simulations. Use exponential Euler for large networks where speed matters more than high accuracy on action potential shape (Rotter & Diesmann, 1999).
111
+
112
+ ## References
113
+
114
+ - Hodgkin, A. L., & Huxley, A. F. (1952). A quantitative description of membrane current and its application to conduction and excitation in nerve. *Journal of Physiology*, 117(4), 500--544.
115
+ - Rotter, S., & Diesmann, M. (1999). Exact digital simulation of time-invariant linear systems with applications to neuronal modeling. *Biological Cybernetics*, 81(5--6), 381--402.
116
+ - Traub, R. D., & Miles, R. (1991). *Neuronal Networks of the Hippocampus*. Cambridge University Press.
117
+ - Wang, X.-J., & Buzsaki, G. (1996). Gamma oscillation by synaptic inhibition in a hippocampal interneuronal network model. *Journal of Neuroscience*, 16(20), 6402--6413.