Next
Previous
Start
Some Examples of GENESIS Commands to Create Networks
/* create a synaptically activated channel and set some fields
create synchan /cell/dend[5]/Ex_channel
setfield /cell/dend[5]/Ex_channel tau1 3e-3 tau2 3e-3 gmax 5.0e-10
/* Add a spike generator to the soma of a cell */
create spikegen /cell/soma/spike
setfield /cell/soma/spike thresh 0 abs_refract 0.010 output_amp 1
/* use the soma membrane potential to drive the spike generator */
addmsg /cell/soma /cell/soma/spike INPUT Vm
/* make an excitatory connection to cell2 */
addmsg /cell/soma/spike /cell2/dend/Ex_channel SPIKE
setfield /cell2/dend/Ex_channel synapse[0].weight 10 synapse[0].delay 0.005
copy /library/pyr_cell /cortex/cell[5] // copy a prototype cell
// Make two arrays of cells cell[0] through cell[nx*ny-1]
createmap /proto/cell /lgn {nx} {ny} -delta {dx} {dy}
createmap /proto/cell /v1 {destx} {desty} -delta {dx} {dy}
// Make connections from the LGN to the V1 cells in a certain region
planarconnect /lgn/cell[]/spike /v1/cell[]/glu -relative \
-sourcemask box -1 -1 1 1 \
-destmask box {-dx * 2.4} {-dy * 0.6} {dx * 2.4} {dy * 0.6}
// Use a file to specify the connections
fileconnect /lgn/##[TYPE=spikegen] /v1/cell[]/glu conn.wts -wtscale 0.01