Please see run.jl in order to run the simulations shown in the Overleaf document. Here's an overview of the code:
NeuralPopSoma{Area,Type}is a method that creates a point neuron model in regionArea(can be eitherCortexorThalamusat this point) of typeType(Inhibitory/Excitatory)- Two
NeuralPopSomacan be grouped into oneNeuralArea, for which the functionParcomputes all impermeants and leak conductances - The method
BioNMconstructs the neural mass that couples multiple areas, viaBioNM.conn. Note thatBioNM.areasis a vector of typeNeuralArea. The first element of this vector receives stimulation - Change the hyperparameters using the method
HyperParam solve(nm::BioNM),plot(nm::BioNM),plot_syn(nm::BioNM,1)solves the system, plot ion dynamics and plot synaptic currents respectively.