/*----------------------------------------------------------------
%W%  %G%
ctty118a.asc  translated Tue Dec 17 10:28:18 1996 by ntscable 2.0
source file syntax: Eutectic
output file syntax: CABLE
soma: diameter = 17.9117 um  length = 29.3452 um  area = 1651.29 um2
      15 three-D points; 17 outline points numbered 377-393
      outline diameter = 24.5406 um
5 primary neurites
40 branches totaling 1420.31 um in length, 2087.06 um2 in area
376 tree points translated to 183 segments (1 requested)
Neurites divided into segments of equal dx between adjacent digitized
branch points.
Segment length constrained to be < 10 um.
No. points    393
No. trees       6
Text  T11118AO, HRP and DAB, 2/2/89                                                                                           

----------------------------------------------------------------*/
					/* create sections */
create    soma,\
          dend1[5],\
          dend2[9],\
          dend3[19],\
          dend4[25],\
          dend5[17]



/*----------------------------------------------------------------*/
proc geometry() { local i, j

						/* soma geometry */
    soma {
        nseg = 1
        pt3dclear()
        for j = 1, fscan() {
            pt3dadd(fscan(),fscan(),fscan(),fscan())
        }
    }

					/* connect primary neurites */
    soma connect dend1[0] (0), 0.5
    soma connect dend2[0] (0), 0.5
    soma connect dend3[0] (0), 0.5
    soma connect dend4[0] (0), 0.5
    soma connect dend5[0] (0), 0.5


					/* neurite geometry*/
    for i = 0,4 {
        dend1[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

    for i = 0,8 {
        dend2[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

    for i = 0,18 {
        dend3[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

    for i = 0,24 {
        dend4[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

    for i = 0,16 {
        dend5[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }



					/* branching topology*/
    for i = 1,4 {
        dend1[fscan()] connect dend1[i] (0), fscan()
    }

    for i = 1,8 {
        dend2[fscan()] connect dend2[i] (0), fscan()
    }

    for i = 1,18 {
        dend3[fscan()] connect dend3[i] (0), fscan()
    }

    for i = 1,24 {
        dend4[fscan()] connect dend4[i] (0), fscan()
    }

    for i = 1,16 {
        dend5[fscan()] connect dend5[i] (0), fscan()
    }

}

geometry()


SOMA COORDINATES AND DIAMETERS:

    15
   -15.5       -1       -2        0
     -15     1.55       -2      6.9
   -13.5      2.2       -2     13.6
     -13   1.9688       -2   14.938
    -9.5   1.1667  -2.1944    22.67
    -8.5     0.65    -2.25   24.305
    -4.5     0.25    -2.25   27.505
    -3.5        0    -2.25   28.004
    -1.5        0    -2.25   28.004
       0       -2    -2.25   24.005
       2     -2.6    -2.45     22.8
     2.5  -2.4286     -2.5   21.857
     5.5    -2.75    -2.25   13.509
     7.5    -3.05    -2.45   6.9007
       8     -0.5     -2.5        0


NEURITE COORDINATES AND DIAMETERS:

    4 12
    -3.5        7       -1      1.9
    -4.5     10.5       -2      1.9
      -5       12       -3      1.9
    -7.5       13       -5      1.7
   -10.5     14.5       -5      1.7
     -14     15.5     -5.5      1.6
     -18       17     -6.5      1.2
     -21       18       -7      0.8
   -23.5     17.5       -6      0.8
   -23.5       19     -5.5      0.4
     -26       19       -6      0.4
   -28.5     21.5       -7      0.4

    3 8
   -28.5     21.5       -7      0.4
   -31.5     25.5       -6      0.1
   -33.5     28.5       -6      0.1
     -35     31.5       -6      0.1
   -37.5       35     -5.5      0.1
   -42.5       42     -5.5      0.1
   -44.5       45     -5.5      0.1
     -45       45       -6      0.1

    1 3
   -28.5     21.5       -7      0.4
     -30       21     -7.5      0.4
     -32       22     -7.5      0.4

    1 4
     -32       22     -7.5      0.4
     -32     24.5     -7.5      0.1
     -34     26.5       -7      0.1
     -34     26.5       -7      0.1

    13 21
     -32       22     -7.5      0.4
   -33.5       23       -8      0.5
   -36.5       25       -8      0.5
     -42       28       -7      0.3
     -47       31       -7      0.3
     -52     32.5       -8      0.3
   -57.5       35       -8      0.3
   -64.5     37.5     -6.5      0.1
     -71     39.5     -6.5      0.1
   -77.5       40     -6.5      0.1
     -85     42.5       -7      0.1
     -91     45.5       -7      0.1
    -100       49       -7      0.1
    -106     52.5       -7      0.1
  -111.5       55       -7      0.1
    -117       57       -7      0.1
    -122       59       -8      0.1
    -130       63       -6      0.1
  -135.5       65       -6      0.1
    -141       66     -5.5      0.1
  -144.5       68     -4.5      0.1

    2 4
    -8.5      6.5       -2      1.6
    -9.5       12      2.5      2.3
     -11     15.5      2.5      1.7
     -12       18        2      1.5

    2 6
     -12       18        2      1.5
     -13       16      3.5      0.4
   -12.5       15      6.5      0.1
   -13.5       17        7      0.1
     -14       19        5      0.1
   -12.5       21        6      0.1

    1 3
     -12       18        2      1.5
     -11       20      2.5      0.8
     -11       23      2.5      1.5

    4 9
     -11       23      2.5      1.5
    -7.5       25      2.5      0.1
      -5     27.5        4      0.1
    -2.5       30        4      0.1
       1       32        4      0.1
     3.5     33.5        4      0.1
     7.5       36        4      0.1
      10     38.5      4.5      0.1
    13.5       41        5      0.1

    1 3
     -11       23      2.5      1.5
   -12.5       24      1.5      1.1
   -13.5     24.5      1.5      1.6

    3 9
   -13.5     24.5      1.5      1.6
   -15.5       22      2.5      0.1
   -18.5       20        3      0.1
   -19.5     18.5      3.5      0.1
     -21       15      3.5      0.1
   -21.5       13      3.5      0.1
     -25     10.5        4      0.1
     -29        8        4      0.1
     -32        5      3.5      0.1

    2 6
   -13.5     24.5      1.5      1.6
   -14.5     26.5      1.5      0.3
   -16.5       28        2      0.3
   -18.5       31      3.5      0.3
   -21.5     32.5        4      0.1
     -23       33        4      0.1

    2 4
     -23       33        4      0.1
   -25.5       37        4      0.1
   -26.5     41.5        4      0.1
     -28       45        4      0.1

    5 12
     -23       33        4      0.1
     -26       34        4      0.1
     -30     34.5        4      0.1
   -35.5     32.5        5      0.1
     -38     30.5        5      0.1
     -42       29      4.5      0.1
   -43.5     25.5        5      0.1
   -46.5     21.5      5.5      0.1
   -49.5     17.5        7      0.1
   -52.5       16        7      0.1
   -55.5       17      6.5      0.1
   -55.5       17      6.5      0.1

    3 5
      -1      3.5        1      1.3
    -4.5      6.5     -2.5      1.3
      -6       11        5      1.3
    -6.5       16        5      1.1
    -4.5     17.5        5      1.1

    2 6
    -4.5     17.5        5      1.1
    -5.5     19.5        5      0.1
    -4.5       21        6      0.1
      -8       23      6.5      0.1
      -8       26        9      0.1
      -8     27.5       10      0.1

    1 4
      -8     27.5       10      0.1
      -7     30.5     10.5      0.1
      -6       32     10.5      0.1
    -5.5     32.5     10.5      0.1

    1 5
      -8     27.5       10      0.1
      -9       29       10      0.1
      -9       33     10.5      0.1
   -10.5     36.5     11.5      0.1
   -10.5     36.5     11.5      0.1

    1 3
    -4.5     17.5        5      1.1
    -2.5     17.5        6      1.7
    -1.5     17.5        6      1.7

    1 2
    -1.5     17.5        6      1.7
     0.5     15.5      5.5      0.1

    1 3
     0.5     15.5      5.5      0.1
      -1       14        5      0.1
    -0.5       12        5      0.1

    1 4
     0.5     15.5      5.5      0.1
     2.5     16.5        4      0.1
     5.5     14.5      4.5      0.1
     5.5     14.5      4.5      0.1

    1 5
     5.5     14.5      4.5      0.1
       6       12        5      0.1
     6.5      9.5        5      0.1
     6.5        8        4      0.1
     6.5        8        4      0.1

    2 5
     5.5     14.5      4.5      0.1
     8.5     14.5        7      0.1
    10.5       12        7      0.1
      12        8        7      0.1
      12        8        7      0.1

    2 4
    -1.5     17.5        6      1.7
       0     19.5        8      1.2
     0.5       22        6      1.2
     4.5       24      6.5      1.2

    2 6
     4.5       24      6.5      1.2
     7.5       26      6.5      0.1
      12       28      6.5      0.1
    16.5     30.5      6.5      0.1
    18.5       33        7      0.1
    18.5       33        7      0.1

    3 5
    18.5       33        7      0.1
      25     33.5        6      0.1
    31.5     35.5        6      0.1
    37.5       39        6      0.1
    41.5     41.5        6      0.1

    2 4
    18.5       33        7      0.1
    20.5     36.5      5.5      0.1
    23.5       40      5.5      0.1
    26.5       44      5.5      0.1

    3 6
     4.5       24      6.5      1.2
     4.5     26.5        9      1.2
     3.5     30.5       10      1.2
     4.5       33     12.5      1.2
       7       37       12      1.2
       8       38        8      1.2

    3 8
       8       38        8      1.2
       8       41        8      0.1
       5       40        8      0.1
     6.5     44.5        8      0.1
     8.5       48        8      0.1
    11.5     51.5        8      0.1
      11     55.5        8      0.1
      10       59        8      0.1

    3 7
      10       59        8      0.1
       6     60.5        8      0.1
       3     64.5        8      0.1
     0.5     69.5        8      0.1
    -1.5       73       10      0.1
    -1.5     77.5       11      0.1
    -1.5     77.5       11      0.1

    3 9
      10       59        8      0.1
       9     61.5        8      0.1
    10.5     64.5       10      0.1
      12     67.5       10      0.1
      12       72       10      0.1
      14       73      9.5      0.1
    17.5       75      9.5      0.1
    20.5     74.5        9      0.1
    21.5       76        9      0.1

    8 14
       8       38        8      1.2
    11.5     39.5     14.5      0.8
    14.5     42.5       13      0.8
    18.5       47       13      0.5
    23.5       53       12      0.5
      26     55.5     11.5      0.5
      30     57.5     11.5      0.5
    36.5     60.5       12      0.5
      41       63       12      0.5
      45       65     11.5      0.1
      49       69       12      0.1
      55       74     14.5      0.1
      59     78.5     14.5      0.1
      61       83     14.5      0.1

    1 2
     0.5       -5      3.5      5.5
       1     -5.5      3.5      5.5

    2 5
       1     -5.5      3.5      5.5
       4       -5      3.5      1.7
     9.5       -5        6      1.7
    12.5     -4.5      8.5      1.7
    15.5       -4      6.5      1.8

    2 5
    15.5       -4      6.5      1.8
      16     -7.5      6.5      0.1
      16    -11.5      6.5      0.1
    14.5    -15.5        3      0.1
      14    -15.5        3      0.1

    1 3
    15.5       -4      6.5      1.8
      18       -2      8.5      1.2
      21     -0.5      8.5      1.2

    4 9
      21     -0.5      8.5      1.2
      25       -2        9      0.5
      29       -6      8.5      0.5
      30      -11      8.5      0.5
    31.5      -14        9      0.5
    33.5      -20        9      0.1
      38    -25.5      8.5      0.1
    43.5    -25.5      8.5      0.1
    43.5    -25.5      8.5      0.1

    2 5
      21     -0.5      8.5      1.2
    22.5      1.5      8.5        1
      25      9.5      8.5        1
    26.5     13.5        8        1
    29.5     16.5        7      1.4

    3 7
    29.5     16.5        7      1.4
    29.5       19      6.5      0.1
    32.5       22        6      0.1
    34.5       24        6      0.1
    36.5     27.5      5.5      0.1
    36.5       34      5.5      0.1
    36.5       34      5.5      0.1

    2 5
    29.5     16.5        7      1.4
      31       17        7      1.2
    34.5     15.5      6.5      0.8
      38       16      6.5      0.8
      40       16      6.5        1

    3 6
      40       16      6.5        1
      42     13.5        9      0.1
      47     13.5        9      0.1
    51.5      9.5     10.5      0.1
    57.5       11       11      0.1
    57.5       11       11      0.1

    2 5
      40       16      6.5        1
    41.5     19.5      3.5      0.1
    41.5       23        8      0.1
    43.5       27        8      0.1
    43.5       27        9      0.1

    2 5
    43.5       27        9      0.1
      48     26.5        9      0.1
      52     25.5        9      0.1
      57     25.5        9      0.1
    57.5     25.5        9      0.1

    1 2
    43.5       27        9      0.1
    43.5       27     11.5      0.1

    1 3
    43.5       27     11.5      0.1
    40.5       30       11      0.1
    40.5       31       11      0.1

    1 3
    40.5       31       11      0.1
      42     33.5       11      0.1
    42.5     35.5     11.5      0.1

    2 8
    40.5       31       11      0.1
    40.5       31       11      0.1
    37.5     31.5       11      0.1
    33.5       33       12      0.1
    30.5       36       11      0.1
    28.5     39.5       11      0.1
    28.5     41.5       11      0.1
    28.5     41.5       11      0.1

    5 10
    43.5       27     11.5      0.1
      44       30      8.5      0.1
    47.5     33.5        8      0.1
      50     36.5        8      0.1
    52.5       42      9.5      0.1
      54     44.5      9.5      0.1
    61.5       51      9.5      0.1
      68       52      9.5      0.1
    70.5     54.5        9      0.1
    73.5       57      9.5      0.1

    1 4
       1     -5.5      3.5      5.5
     1.5     -8.5      2.5      1.6
     1.5      -11      2.5      1.6
     1.5      -13        3      2.3

    1 2
     1.5      -13        3      2.3
       3    -13.5      5.5      1.7

    6 13
       3    -13.5      5.5      1.7
       9      -15        3      0.7
    10.5      -19      4.5      0.6
     9.5    -23.5      4.5      0.4
     8.5    -27.5      4.5      0.4
      11      -31      4.5      0.4
      14    -33.5      4.5      0.4
      16      -37      4.5      0.4
    17.5    -41.5        5      0.4
      16      -47      4.5      0.1
    12.5    -51.5      5.5      0.1
      12    -55.5      6.5      0.1
      11      -60        7      0.1

    1 4
       3    -13.5      5.5      1.7
       3    -15.5      8.5      0.6
       3    -17.5      8.5      0.6
       4    -17.5     11.5      0.6

    2 9
       4    -17.5     11.5      0.6
       6    -17.5       12      0.1
       7    -18.5       12      0.1
       8    -16.5       12      0.1
     9.5    -16.5       12      0.1
      10    -15.5     12.5      0.1
    12.5    -14.5     14.5      0.1
    12.5      -13       15      0.1
    12.5      -11     15.5      0.1

    5 10
       4    -17.5     11.5      0.6
     3.5    -19.5     11.5      0.9
     4.5    -21.5       12      0.6
       5    -24.5     12.5      0.6
     4.5    -29.5       12      0.4
     3.5    -36.5       10      0.4
     4.5      -40     12.5      0.4
     3.5    -46.5       13      0.4
      -2    -52.5     13.5      0.4
    -3.5      -57       14      0.4

    1 3
     1.5      -13        3      2.3
    -0.5      -15      4.5      1.2
    -2.5    -17.5      4.5      1.2

    3 9
    -2.5    -17.5      4.5      1.2
    -5.5    -18.5      4.5      0.4
    -8.5      -18        4      0.4
     -10    -20.5        4      0.4
     -11      -23      3.5      0.1
   -14.5      -26      3.5      0.1
   -17.5    -31.5        4      0.1
     -19      -35        4      0.1
     -19    -35.5        4      0.1

    7 14
    -2.5    -17.5      4.5      1.2
    -1.5      -23        5      0.3
    -0.5      -26      5.5      0.3
       1    -28.5        5      0.1
     3.5    -31.5      5.5      0.1
     4.5      -35      5.5      0.1
     7.5      -39      5.5      0.1
       9      -45      4.5      0.1
      11    -49.5        6      0.1
      11      -54        6      0.1
      11      -57        6      0.1
      11      -64        6      0.1
       9      -68        7      0.1
       5      -72      9.5      0.1

    2 4
   -13.5     -0.5        4      1.8
     -16     -4.5        3      2.6
   -18.5    -10.5      4.5      2.6
   -20.5    -15.5      7.5      3.7

    2 3
   -20.5    -15.5      7.5      3.7
   -17.5    -23.5        7      1.9
   -18.5      -30      7.5      1.9

    1 3
   -18.5      -30      7.5      1.9
   -22.5    -30.5      7.5      0.1
   -23.5      -30        9      0.1

    1 4
   -23.5      -30        9      0.1
     -24    -27.5      9.5      0.1
     -26      -25      9.5      0.1
     -26    -25.5        9      0.1

    2 6
   -23.5      -30        9      0.1
     -25      -32      8.5      0.1
   -28.5      -32      8.5      0.1
     -31      -34      8.5      0.1
     -31      -36      8.5      0.1
     -31      -36      8.5      0.1

    2 4
   -18.5      -30      7.5      1.9
   -16.5      -33      7.5        1
   -16.5      -38        9        1
     -16      -40      7.5      1.6

    2 5
     -16      -40      7.5      1.6
   -18.5      -43     12.5      0.1
     -21      -46     13.5      0.1
   -24.5    -44.5       11      0.1
   -28.5    -42.5     11.5      0.1

    3 7
     -16      -40      7.5      1.6
     -14      -43        7      0.5
   -13.5    -45.5        7      0.5
   -14.5      -48      8.5      0.5
   -14.5    -52.5       11      0.1
   -13.5    -56.5     11.5      0.1
   -13.5    -59.5       13      0.1

    2 4
   -20.5    -15.5      7.5      3.7
   -23.5    -17.5        8      1.5
   -27.5      -19      7.5      1.5
     -30    -21.5        6      1.5

    1 3
     -30    -21.5        6      1.5
   -31.5    -18.5      4.5      0.1
   -33.5      -17        5      0.1

    1 4
   -33.5      -17        5      0.1
     -33    -14.5        5      0.1
   -33.5      -11      5.5      0.1
     -34       -9      5.5      0.1

    5 13
   -33.5      -17        5      0.1
     -36      -19      4.5      0.1
     -40    -20.5      4.5      0.1
     -46      -23      4.5      0.1
   -48.5      -24      4.5      0.1
   -52.5      -25      4.5      0.1
     -55      -23      4.5      0.1
     -57    -23.5      4.5      0.1
   -60.5      -23      3.5      0.1
     -63    -24.5        4      0.1
   -65.5    -26.5        5      0.1
   -65.5    -30.5      4.5      0.1
   -65.5      -33        5      0.1

    1 2
     -30    -21.5        6      1.5
   -30.5    -23.5        5      1.2

    2 5
   -30.5    -23.5        5      1.2
     -29    -25.5        5      0.3
   -28.5    -29.5        5      0.3
   -27.5    -34.5        6      0.3
   -27.5    -34.5      4.5      0.3

    2 6
   -27.5    -34.5      4.5      0.3
     -26    -37.5      2.5      0.1
   -25.5    -40.5        3      0.1
   -25.5    -44.5        3      0.1
   -24.5    -47.5        3      0.1
   -24.5    -49.5        3      0.1

    2 4
   -27.5    -34.5      4.5      0.3
   -30.5      -35      5.5      0.1
     -35      -35      5.5      0.1
     -38      -34      5.5      0.1

    3 9
   -30.5    -23.5        5      1.2
     -33      -25      4.5      0.7
   -35.5    -28.5      4.5      0.7
   -37.5    -31.5      4.5      0.7
   -38.5    -35.5      4.5      0.7
     -41    -41.5      4.5      0.3
     -42    -44.5      4.5      0.3
   -43.5    -48.5        5      0.1
   -43.5    -48.5        5      0.1


CONNECTIONS:
        0    1
        0    1
        2    1
        2    1

        0    1
        0    1
        2    1
        2    1
        4    1
        4    1
        6    1
        6    1

        0    1
        1    1
        1    1
        0    1
        4    1
        5    1
        5    1
        7    1
        7    1
        4    1
       10    1
       11    1
       11    1
       10    1
       14    1
       15    1
       15    1
       14    1

        0    1
        1    1
        1    1
        3    1
        3    1
        5    1
        5    1
        7    1
        7    1
        9    1
        9    1
       11    1
       12    1
       12    1
       11    1
        0    1
       16    1
       17    1
       17    1
       19    1
       19    1
       16    1
       22    1
       22    1

        0    1
        1    1
        2    1
        2    1
        1    1
        5    1
        5    1
        0    1
        8    1
        9    1
        9    1
        8    1
       12    1
       13    1
       13    1
       12    1


/*----------------------------------------------------------------*/
proc geometry() { 

	/* NULL geometry procedure: keeps the user from
	calling the geometry procedure in isolation. */

    printf("\nYou must re-read the entire geometry\n")
    printf("file to execute geometry().\n\n")
}