RESUMO
Corticospinal neurons (SPI), thick-tufted pyramidal neurons in motor cortex layer 5B that project caudally via the medullary pyramids, display distinct class-specific electrophysiological properties in vitro: strong sag with hyperpolarization, lack of adaptation, and a nearly linear frequency-current (F-I) relationship. We used our electrophysiological data to produce a pair of large archives of SPI neuron computer models in two model classes: 1) detailed models with full reconstruction; and 2) simplified models with six compartments. We used a PRAXIS and an evolutionary multiobjective optimization (EMO) in sequence to determine ion channel conductances. EMO selected good models from each of the two model classes to form the two model archives. Archived models showed tradeoffs across fitness functions. For example, parameters that produced excellent F-I fit produced a less-optimal fit for interspike voltage trajectory. Because of these tradeoffs, there was no single best model but rather models that would be best for particular usages for either single neuron or network explorations. Further exploration of exemplar models with strong F-I fit demonstrated that both the detailed and simple models produced excellent matches to the experimental data. Although dendritic ion identities and densities cannot yet be fully determined experimentally, we explored the consequences of a demonstrated proximal to distal density gradient of Ih, demonstrating that this would lead to a gradient of resonance properties with increased resonant frequencies more distally. We suggest that this dynamical feature could serve to make the cell particularly responsive to major frequency bands that differ by cortical layer. NEW & NOTEWORTHY: We developed models of motor cortex corticospinal neurons that replicate in vitro dynamics, including hyperpolarization-induced sag and realistic firing patterns. Models demonstrated resonance in response to synaptic stimulation, with resonance frequency increasing in apical dendrites with increasing distance from soma, matching the increasing oscillation frequencies spanning deep to superficial cortical layers. This gradient may enable specific corticospinal neuron dendrites to entrain to relevant oscillations in different cortical layers, contributing to appropriate motor output commands.
Assuntos
Potenciais de Ação/fisiologia , Simulação por Computador , Modelos Neurológicos , Neurônios/fisiologia , Dinâmica não Linear , Tratos Piramidais/citologia , Animais , Animais Recém-Nascidos , Biofísica , Estimulação Elétrica , Técnicas In Vitro , Camundongos , Camundongos Endogâmicos C57BL , Neurotransmissores/farmacologia , Técnicas de Patch-ClampRESUMO
Primary motor (M1) and secondary somatosensory (S2) cortices, although anatomically and functionally distinct, share an intriguing cellular component: corticospinal neurons (CSP) in layer 5B. Here, we investigated the long-range circuits of CSPs in mouse forelimb-M1 and S2. We found that interareal projections (S2 â M1 and M1 â S2) monosynaptically excited pyramidal neurons across multiple layers, including CSPs. Area-specific differences were observed in the relative strengths of inputs to subsets of CSPs and other cell types, but the general patterns were similar. Furthermore, subcellular mapping of the dendritic distributions of these corticocortical excitatory synapses onto CSPs in both areas also showed similar patterns. Because layer 5B is particularly thick in M1, but not S2, we studied M1-CSPs at different cortical depths, quantifying their dendritic morphology and mapping inputs from additional cortical (M2, contralateral M1, and local layer 2/3) and thalamic (VL nucleus) sources. These results indicated that CSPs exhibit area-specific modifications on an otherwise conserved synaptic organization, and that different afferents innervate M1-CSP dendritic domains in a source-specific manner. In the cervical spinal cord, CSP axons from S2 and M1 partly converged on middle layers, but S2-CSP axons extended further dorsally, and M1-CSP axons ventrally. Thus, our findings identify many shared features in the circuits of M1 and S2 and show that these areas communicate via mutual projections that give each area monosynaptic access to the other area's CSPs. These interareally yoked CSP circuits may enable M1 and S2 to operate in a coordinated yet differentiated manner in the service of sensorimotor integration.
Assuntos
Córtex Motor/citologia , Vias Neurais/fisiologia , Neurônios/fisiologia , Tratos Piramidais/fisiologia , Córtex Somatossensorial/citologia , Anestésicos Locais , Animais , Mapeamento Encefálico , Channelrhodopsins , Dependovirus/genética , Feminino , Lidocaína/farmacologia , Proteínas Luminescentes/genética , Proteínas Luminescentes/metabolismo , Masculino , Camundongos , Camundongos Endogâmicos C57BL , Camundongos Transgênicos , Córtex Motor/fisiologia , Vias Neurais/efeitos dos fármacos , Neurônios/citologia , Estimulação Luminosa , Tratos Piramidais/efeitos dos fármacos , Tratos Piramidais/lesões , Córtex Somatossensorial/fisiologia , Frações Subcelulares/metabolismo , Frações Subcelulares/patologia , Sinapses/efeitos dos fármacos , Sinapses/fisiologia , Tálamo/efeitos dos fármacos , Tálamo/lesõesRESUMO
Auditory cortex (AC) layer 5B (L5B) contains both corticocollicular neurons, a type of pyramidal-tract neuron projecting to the inferior colliculus, and corticocallosal neurons, a type of intratelencephalic neuron projecting to contralateral AC. Although it is known that these neuronal types have distinct roles in auditory processing and different response properties to sound, the synaptic and intrinsic mechanisms shaping their input-output functions remain less understood. Here, we recorded in brain slices of mouse AC from retrogradely labeled corticocollicular and neighboring corticocallosal neurons in L5B. Corticocollicular neurons had, on average, lower input resistance, greater hyperpolarization-activated current (Ih), depolarized resting membrane potential, faster action potentials, initial spike doublets, and less spike-frequency adaptation. In paired recordings between single L2/3 and labeled L5B neurons, the probabilities of connection, amplitude, latency, rise time, and decay time constant of the unitary EPSC were not different for L2/3âcorticocollicular and L2/3âcorticocallosal connections. However, short trains of unitary EPSCs showed no synaptic depression in L2/3âcorticocollicular connections, but substantial depression in L2/3âcorticocallosal connections. Synaptic potentials in L2/3âcorticocollicular connections decayed faster and showed less temporal summation, consistent with increased Ih in corticocollicular neurons, whereas synaptic potentials in L2/3âcorticocallosal connections showed more temporal summation. Extracellular L2/3 stimulation at two different rates resulted in spiking in L5B neurons; for corticocallosal neurons the spike rate was frequency dependent, but for corticocollicular neurons it was not. Together, these findings identify cell-specific intrinsic and synaptic mechanisms that divide intracortical synaptic excitation from L2/3 to L5B into two functionally distinct pathways with different input-output functions.
Assuntos
Córtex Auditivo/citologia , Vias Auditivas/fisiologia , Rede Nervosa/fisiologia , Neurônios/classificação , Neurônios/fisiologia , Potenciais Sinápticos/fisiologia , Animais , Animais Recém-Nascidos , Antagonistas de Aminoácidos Excitatórios/farmacologia , Feminino , Flavoproteínas/metabolismo , Antagonistas GABAérgicos/farmacologia , Técnicas In Vitro , Colículos Inferiores/citologia , Masculino , Camundongos , Camundongos Endogâmicos ICR , Modelos Neurológicos , Neurônios/efeitos dos fármacos , Técnicas de Patch-Clamp , Piridazinas/farmacologia , Quinoxalinas/farmacologia , Potenciais Sinápticos/efeitos dos fármacos , Valina/análogos & derivados , Valina/farmacologiaRESUMO
Absence seizures occur in several types of human epilepsy and result from widespread, synchronous feedback between the cortex and thalamus that produces brief episodes of loss of consciousness. Genetic rodent models have been invaluable for investigating the pathophysiological basis of these seizures. Here, we identify tetratricopeptide-containing Rab8b-interacting protein (TRIP8b) knockout mice as a new model of absence epilepsy, featuring spontaneous spike-wave discharges on electroencephalography (EEG) that are the electrographic hallmark of absence seizures. TRIP8b is an auxiliary subunit of the hyperpolarization-activated cyclic-nucleotide-gated (HCN) channels, which have previously been implicated in the pathogenesis of absence seizures. In contrast to mice lacking the pore-forming HCN channel subunit HCN2, TRIP8b knockout mice exhibited normal cardiac and motor function and a less severe seizure phenotype. Evaluating the circuit that underlies absence seizures, we found that TRIP8b knockout mice had significantly reduced HCN channel expression and function in thalamic-projecting cortical layer 5b neurons and thalamic relay neurons, but preserved function in inhibitory neurons of the reticular thalamic nucleus. Our results expand the known roles of TRIP8b and provide new insight into the region-specific functions of TRIP8b and HCN channels in constraining cortico-thalamo-cortical excitability.
Assuntos
Córtex Cerebral/fisiopatologia , Epilepsia Tipo Ausência/fisiopatologia , Proteínas de Membrana/deficiência , Neurônios/fisiologia , Tálamo/fisiopatologia , Animais , Western Blotting , Modelos Animais de Doenças , Eletrocardiografia , Eletrocorticografia , Eletrodos Implantados , Epilepsia Tipo Ausência/genética , Imuno-Histoquímica , Masculino , Potenciais da Membrana/fisiologia , Proteínas de Membrana/genética , Camundongos Knockout , Atividade Motora/fisiologia , Técnicas de Patch-Clamp , Peroxinas , Teste de Desempenho do Rota-Rod , Deleção de Sequência , Técnicas de Cultura de TecidosRESUMO
The deceptively simple laminar structure of neocortex belies the complexity of intra- and interlaminar connectivity. We developed a computational model based primarily on a unified set of brain activity mapping studies of mouse M1. The simulation consisted of 775 spiking neurons of 10 cell types with detailed population-to-population connectivity. Static analysis of connectivity with graph-theoretic tools revealed that the corticostriatal population showed strong centrality, suggesting that would provide a network hub. Subsequent dynamical analysis confirmed this observation, in addition to revealing network dynamics that cannot be readily predicted through analysis of the wiring diagram alone. Activation thresholds depended on the stimulated layer. Low stimulation produced transient activation, while stronger activation produced sustained oscillations where the threshold for sustained responses varied by layer: 13% in layer 2/3, 54% in layer 5A, 25% in layer 5B, and 17% in layer 6. The frequency and phase of the resulting oscillation also depended on stimulation layer. By demonstrating the effectiveness of combined static and dynamic analysis, our results show how static brain maps can be related to the results of brain activity mapping.
Assuntos
Modelos Neurológicos , Córtex Motor/fisiologia , Neurônios/fisiologia , Animais , Mapeamento Encefálico , Simulação por Computador , Camundongos , Vias Neurais/fisiologia , Periodicidade , Sinapses/fisiologiaRESUMO
Corticospinal pyramidal neurons mediate diverse aspects of motor behavior. We measured spike-related electrophysiological properties of identified corticospinal neurons in primary motor cortex slices from young adult mice. Several consistent features were observed in the suprathreshold responses to current steps: 1) Corticospinal neurons fired relatively fast action potentials (APs; width at half-maximum 0.65 ± 0.13 ms, mean ± standard deviation [SD]) compared with neighboring callosally projecting corticostriatal neurons. Corticospinal AP width was intermediate between 2 classes of inhibitory interneuron in layer 5B. Spike-to-spike variability in AP width and other spike waveform parameters was low, even during repetitive firing up to 20 Hz, that is, the relative narrowness of corticospinal APs was essentially frequency independent. 2) Frequency-current (f-I) relationships were nearly linear. 3) Trains of APs displayed regular firing, with rates typically staying constant or accelerating over time. Corticospinal neurons recorded from older mice (up to 4 months) or from a separate lateral cortical area (Region B; corresponding to secondary somatosensory cortex) showed generally similar intrinsic properties. Our findings have implications for interpreting spike waveforms of in vivo recorded neurons in the motor cortex. This analysis provides a framework for further biophysical and computational investigations of corticospinal neurons and their roles in motor cortical function.
Assuntos
Potenciais de Ação/fisiologia , Córtex Motor/fisiologia , Células Piramidais/fisiologia , Tratos Piramidais/fisiologia , Animais , Técnicas In Vitro , Interneurônios/fisiologia , Camundongos , Camundongos Endogâmicos C57BLRESUMO
Understanding cortical function requires studying multiple scales: molecular, cellular, circuit, and behavioral. We develop a multiscale, biophysically detailed model of mouse primary motor cortex (M1) with over 10,000 neurons and 30 million synapses. Neuron types, densities, spatial distributions, morphologies, biophysics, connectivity, and dendritic synapse locations are constrained by experimental data. The model includes long-range inputs from seven thalamic and cortical regions and noradrenergic inputs. Connectivity depends on cell class and cortical depth at sublaminar resolution. The model accurately predicts in vivo layer- and cell-type-specific responses (firing rates and LFP) associated with behavioral states (quiet wakefulness and movement) and experimental manipulations (noradrenaline receptor blockade and thalamus inactivation). We generate mechanistic hypotheses underlying the observed activity and analyzed low-dimensional population latent dynamics. This quantitative theoretical framework can be used to integrate and interpret M1 experimental data and sheds light on the cell-type-specific multiscale dynamics associated with several experimental conditions and behaviors.
Assuntos
Córtex Motor , Camundongos , Animais , Córtex Motor/fisiologia , Neurônios/fisiologia , Tálamo/fisiologia , Sinapses/fisiologia , BiofísicaRESUMO
Motor cortex is a key brain center involved in motor control in rodents and other mammals, but specific intracortical mechanisms at the microcircuit level are largely unknown. Neuronal expression of hyperpolarization-activated current (I(h)) is cell class specific throughout the nervous system, but in neocortex, where pyramidal neurons are classified in various ways, a systematic pattern of expression has not been identified. We tested whether I(h) is differentially expressed among projection classes of pyramidal neurons in mouse motor cortex. I(h) expression was high in corticospinal neurons and low in corticostriatal and corticocortical neurons, a pattern mirrored by mRNA levels for HCN1 and Trip8b subunits. Optical mapping experiments showed that I(h) attenuated glutamatergic responses evoked across the apical and basal dendritic arbors of corticospinal but not corticostriatal neurons. Due to I(h), corticospinal neurons resonated, with a broad peak at â¼4 Hz, and were selectively modulated by α-adrenergic stimulation. I(h) reduced the summation of short trains of artificial excitatory postsynaptic potentials (EPSPs) injected at the soma, and similar effects were observed for short trains of actual EPSPs evoked from layer 2/3 neurons. I(h) narrowed the coincidence detection window for EPSPs arriving from separate layer 2/3 inputs, indicating that the dampening effect of I(h) extended to spatially disperse inputs. To test the role of corticospinal I(h) in transforming EPSPs into action potentials, we transfected layer 2/3 pyramidal neurons with channelrhodopsin-2 and used rapid photostimulation across multiple sites to synaptically drive spiking activity in postsynaptic neurons. Blocking I(h) increased layer 2/3-driven spiking in corticospinal but not corticostriatal neurons. Our results imply that I(h)-dependent synaptic integration in corticospinal neurons constitutes an intracortical control mechanism, regulating the efficacy with which local activity in motor cortex is transferred to downstream circuits in the spinal cord. We speculate that modulation of I(h) in corticospinal neurons could provide a microcircuit-level mechanism involved in translating action planning into action execution.
Assuntos
Canais de Cátion Regulados por Nucleotídeos Cíclicos/fisiologia , Vias Eferentes/fisiologia , Proteínas de Membrana/fisiologia , Córtex Motor/fisiologia , Canais de Potássio/fisiologia , Tratos Piramidais/fisiologia , Potenciais de Ação/fisiologia , Agonistas Adrenérgicos/farmacologia , Animais , Corpo Caloso/citologia , Corpo Caloso/fisiologia , Canais de Cátion Regulados por Nucleotídeos Cíclicos/antagonistas & inibidores , Canais de Cátion Regulados por Nucleotídeos Cíclicos/genética , Dendritos/fisiologia , Vias Eferentes/citologia , Potencial Evocado Motor/efeitos dos fármacos , Potencial Evocado Motor/fisiologia , Potenciais Pós-Sinápticos Excitadores/efeitos dos fármacos , Potenciais Pós-Sinápticos Excitadores/fisiologia , Feminino , Ácido Glutâmico/fisiologia , Canais Disparados por Nucleotídeos Cíclicos Ativados por Hiperpolarização , Masculino , Proteínas de Membrana/genética , Camundongos , Camundongos Endogâmicos C57BL , Córtex Motor/citologia , Técnicas de Cultura de Órgãos , Canais de Potássio/genética , Células Piramidais/fisiologia , Tratos Piramidais/citologia , Pirimidinas/farmacologia , RNA Mensageiro/metabolismo , Receptores Adrenérgicos/fisiologia , Sinapses/fisiologiaRESUMO
Rigorous investigation of synaptic transmission requires analysis of unitary synaptic events by simultaneous recording from presynaptic terminals and postsynaptic target neurons. However, this has been achieved at only a limited number of model synapses, including the squid giant synapse and the mammalian calyx of Held. Cortical presynaptic terminals have been largely inaccessible to direct presynaptic recording, due to their small size. Here, we describe a protocol for improved subcellular patch-clamp recording in rat and mouse brain slices, with the synapse in a largely intact environment. Slice preparation takes ~2 h, recording ~3 h and post hoc morphological analysis 2 d. Single presynaptic hippocampal mossy fiber terminals are stimulated minimally invasively in the bouton-attached configuration, in which the cytoplasmic content remains unperturbed, or in the whole-bouton configuration, in which the cytoplasmic composition can be precisely controlled. Paired pre-postsynaptic recordings can be integrated with biocytin labeling and morphological analysis, allowing correlative investigation of synapse structure and function. Paired recordings can be obtained from mossy fiber terminals in slices from both rats and mice, implying applicability to genetically modified synapses. Paired recordings can also be performed together with axon tract stimulation or optogenetic activation, allowing comparison of unitary and compound synaptic events in the same target cell. Finally, paired recordings can be combined with spontaneous event analysis, permitting collection of miniature events generated at a single identified synapse. In conclusion, the subcellular patch-clamp techniques detailed here should facilitate analysis of biophysics, plasticity and circuit function of cortical synapses in the mammalian central nervous system.
Assuntos
Hipocampo/fisiologia , Técnicas de Patch-Clamp/métodos , Terminações Pré-Sinápticas/fisiologia , Animais , Camundongos , RatosRESUMO
Pattern separation is a fundamental brain computation that converts small differences in input patterns into large differences in output patterns. Several synaptic mechanisms of pattern separation have been proposed, including code expansion, inhibition and plasticity; however, which of these mechanisms play a role in the entorhinal cortex (EC)-dentate gyrus (DG)-CA3 circuit, a classical pattern separation circuit, remains unclear. Here we show that a biologically realistic, full-scale EC-DG-CA3 circuit model, including granule cells (GCs) and parvalbumin-positive inhibitory interneurons (PV+-INs) in the DG, is an efficient pattern separator. Both external gamma-modulated inhibition and internal lateral inhibition mediated by PV+-INs substantially contributed to pattern separation. Both local connectivity and fast signaling at GC-PV+-IN synapses were important for maximum effectiveness. Similarly, mossy fiber synapses with conditional detonator properties contributed to pattern separation. By contrast, perforant path synapses with Hebbian synaptic plasticity and direct EC-CA3 connection shifted the network towards pattern completion. Our results demonstrate that the specific properties of cells and synapses optimize higher-order computations in biological networks and might be useful to improve the deep learning capabilities of technical networks.
RESUMO
Biophysical modeling of neuronal networks helps to integrate and interpret rapidly growing and disparate experimental datasets at multiple scales. The NetPyNE tool (www.netpyne.org) provides both programmatic and graphical interfaces to develop data-driven multiscale network models in NEURON. NetPyNE clearly separates model parameters from implementation code. Users provide specifications at a high level via a standardized declarative language, for example connectivity rules, to create millions of cell-to-cell connections. NetPyNE then enables users to generate the NEURON network, run efficiently parallelized simulations, optimize and explore network parameters through automated batch runs, and use built-in functions for visualization and analysis - connectivity matrices, voltage traces, spike raster plots, local field potentials, and information theoretic measures. NetPyNE also facilitates model sharing by exporting and importing standardized formats (NeuroML and SONATA). NetPyNE is already being used to teach computational neuroscience students and by modelers to investigate brain regions and phenomena.
Assuntos
Encéfalo/anatomia & histologia , Encéfalo/fisiologia , Biologia Computacional/métodos , Rede Nervosa/anatomia & histologia , Rede Nervosa/fisiologia , Simulação por Computador , Modelos NeurológicosRESUMO
A set of methods is described for channelrhodopsin-2 (ChR2)-based synaptic circuit analysis that combines photostimulation of virally transfected presynaptic neurons' axons with whole-cell electrophysiological recordings from retrogradely labeled postsynaptic neurons. The approach exploits the preserved photoexcitability of ChR2-expressing axons in brain slices and can be used to assess either local or long-range functional connections. Stereotaxic injections are used both to express ChR2 selectively in presynaptic axons of interest (using rabies virus [RV] or adeno-associated virus [AAV]) and to label two types of postsynaptic projection neurons of interest with fluorescent retrograde tracers. In brain slices, tracer-labeled postsynaptic neurons are targeted for whole-cell electrophysiological recordings, and synaptic connections are assessed by sampling voltage or current responses to light-emitting diode (LED) photostimulation of ChR2-expressing axons. The data are analyzed to estimate the relative amplitude of synaptic input and other connectivity parameters. Pharmacological and electrophysiological manipulations extend the versatility of the basic approach, allowing the dissection of monosynaptic versus disynaptic responses, excitatory versus inhibitory responses, and more. The method enables rapid, quantitative characterization of synaptic connectivity between defined pre- and postsynaptic classes of neurons.
Assuntos
Eletrofisiologia/métodos , Rede Nervosa , Neurônios/fisiologia , Optogenética/métodos , Animais , Channelrhodopsins , Dependovirus/genética , Expressão Gênica , Camundongos , Vírus da Raiva/genética , Proteínas Recombinantes/genética , Proteínas Recombinantes/metabolismoRESUMO
The motor cortex (M1) is classically considered an agranular area, lacking a distinct layer 4 (L4). Here, we tested the idea that M1, despite lacking a cytoarchitecturally visible L4, nevertheless possesses its equivalent in the form of excitatory neurons with input-output circuits like those of the L4 neurons in sensory areas. Consistent with this idea, we found that neurons located in a thin laminar zone at the L3/5A border in the forelimb area of mouse M1 have multiple L4-like synaptic connections: excitatory input from thalamus, largely unidirectional excitatory outputs to L2/3 pyramidal neurons, and relatively weak long-range corticocortical inputs and outputs. M1-L4 neurons were electrophysiologically diverse but morphologically uniform, with pyramidal-type dendritic arbors and locally ramifying axons, including branches extending into L2/3. Our findings therefore identify pyramidal neurons in M1 with the expected prototypical circuit properties of excitatory L4 neurons, and question the traditional assumption that motor cortex lacks this layer.
Assuntos
Potenciais de Ação/fisiologia , Córtex Motor/fisiologia , Células Piramidais/fisiologia , Sinapses/fisiologia , Potenciais Sinápticos/fisiologia , Adenoviridae/genética , Animais , Axônios/fisiologia , Axônios/ultraestrutura , Dendritos/fisiologia , Dendritos/ultraestrutura , Corantes Fluorescentes , Vetores Genéticos , Camundongos , Microesferas , Microtomia , Córtex Motor/ultraestrutura , Células Piramidais/ultraestrutura , Técnicas Estereotáxicas , Sinapses/ultraestrutura , Transmissão Sináptica , Tálamo/fisiologia , Tálamo/ultraestrutura , Técnicas de Cultura de TecidosRESUMO
Neurophotonics methods offer powerful ways to access neuronal signals and circuits. We highlight recent advances and current themes in this area, emphasizing tools for mapping, monitoring, and manipulating excitatory projection neurons and their synaptic circuits in mouse motor cortex.
RESUMO
This article was motivated by the conference entitled "Perception & Action - An Interdisciplinary Approach to Cognitive Systems Theory," which took place September 14-16, 2010 at the Santa Fe Institute, NM, USA. The goal of the conference was to bring together an interdisciplinary group of neuroscientists, roboticists, and theorists to discuss the extent and implications of action-perception integration in the brain. The motivation for the conference was the realization that it is a widespread approach in biological, theoretical, and computational neuroscience to investigate sensory and motor function of the brain in isolation from one another, while at the same time, it is generally appreciated that sensory and motor processing cannot be fully separated. Our article summarizes the key findings of the conference, provides a hypothetical model that integrates the major themes and concepts presented at the conference, and concludes with a perspective on future challenges in the field.
RESUMO
Physiological measurements in neuroscience experiments often involve complex stimulus paradigms and multiple data channels. Ephus (http://www.ephus.org) is an open-source software package designed for general-purpose data acquisition and instrument control. Ephus operates as a collection of modular programs, including an ephys program for standard whole-cell recording with single or multiple electrodes in typical electrophysiological experiments, and a mapper program for synaptic circuit mapping experiments involving laser scanning photostimulation based on glutamate uncaging or channelrhodopsin-2 excitation. Custom user functions allow user-extensibility at multiple levels, including on-line analysis and closed-loop experiments, where experimental parameters can be changed based on recently acquired data, such as during in vivo behavioral experiments. Ephus is compatible with a variety of data acquisition and imaging hardware. This paper describes the main features and modules of Ephus and their use in representative experimental applications.