// P6RSacell3D.p

//      Format of file :
// x,y,z,dia are in microns, all other units are SI (Meter Kilogram Sec Amp)
// In polar mode 'r' is in microns, theta and phi in degrees
// Control line options start with a '*'
// The format for each compartment parameter line is :
//name  parent  r       theta   phi     d       ch      dens ...
//in polar mode, and in cartesian mode :
//name  parent  x       y       z       d       ch      dens ...
// For channels, "dens" =  maximum conductance per unit area of compartment
// For spike elements, "dens" is the spike threshold
//              Coordinate mode
*absolute
*relative
*cartesian
*asymmetric

*set_global              RM     0.3333333
*set_global              EREST_ACT      -0.07
*set_compt_param     ELEAK      -0.0594


//              Specifying constants
*set_compt_param        RM      5.0  //0.33333
*set_compt_param        RA      2.50  //0.3
*set_compt_param        CM      0.009 //0.01
*set_compt_param        ELEAK   -0.0666 // -0.068


//SOMA *************************************************************
// For the soma, use the leakage potential (-0.07 + 0.0106) for Em
//*set_compt_param     ELEAK    -0.0594
// Actually, after Traub et al. J Neurophys 2003;89:909-921, will maintain
soma  none   0  0  15  16     Ca_s12 -2.58626798e15    NaF12       2000   \
                              NaP12        0.8         KDR12       1700   \
                              KA12        1190         K212           1.0 \
                              KM12        42           CaL12          1.0 \
                              CaH12        2.0         KCs12        150   \
                              AR12         2.5         KAHPs12        2.0  
*set_compt_param     RA 2.5
*set_compt_param     CM 0.018
*set_compt_param     ELEAK -0.0666
*set_compt_param     RM 2.5


//APICAL DENDRITE COMPARTMENTS ***************************************
// apdend1 Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend1  soma  0  0  50 3       Ca_d12 -1.65521236e17     NaF12       3000   \
                                NaP12        1.2          KDR12       2400   \
                                KA12      2380            K212           2   \
                                KM12        84            CaL12          2   \
                                CaH12        4            KCd12        300   \
                                AR12         5          KAHPd12        4.0

// apdend2 Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend2  apdend1  0  0  50   2.8    Ca_d12 -1.88092836e17 NaF12   1500  \
                                    NaP12        0.6     KDR12   1500  \
                                    KA12        272       K212      2  \
                                    KM12        84       CaL12     4  \
                                    CaH12        2       KCd12   300  \
                                    AR12         5     KAHPd12   4.0


// apdend3 Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend3  apdend2  0  0  50   2.8   Ca_d12 -2.22818969E17  NaF12   100  \
                                    NaP12       0.04     KDR12    0  \
                                    KA12      272        K212     2  \
                                    KM12       84        CaL12    2  \
                                    CaH12       4        KCd12    0  \
                                    AR12        5        KAHPd12  4.0


// apdend4 Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend4  apdend3  0  0  50   2.6    Ca_d12 -2.22818969e17    NaF12          100  \
                                    NaP12       0.04         KDR12           0  \
                                    KA12      272            K212            2  \
                                    KM12       84            CaL12           2  \
                                    CaH12       4            KCd12           0  \
                                    AR12        5            KAHPd12         4.0

// apdend5 Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend5  apdend4  0  0  50   2.40  Ca_d12    -2.41385133e17  NaF12	    100 \
                                    NaP12       0.04         KDR12           0  \
                                    KA12      272            K212            2  \
                                    KM12       84            CaL12           2  \
                                    CaH12       4            KCd12           0  \
                                    AR12        5            KAHPd12         4.0

// apdend6 Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend6  apdend5  0  0  50   2      Ca_d12 -3.31042301e17    NaF12          100  \
                                    NaP12       0.04         KDR12           0  \
                                    KA12      272            K212            2  \
                                    KM12       84            CaL12           2  \
                                    CaH12       40           KCd12           0  \
                                    AR12        5            KAHPd12         4.0

// apdend7  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend7  apdend6  0  0  50   1.8    Ca_d12 -3.67824744e17    NaF12          100  \
                                    NaP12       0.04         KDR12           0  \
                                    KA12      272            K212            2  \
                                    KM12       84            CaL12           2  \
                                    CaH12       40           KCd12           0  \
                                    AR12        5            KAHPd12         4.0

// apdend8  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend8  apdend7  0  0  50   1.6    Ca_d12 -4.1380285e17     NaF12          100  \
                                    NaP12         0.04       KDR12           0  \
                                    KA12        272          K212            2  \
                                    KM12         84          CaL12           2  \
                                    CaH12         40         KCd12           0  \
                                    AR12          5        KAHPd12         4.0

// apdend9  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend9  apdend8  0  0  50   1.4    Ca_d12 -5.32033542e17    NaF12          100   \
                                    NaP12       0.04         KDR12           0   \
                                    KA12      272            K212            2   \
                                    KM12       84            CaL12           2   \
                                    CaH12       40           KCd12           0   \
                                    AR12        5            KAHPd12         4.0

// apdend10  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apdend10  apdend9  0  0  40   1.2   Ca_d12  -6.8967142e17    NaF12          100  \
                                    NaP12       0.04         KDR12           0  \
                                    KA12      272            K212            2  \
                                    KM12       84            CaL12           2  \
                                    CaH12       40           KCd12           0  \
                                    AR12        5            KAHPd12         4.0

//APICAL OBLIQUE DENDRITE COMPARTMENTS ***************************************

// apobdistRa  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobdistRa  apdend3  42.4  42.4 0  1.24      Ca_d12 -6.1180627e17     NaF12      1500  \
                                             NaP12        0.6         KDR12      1500  \
                                             KA12       272           K212         2  \
                                             KM12        84           CaL12        2  \
                                             CaH12        4           KCd12      300  \
                                             AR12         5           KAHPd12      4.0

// apobdistRb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobdistRb  apobdistRa  42.4  42.4 0   1.24   Ca_d12    -6.1180971e17  NaF12       100  \
                                              NaP12       0.04         KDR12        0  \
                                              KA12      272            K212         2  \
                                              KM12       84            CaL12        2  \
                                              CaH12       4            KCd12        0  \
                                              AR12        5          KAHPd12      4.0

// apobdistRc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobdistRc  apobdistRb  42.4  42.4 0   1.24    Ca_d12 -6.1180994e17     NaF12       100  \
                                              NaP12       0.04         KDR12        0  \
                                              KA12      272            K212         2  \
                                              KM12       84            CaL12        2  \
                                              CaH12       4            KCd12        0  \
                                              AR12        5            KAHPd12      4.0

// apobdistLa  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobdistLa  apdend3  -42.4  -42.4 0   1.24      Ca_d12 -6.1180627e17     NaF12      1500  \
                                               NaP12        0.6         KDR12      1500  \
                                               KA12       272           K212         2  \
                                               KM12        84           CaL12        2  \
                                               CaH12        4           KCd12      300  \
                                               AR12         5         KAHPd12      4.0

// apobdistLb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobdistLb  apobdistLa  -42.4  -42.4 0   1.24    Ca_d12 -6.11809714e17    NaF12       100  \
                                                NaP12       0.04         KDR12        0  \
                                                KA12      272            K212         2  \
                                                KM12       84            CaL12        2  \
                                                CaH12       4            KCd12        0  \
                                                AR12        5            KAHPd12      4.0

// apobdistLc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobdistLc  apobdistLb  -42.4  -42.4 0   1.24    Ca_d12 -6.1180994e17     NaF12       100  \
                                                NaP12       0.04         KDR12        0  \
                                                KA12      272            K212         2  \
                                                KM12       84            CaL12        2  \
                                                CaH12       4            KCd12        0  \
                                                AR12        5            KAHPd12      4.0

// apobmidRa  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobmidRa  apdend2  42.4  -42.4  0   1.24      Ca_d12 -6.1180483E17     NaF12      1500  \
                                              NaP12        0.6         KDR12      1500  \
                                              KA12       272           K212         2  \
                                              KM12        84           CaL12        2  \
                                              CaH12        4           KCd12      300  \
                                              AR12         5           KAHPd12      4.0

// apobmidRb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobmidRb  apobmidRa  42.4  -42.4  0   1.24     Ca_d12 -6.118106E17      NaF12       100  \
                                               NaP12       0.04         KDR12        0  \
                                               KA12      272            K212         2  \
                                               KM12       84            CaL12        2  \
                                               CaH12       4            KCd12        0  \
                                               AR12        5            KAHPd12      4.0

// apobmidRc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobmidRc  apobmidRb  42.4  -42.4  0   1.24     Ca_d12 -6.1179686E17     NaF12       100  \
                                               NaP12       0.04         KDR12        0  \
                                               KA12      272            K212         2  \
                                               KM12       84            CaL12        2  \
                                               CaH12       4            KCd12        0  \
                                               AR12        5            KAHPd12      4.0

// apobmidLa  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobmidLa  apdend2  -42.4  42.4  0   1.24     Ca_d12 -6.1180483E17     NaF12      1500  \
                                              NaP12        0.6         KDR12      1500  \
                                              KA12       272           K212         2  \
                                              KM12        84           CaL12        2  \
                                              CaH12        4           KCd12      300  \
                                              AR12         5          KAHPd12      4.0

// apobmidLb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobmidLb  apobmidLa  -42.4  42.4  0   1.24    Ca_d12  -6.118106E17      NaF12       100  \
                                               NaP12       0.04         KDR12        0  \
                                               KA12      272            K212         2  \
                                               KM12       84            CaL12        2  \
                                               CaH12       4            KCd12        0  \
                                               AR12        5            KAHPd12      4.0

// apobmidLc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobmidLc  apobmidLb  -42.4  42.4  0   1.24    Ca_d12 -6.1179686E17      NaF12       100  \
                                               NaP12       0.04         KDR12        0  \
                                               KA12      272            K212         2  \
                                               KM12       84            CaL12        2  \
                                               CaH12       4            KCd12        0  \
                                               AR12        5            KAHPd12      4.0

// apobproxRa  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobproxRa  apdend1  42.4  42.4  0   1.24    Ca_d12 -6.1180297E17     NaF12      1500  \
                                             NaP12        0.6         KDR12      1500  \
                                             KA12       272           K212         2  \
                                             KM12        84           CaL12        2  \
                                             CaH12        4           KCd12      300  \
                                             AR12         5           KAHPd12      4.0

// apobproxRb Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobproxRb  apobproxRa  42.4  42.4  0 1.24    Ca_d12 -6.118106E17      NaF12       100  \
                                              NaP12       0.04         KDR12        0  \
                                              KA12      272            K212         2  \
                                              KM12       84            CaL12        2  \
                                              CaH12       4            KCd12        0  \
                                              AR12        5           KAHPd12      4.0

// apobproxRc Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobproxRc  apobproxRb  42.4  42.4  0 1.24    Ca_d12 -6.1181232E17     NaF12       100  \
                                              NaP12       0.04         KDR12        0  \
                                              KA12      272            K212         2  \
                                              KM12       84            CaL12        2  \
                                              CaH12       4            KCd12        0  \
                                              AR12        5            KAHPd12      4.0

// apobproxLa  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobproxLa  apdend1  -42.4  -42.4  0   1.24    Ca_d12 -6.1180297E17     NaF12      1500 \
                                               NaP12        0.6         KDR12      1500 \
                                               KA12       272           K212         2  \
                                               KM12        84           CaL12        2  \
                                               CaH12        4           KCd12      300  \
                                               AR12         5          KAHPd12      4.0

// apobproxLb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobproxLb  apobproxLa  -42.4  -42.4  0  1.24   Ca_d12 -6.118106E17      NaF12       100 \
                                                NaP12       0.04         KDR12        0  \
                                                KA12      272            K212         2  \
                                                KM12       84            CaL12        2  \
                                                CaH12       4            KCd12        0  \
                                                AR12        5          KAHPd12        4.0

// apobproxLc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
apobproxLc  apobproxLb  -42.4  -42.4  0  1.24   Ca_d12 -6.118106E17      NaF12       100 \
                                                NaP12       0.04         KDR12        0  \
                                                KA12      272            K212         2  \
                                                KM12       84            CaL12        2  \
                                                CaH12       4            KCd12        0  \
                                                AR12        5          KAHPd12      4.0

*set_compt_param     RA 2.5
*set_compt_param     CM 0.018
*set_compt_param     ELEAK -0.0666
*set_compt_param     RM 2.5


//BASAL DENDRITE COMPARTMENTS ************************************************
// basalLsupera  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalLsupera  soma  -26.8  -46.4  -27.2  1.7    Ca_d12 -4.05689382E17  NaF12        1500  \
                                                NaP12        0.6     KDR12        1500  \
                                                KA12       272       K212           2  \
                                                KM12        84       CaL12          2  \
                                                CaH12        4       KCd12        300  \
                                                AR12         5       KAHPd12        4.0

// basalLsuperb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalLsuperb  basalLsupera  -26.8  -46.4 -27.2  1.7     Ca_d12 -4.05691135E17  NaF12        100  \
                                                        NaP12        0.04    KDR12          0  \
                                                        KA12       272       K212           2  \
                                                        KM12        84       CaL12          2  \
                                                        CaH12        4       KCd12          0  \
                                                        AR12         5       KAHPd12        4.0

// basalLsuperc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalLsuperc  basalLsuperb  -26.8  -46.4 -27.2  1.7     Ca_d12 -4.05691135E17 NaF12         100  \
                                                        NaP12        0.04    KDR12          0  \
                                                        KA12       136       K212           2  \
                                                        KM12        84       CaL12          2  \
                                                        CaH12        4       KCd12          0  \
                                                        AR12         5       KAHPd12        4.0

// basalLmida  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalLmida  soma  -19.3  33.4  -46.0  1.7      Ca_d12 -4.05689382E17  NaF12        1500  \
                                                NaP12        0.6     KDR12        1500  \
                                                KA12       272       K212           2  \
                                                KM12        84       CaL12          2  \
                                                CaH12        4       KCd12        300  \
                                                AR12         5       KAHPd12        4.0

// basalLmidb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalLmidb  basalLmida  -19.3  33.4 -46.0  1.7         Ca_d12 -4.05689382E17 NaF12         100  \
                                                       NaP12        0.04    KDR12          0  \
                                                       KA12       272       K212           2  \
                                                       KM12        84       CaL12          2  \
                                                       CaH12        4       KCd12          0  \
                                                       AR12         5       KAHPd12        4.0

// basalLmidc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalLmidc  basalLmidb  -19.3  33.4 -46.0  1.7         Ca_d12    -4.05689382E17  NaF12     100  \
                                                       NaP12        0.04    KDR12          0  \
                                                       KA12       272       K212           2  \
                                                       KM12        84       CaL12          2  \
                                                       CaH12        4       KCd12          0  \
                                                       AR12         5       KAHPd12        4.0

// basalRsupera  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalRsupera  soma   26.8  46.4  -27.2  1.7    Ca_d12    -4.05689382E17  NaF12        1500  \
                                               NaP12        0.6     KDR12        1500  \
                                               KA12       272       K212           2  \
                                               KM12        84       CaL12          2  \
                                               CaH12        4       KCd12        200  \
                                               AR12         5     KAHPd12        4.0

// basalRsuperb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalRsuperb  basalRsupera   26.8  46.4 -27.2  1.7     Ca_d12 -4.05689382E17 NaF12         100  \
                                                       NaP12        0.04    KDR12          0  \
                                                       KA12       272       K212           2  \
                                                       KM12        84       CaL12          2  \
                                                       CaH12        4       KCd12          0  \
                                                       AR12         5       KAHPd12        4.0

// basalRsuperc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalRsuperc  basalRsuperb   26.8  46.4 -27.2  1.7     Ca_d12 -4.05689382E17 NaF12         100  \
                                                       NaP12        0.04    KDR12          0  \
                                                       KA12       272       K212           2  \
                                                       KM12        84       CaL12          2  \
                                                       CaH12        4       KCd12          0  \
                                                       AR12         5       KAHPd12        4.0

// basalRmida  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalRmida  soma   19.3  -33.4  -46.0  1.7      Ca_d12  -4.05689382E17   NaF12    1500  \
                                                NaP12        0.6         KDR12    1500  \
                                                KA12       272           K212       2  \
                                                KM12        84           CaL12      2  \
                                                CaH12        4           KCd12    300  \
                                                AR12         5           KAHPd12    4.0

// basalRmidb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalRmidb  basalRmida   19.3  -33.4 -46.0  1.7     Ca_d12 -4.05689382E17     NaF12     100  \
                                                    NaP12        0.04        KDR12      0  \
                                                    KA12       272           K212       2  \
                                                    KM12        84           CaL12      2  \
                                                    CaH12        4           KCd12      0  \
                                                    AR12         5           KAHPd12    4.0

// basalRmidc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basalRmidc  basalRmidb   19.3  -33.4 -46.0  1.7     Ca_d12 -4.05689382E17     NaF12     100  \
                                                    NaP12        0.04        KDR12      0  \
                                                    KA12       272           K212       2  \
                                                    KM12        84           CaL12      2  \
                                                    CaH12        4           KCd12      0  \
                                                    AR12         5           KAHPd12    4.0

// basaldeepa  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basaldeepa  soma  0  0  -60.0  1.7          Ca_d12 -4.05689382E17    NaF12    1500  \
                                            NaP12        0.6         KDR12    1500  \
                                            KA12       272           K212       2  \
                                            KM12        84           CaL12      2  \
                                            CaH12        4           KCd12    300  \
                                            AR12         5           KAHPd12    4.0

// basaldeepb  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basaldeepb  basaldeepa  0  0 -60.0  1.7             Ca_d12 -4.05689382E17     NaF12     100  \
                                                    NaP12        0.04        KDR12      0  \
                                                    KA12       272           K212       2  \
                                                    KM12        84           CaL12      2  \
                                                    CaH12        4           KCd12      0  \
                                                    AR12         5           KAHPd12    4.0

// basaldeepc  Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
basaldeepc  basaldeepb  0  0 -60.0  1.7             Ca_d12 -4.05689382E17     NaF12     100  \
                                                    NaP12        0.04        KDR12      0  \
                                                    KA12       272           K212       2  \
                                                    KM12        84           CaL12      2  \
                                                    CaH12        4           KCd12      0  \
                                                    AR12         5           KAHPd12    4.0


//              Specifying constants for axonal compartment RMCM=0.0024 (0.0009)
*set_compt_param        RM      0.10   //(0.1)
*set_compt_param        RA      1.00   //(1.00)
*set_compt_param        CM      0.009  //(0.009)(0.024)
*set_compt_param        ELEAK   -0.0666

//AXONAL COMPARTMENTS ***************************************
// axona Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
// Differs from Traub et al., in that axon is vertical
axona  soma  0  0 -25  1.8      NaF12       4500   \
                                KDR12       4500   \
                                KA12          40       K212               1

// axonb Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
// Differs from Traub et al., in that axon is vertical
axonb  axona  0  0 -50  1.8     NaF12       4500   \
                                KDR12       4500   \
                                KA12          40       K212               1

// axonLa Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
// Differs from Traub et al., in that axon is vertical
axonLa  axonb  -8.7  0 -49.2  1.8    NaF12       4500   \
                                     KDR12       4500   \
                                     KA12          40  K212               1

// axonLb Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
// Differs from Traub et al., in that axon is vertical
axonLb  axonLa  -8.7  0 -49.2  1.8   NaF12       4500   \
                                     KDR12       4500   \
                                     KA12          40  K212               1

// axonRa Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
// Differs from Traub et al., in that axon is vertical
axonRa  axonb   8.7  0 -49.2  1.8    NaF12       4500   \
                                     KDR12       4500   \
                                     KA12          40  K212               1

// axonRb Fig A6 Traub et al. J. Neurophysiol 2005;93:2194-2232
// Differs from Traub et al., in that axon is vertical
axonRb  axonRa   8.7  0 -49.2  1.8   NaF12       4500   \
                                     KDR12       4500   \
                                     KA12          40  K212               1