// genesis // Setting the axonal propagation velocity float CABLE_VEL = 1 // scale factor = 1/(cable velocity) sec/meter //float destlim = {P5IBb_P23RSa_destlim} float destlim = 1.0 // being lazy; should calculate based on model size instead /* * Usage : * volumeconnect source-path destination-path * [-relative] * [-sourcemask {box,ellipse} x1 y1 x2 y2] * [-sourcehole {box,ellipse} x1 y1 x2 y2] * [-destmask {box,ellipse} x1 y1 x2 y2] * [-desthole {box,ellipse} x1 y1 x2 y2] * [-probability p] */ //P5IBb - P23RSa AMPA str s //Load synapse location array str locations = "apdend3 apdend4aL apdend4bL apdend4aR apdend4bR apdend5aLLL apdend5aLL apdend5aLR apdend5aLRR apdend5aRRR apdend5aRR apdend5aRL apdend5aRLL" foreach s ({arglist {locations}}) barrierall //ayu rvolumeconnect /P5IBbnet/P5IBb[]/soma/spk7longrange \ /P23RSanet/P23RSa[]/{s}/Ex_ch1P5IBAMPA@{distantnodes} \ -relative \ -sourcemask box -1 -1 -1 1 1 1 \ -destmask box -{destlim} -{destlim} -1 {destlim} {destlim} 1 \ -desthole box -0.000001 -0.000001 -0.000001 0.000001 0.000001 0.000001 \ -probability {{longrangeprobscale}*{P5IBb_P23RSa_prob}} //-probability 0.5 end //P5IBb - P23RSa NMDA str s //Load synapse location array str locations = "apdend3 apdend4aL apdend4bL apdend4aR apdend4bR apdend5aLLL apdend5aLL apdend5aLR apdend5aLRR apdend5aRRR apdend5aRR apdend5aRL apdend5aRLL" foreach s ({arglist {locations}}) barrierall //ayu rvolumeconnect /P5IBbnet/P5IBb[]/soma/spk7longrange \ /P23RSanet/P23RSa[]/{s}/Ex_ch1P5IBNMDA@{distantnodes} \ -relative \ -sourcemask box -1 -1 -1 1 1 1 \ -destmask box -{destlim} -{destlim} -1 {destlim} {destlim} 1 \ -desthole box -0.000001 -0.000001 -0.000001 0.000001 0.000001 0.000001 \ -probability {{longrangeprobscale}*{P5IBb_P23RSa_prob}} end // For inhibitory long range connections ////P5IBb - P23RSa GABAa //str s ////Load synapse location array //str locations = "apdend3 apdend4aL apdend4bL apdend4aR apdend4bR apdend5aLLL apdend5aLL apdend5aLR apdend5aLRR apdend5aRRR apdend5aRR apdend5aRL apdend5aRLL" // //foreach s ({arglist {locations}}) // // barrierall //ayu // rvolumeconnect /P5IBbnet/P5IBb[]/soma/spk7longrange \ // /P23RSanet/P23RSa[]/{s}/Inh_ch1P5IBGABAa@{distantnodes} \ // -relative \ // -sourcemask box -1 -1 -1 1 1 1 \ // -destmask box -{destlim} -{destlim} -1 {destlim} {destlim} 1 \ // -desthole box -0.000001 -0.000001 -0.000001 0.000001 0.000001 0.000001 \ // -probability {{longrangeprobscale}*{P5IBb_P23RSa_prob}} // //end // assigning delays barrierall //ayu rvolumedelay /P5IBbnet/P5IBb[]/soma/spk7longrange -radial {{P5IBb_P23RSa_axdelayCV}*{longrangeCVscale}} -add // assigning weights float P5IBbmaxweight = 1.0 float P5IBbminweight = 0.0 float P5IBbdecayrate = 0.1 float longrangeweight = {longrangeweightscale}*{{{P5IBbmaxweight}-{P5IBbminweight}} * {exp {-1*{sqrt {{NX}^2*{SEPX}^2*{sqrtNnodesperregion}+{NY}^2*{SEPY}^2*{sqrtNnodesperregion}} }*P5IBbdecayrate} } + {P5IBbminweight}} barrierall //ayu rvolumeweight /P5IBbnet/P5IBb[]/soma/spk7longrange -fixed {longrangeweight}