Logo : Optogenetics Protocol Designer

Optogenetics Protocol Designer

OrganisationPopulaire
NeuroAIHub
optogenetics-protocol-designer

Domain-validated decision logic for optogenetic stimulation parameter selection, including opsin choice, light delivery, pulse protocols, fiber placement, and control conditions

Présentation

ÉditeurNeuroAIHub
DépôtBrainPilot
Nom de la compétenceoptogenetics-protocol-designer
Étoiles
1.1K
Forks
74
Fichiers inclus
2
LicenceAGPL-3.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 2

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par NeuroAIHub sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Optogenetics Protocol Designer dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NeuroAIHub/BrainPilot.git /tmp/BrainPilot
mkdir -p .claude/skills
cp -r /tmp/BrainPilot/packages/skills/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer .claude/skills/optogenetics-protocol-designer
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Optogenetics Protocol Designer dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Optogenetics Protocol Designer dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Optogenetics Protocol Designer n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Optogenetics Protocol Designer

Purpose

Optogenetic protocol design requires domain expertise that a general-purpose programmer would systematically get wrong. Selecting an opsin is not like selecting a software library — it requires understanding photocycle kinetics, ion selectivity, spectral overlap, expression toxicity, and the biophysics of light propagation through neural tissue. A naive approach risks tissue damage from heating, silencing neurons you intended to activate (depolarization block), or producing uninterpretable results from inadequate controls. This skill encodes the decision logic that bridges the gap between "I want to activate neurons" and a rigorous, publishable optogenetic protocol.

When to Use

  • Designing a new optogenetic experiment from scratch
  • Selecting an opsin for a specific excitation/inhibition application
  • Determining light delivery parameters (power, wavelength, pulse protocol)
  • Planning fiber optic implant specifications
  • Designing proper control conditions for optogenetic experiments
  • Troubleshooting failed or ambiguous optogenetic manipulations

Research Planning Protocol

Before executing the domain-specific steps below, you MUST:

  1. State the research question — What neural circuit question is this optogenetic manipulation addressing?
  2. Justify the method choice — Why optogenetics (not chemogenetics, lesion, pharmacology)? What alternatives were considered?
  3. Declare expected outcomes — What behavioral/neural changes do you expect from activation/inhibition?
  4. Note assumptions and limitations — What does this approach assume about the circuit? Where could it mislead?
  5. Present the plan to the user and WAIT for confirmation before proceeding.

For detailed methodology guidance, see the research-literacy skill.

⚠️ Verification Notice

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.

Decision Tree: Research Question to Protocol

Step 1: Define the Manipulation Type

GoalCategoryKey Constraint
Drive action potentials with millisecond precisionExcitation (fast)Need opsin with tau-off < 15 ms
Sustained depolarization / increased excitabilityExcitation (tonic)Step-function opsin or low-frequency pulsed
Silence neurons during a behavioral epochInhibition (sustained)Need potent inhibitory opsin, manage heating
Brief synaptic suppressionInhibition (phasic)Fast inhibitory opsin, short pulses
Bidirectional control in same animalDual manipulationSpectrally separated opsins required

Step 2: Select Opsin Class

Excitatory Opsins (Cation Channels)
OpsinPeak lambdaTau-offPhotocurrentBest ForKey Citation
ChR2 (H134R)470 nm~10 msModerateStandard activation, well-characterizedBoyden et al., 2005; Nagel et al., 2005
ChETA (E123T)470 nm~3 msLowerHigh-frequency spiking (>40 Hz)Gunaydin et al., 2010
ChrimsonR630 nm~15 msModerateRed-shifted, deep tissue, dual-colorKlapoetke et al., 2014
ChRmine520-530 nm~60 msVery highUltra-sensitive, large volume activationMarshel et al., 2019
CheRiff460 nm~8 ms~2x ChR2All-optical electrophysiologyHochbaum et al., 2014
C1V1(TT)540 nm~50 msModerateRed-shifted, combinatorial experimentsYizhar et al., 2011
Inhibitory Opsins
OpsinPeak lambdaMechanismPhotocurrentBest ForKey Citation
eNpHR3.0590 nmCl- pumpLow (pump)Established inhibition, yellow-lightGradinaru et al., 2010
eArch3.0520-550 nmH+ pumpModerate (pump)Green-light inhibitionChow et al., 2010; Mattis et al., 2012
stGtACR2480 nmAnion channelVery highMost potent somatic inhibitionMahn et al., 2018
SwiChR++480 nmAnion channel (bistable)ModerateSustained inhibition, low lightBerndt et al., 2016
Step-Function Opsins (Bistable)
OpsinActivationDeactivationTau-off (dark)Best ForKey Citation
SSFOBlue (~470 nm)Yellow (~590 nm)~29 minSustained excitability increaseYizhar et al., 2011
SOULBlue (~470 nm)Yellow (~590 nm)~29 minTranscranial, minimally invasiveGong et al., 2020
SwiChR++Blue (~480 nm)Red (~600 nm)~115 sBistable inhibitionBerndt et al., 2016

See references/opsin-catalog.md for the complete opsin reference with detailed kinetics.

Step 3: Determine Light Parameters

Power Density at Target Tissue
  • ChR2 EPD50: ~1.3 mW/mm2 (Mattis et al., 2012)
  • stGtACR2 EPD50: ~0.05 mW/mm2 (Mahn et al., 2018) — 100-200x more sensitive than NpHR
  • eNpHR3.0 EPD50: ~5-10 mW/mm2 (Mattis et al., 2012)
  • ChRmine: effective at sub-mW/mm2 levels (Marshel et al., 2019)
  • Typical working range: 1-10 mW/mm2 for most excitatory opsins at the fiber tip (Aravanis et al., 2007)

CRITICAL — Tissue Heating Threshold:

  • Temperature increase of ~0.1-0.25 deg C per mW at fiber tip for 473 nm light (Stujenske et al., 2015)
  • Keep total tissue temperature rise below 1 deg C to avoid artifacts (Christie et al., 2013; Owen et al., 2019)
  • At 20 mW/mm2, duty cycles above ~40% risk exceeding 1 deg C (Stujenske et al., 2015)
  • Blue light at high power can alter firing rates even WITHOUT opsin expression (Owen et al., 2019)
Light Attenuation in Tissue
  • 90% of 473 nm light is lost within 1 mm of brain tissue (Aravanis et al., 2007; Yizhar et al., 2011)
  • At 500 um from fiber tip: ~3.2% of initial intensity remains
  • At 1 mm from fiber tip: ~0.56% of initial intensity remains
  • Red-shifted light (>600 nm) penetrates deeper due to lower scattering (Klapoetke et al., 2014)
Wavelength Selection

Match the laser/LED wavelength to the opsin's absorption peak:

Opsin ClassRecommended WavelengthCommon Laser Lines
ChR2 / CheRiff / stGtACR2450-490 nm473 nm
C1V1 / ChRmine / eArch3.0520-560 nm532 nm, 561 nm
eNpHR3.0570-600 nm594 nm
ChrimsonR600-650 nm638 nm

See references/stimulation-parameters.md for complete pulse protocol recipes.

Step 4: Design Pulse Protocol

General Principles
  • Pulse width: 1-10 ms for fast excitatory opsins; 5-25 ms for slower or inhibitory opsins (Mattis et al., 2012)
  • Frequency: Must not exceed the opsin's temporal fidelity limit
  • Duty cycle: Balance activation efficacy against heating; keep below 40% for sustained protocols at moderate power (Stujenske et al., 2015)
  • Ramp-down for inhibition: When ending sustained inhibitory light, ramp down over 500 ms to 1 s to avoid rebound excitation (Mahn et al., 2016)
Frequency Limits by Opsin
OpsinMax Reliable Spike RateNotes
ChR2 (H134R)~30-40 Hz sustainedFails above gamma range in sustained trains (Mattis et al., 2012)
ChETA~100-200 HzReduced photocurrent trade-off (Gunaydin et al., 2010)
ChrimsonR~20-30 HzSlower kinetics than ChR2 (Klapoetke et al., 2014)
ChRmine~50 Hz (80 Hz with hsChRmine)Large photocurrent compensates for slower kinetics (Marshel et al., 2019)
Chronos~100 HzFastest known excitatory opsin (Klapoetke et al., 2014)

Step 5: Fiber Optic Specifications

ParameterStandard ValueRationale
Core diameter200 um (mice), 200-400 um (rats/primates)Balances illumination volume vs. tissue damage (Aravanis et al., 2007)
Numerical aperture (NA)0.22 or 0.390.22 for focused beam; 0.39 for wider illumination
Fiber typeMultimode step-indexStandard for optogenetics (Sparta et al., 2012)
Ferrule diameter1.25 mm (standard) or 2.5 mmCompatibility with patch cables and commutators

Placement rule: Position the fiber tip 200-500 um above the target region to allow light cone to cover the structure while avoiding mechanical damage to the target itself (Yizhar et al., 2011).

Step 6: Control Conditions

A rigorous optogenetic experiment requires AT MINIMUM three of the following controls (Fenno et al., 2011):

ControlWhat It Rules OutImplementation
Opsin-negative + lightHeating, visual, auditory artifacts from lightInject control virus (e.g., AAV-hSyn-eYFP), deliver identical light
Opsin-positive + no lightEffects of viral expression aloneImplant fiber, run behavioral protocol without laser
Wavelength controlNon-specific photic effectsDeliver light at a wavelength outside the opsin's activation spectrum
Fiber implant onlyMechanical damage effectsImplant fiber without virus injection
Within-subject light-off epochsTemporal confoundsInterleave light-on and light-off trials within sessions

The single most common critique of optogenetic studies is inadequate controls. The opsin-negative + light control is non-negotiable (Fenno et al., 2011).

Common Pitfalls and Domain-Specific Warnings

1. Depolarization Block (Silencing When You Intend to Activate)

At high ChR2 expression levels or with prolonged/high-frequency stimulation, excessive cation influx causes sustained depolarization that inactivates sodium channels, STOPPING action potentials (Herman et al., 2014; Lin et al., 2009). This is especially dangerous with interneurons, which enter depolarization block more readily than pyramidal cells.

Signs: Loss of spiking after initial pulses in a train; behavioral effect opposite to prediction. Prevention: Limit pulse width to 1-5 ms; keep frequency at or below 40 Hz for ChR2; titrate expression levels; use ChETA for high-frequency applications.

2. Tissue Heating Artifacts

Continuous illumination at high power heats tissue, altering neuronal firing even without opsin expression (Owen et al., 2019; Christie et al., 2013). Blue light (473 nm) is worse than red (638 nm) for heating.

Prevention: Use pulsed (not continuous) light; keep duty cycle below 40% at moderate power; use temperature modeling (Stujenske et al., 2015); always include opsin-negative light controls.

3. Viral Expression Toxicity

High viral titers (>1e13 vg/mL) can cause cytotoxicity, especially with prolonged expression times (>8 weeks) (Miyashita et al., 2013). Overexpression of membrane proteins disrupts normal cell physiology.

Prevention: Use titers of 1e12 to 5e12 vg/mL for standard applications; check for cell health at the injection site post-mortem; limit expression time to 3-6 weeks for most applications.

4. Backpropagation of Light Along Fibers

Light can scatter back up the fiber and illuminate unintended brain regions above the target. This is especially problematic for superficial targets near the brain surface.

Prevention: Use opaque ferrule sleeves; verify illumination volume with computational modeling; consider tapered fibers for focal illumination.

5. Antidromic Activation with Axonal Opsins

When inhibitory opsins (especially GtACR2, not soma-targeted) are expressed in axons, blue light can cause depolarization at the axon initial segment, producing paradoxical excitation (Mahn et al., 2018).

Prevention: Use soma-targeted variants (stGtACR2) for inhibition; avoid illuminating axon terminals with anion channelrhodopsins; verify with electrophysiology.

6. Chloride Loading with Halorhodopsin

Prolonged eNpHR3.0 activation loads neurons with chloride, shifting the GABA-A reversal potential and causing rebound excitation upon light offset (Raimondo et al., 2012).

Prevention: Limit continuous NpHR activation to <15 seconds; use pulsed protocols for longer inhibition; consider anion channels (stGtACR2) for sustained inhibition.

Viral Vector Quick Reference

SerotypeTropismOnsetSpreadUse Case
AAV1Broad neuronal1-2 weeksLargeGeneral transduction (Aschauer et al., 2013)
AAV2Neuronal (restricted)2-4 weeksSmallPrecise local targeting
AAV5Neurons + glia2-4 weeksModerateUse with neuron-specific promoter
AAV8Broad neuronal1-2 weeksLargeDeep brain structures
AAV9Broad, crosses BBB1-2 weeksLargeSystemic delivery, broad transduction
AAVrgRetrograde neuronal2-4 weeksProjection-specificCircuit-specific targeting (Tervo et al., 2016)

Always use a neuron-specific promoter (hSyn, CaMKII) with AAV1/5/8/9, as ubiquitous promoters (CMV, CAG) will also transduce glia (Aschauer et al., 2013).

Standard injection volume: 200-500 nL per site in mice; 1-2 uL per site in rats (Cetin et al., 2006). Standard titer: 1e12 to 5e12 vg/mL (Miyashita et al., 2013). Wait for expression: Minimum 2-3 weeks post-injection; optimal at 3-6 weeks for most AAVs.

Protocol Assembly Checklist

Before finalizing a protocol, verify:

  • Opsin matches the manipulation type (excitation/inhibition/bistable)
  • Wavelength matches the opsin's absorption spectrum (+/- 20 nm)
  • Power density is within the opsin's effective range but below heating threshold
  • Pulse frequency does not exceed the opsin's temporal fidelity
  • Duty cycle is below 40% for sustained protocols at moderate-to-high power
  • Fiber is positioned 200-500 um above target
  • At least opsin-negative + light control is planned
  • Viral titer is in the 1e12-5e12 vg/mL range
  • Expression time is 3-6 weeks (not <2 weeks, not >8 weeks without toxicity check)
  • Post-hoc histology is planned to verify expression and fiber placement

Key References

  • Aravanis, A. M. et al. (2007). An optical neural interface: in vivo control of rodent motor cortex. J. Neural Eng., 4(3), S143-S156.
  • Boyden, E. S. et al. (2005). Millisecond-timescale, genetically targeted optical control of neural activity. Nat. Neurosci., 8(9), 1263-1268.
  • Chow, B. Y. et al. (2010). High-performance genetically targetable optical neural silencing by light-driven proton pumps. Nature, 463, 98-102.
  • Deisseroth, K. (2015). Optogenetics: 10 years of microbial opsins in neuroscience. Nat. Neurosci., 18(9), 1213-1225.
  • Fenno, L., Yizhar, O. & Deisseroth, K. (2011). The development and application of optogenetics. Annu. Rev. Neurosci., 34, 389-412.
  • Gunaydin, L. A. et al. (2010). Ultrafast optogenetic control. Nat. Neurosci., 13(3), 387-392.
  • Hochbaum, D. R. et al. (2014). All-optical electrophysiology in mammalian neurons. Nat. Methods, 11, 825-833.
  • Klapoetke, N. C. et al. (2014). Independent optical excitation of distinct neural populations. Nat. Methods, 11, 338-346.
  • Mahn, M. et al. (2018). High-efficiency optogenetic silencing with soma-targeted anion-conducting channelrhodopsins. Nat. Commun., 9, 4125.
  • Marshel, J. H. et al. (2019). Cortical layer-specific critical dynamics triggering perception. Science, 365(6453), eaaw5202.
  • Mattis, J. et al. (2012). Principles for applying optogenetic tools derived from direct comparative analysis of microbial opsins. Nat. Methods, 9, 159-172.
  • Stujenske, J. M. et al. (2015). Modeling the spatiotemporal dynamics of light and heat propagation for in vivo optogenetics. Cell Rep., 12(3), 525-534.
  • Yizhar, O. et al. (2011). Optogenetics in neural systems. Neuron, 71(1), 9-34.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Optogenetics Protocol Designer ?

Domain-validated decision logic for optogenetic stimulation parameter selection, including opsin choice, light delivery, pulse protocols, fiber placement, and control conditions

Pourquoi utiliser Optogenetics Protocol Designer sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Optogenetics Protocol Designer se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Optogenetics Protocol Designer dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Optogenetics Protocol Designer ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Optogenetics Protocol Designer ?

Autant que vous le souhaitez. Vous pouvez utiliser Optogenetics Protocol Designer avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Optogenetics Protocol Designer est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par NeuroAIHub sous licence AGPL-3.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇