/*----------------------------------------------------------------
%W%  %G%
ctty118f.asc  translated Tue Dec 17 10:29:47 1996 by ntscable 2.0
source file syntax: Eutectic
output file syntax: CABLE
soma: diameter = 13.2256 um  length = 21.8083 um  area = 906.122 um2
      17 three-D points; 20 outline points numbered 1-20
      outline diameter = 18.2601 um
5 primary neurites
21 branches totaling 1143.72 um in length, 1946.18 um2 in area
366 tree points translated to 133 segments (1 requested)
Neurites divided into segments of equal dx between adjacent digitized
branch points.
Segment length constrained to be < 10 um.
No. points    386
No. trees       6
Text  T11118FO, HRP and DAB, 2/3/89                                                                                           

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



/*----------------------------------------------------------------*/
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,0 {
        dend1[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }

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

    for i = 0,0 {
        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,4 {
        dend5[i] {
            nseg = fscan()
            pt3dclear()
            for j = 1, fscan() {
                pt3dadd(fscan(),fscan(),fscan(),fscan())
            }
        }
    }



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

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

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

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

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

}

geometry()


SOMA COORDINATES AND DIAMETERS:

    17
      -9        2       -1        0
    -8.5        1       -1        5
    -7.5    1.625       -1     9.75
    -6.5    1.375       -1    12.75
    -5.5        1       -1       16
      -5  0.53571       -1   17.071
    -3.5 -0.35714       -1   19.286
      -2    -0.25       -1     19.5
      -1     -0.4       -1     19.2
     2.5   -0.425       -1    17.15
       3   -0.375       -1    16.75
     5.5 -0.46429       -1   14.071
     6.5     1.25       -1      9.5
       7    0.875       -1     8.25
     7.5   0.9375       -1    7.875
       9     1.75       -1      5.5
      10        2     -0.5        0


NEURITE COORDINATES AND DIAMETERS:

    3 8
      -6     -4.5     -0.5      0.2
      -7       -7     -3.5      0.3
      -8       -9       -3      0.2
   -11.5      -10       -2      0.2
   -15.5      -10       -2      0.2
   -18.5       -8       -3      0.2
   -19.5     -4.5     -1.5      0.2
     -19       -3     -1.5      0.2

    1 5
    -6.5       -2     -0.5      4.7
      -7     -3.5        3      4.7
      -8       -4        5      3.1
    -9.5       -5        4        2
   -10.5       -5        4      1.1

    10 42
   -10.5       -5        4      1.1
   -12.5     -4.5        4      0.7
     -14     -4.5      5.5      0.7
   -13.5     -5.5        8      0.7
   -13.5     -7.5      9.5      0.5
     -15     -8.5        8      0.5
     -17      -10      8.5      0.5
   -17.5      -13      8.5      0.5
   -17.5      -15     10.5      0.5
   -17.5    -17.5      9.5      0.5
   -18.5    -21.5      9.5      0.5
     -20      -23        8      0.5
     -22      -25      9.5      0.5
     -20    -26.5     11.5      0.5
   -20.5      -28       12      0.5
     -22      -28     12.5      0.5
     -24    -27.5       13      0.5
   -25.5      -28     11.5      0.5
     -26    -28.5       12      0.4
     -25      -29       13      0.4
     -23    -28.5       13      0.4
   -21.5    -28.5     14.5      0.4
     -21    -28.5       16      0.4
   -22.5    -29.5       16      0.4
   -24.5    -28.5     18.5      0.4
     -26    -29.5     19.5      0.4
   -26.5    -32.5     19.5      0.4
     -29    -34.5     20.5      0.4
   -29.5      -35       20      0.4
     -27      -36       21      0.3
     -26      -37       21      0.3
   -28.5    -37.5     21.5      0.3
   -30.5    -37.5     20.5      0.3
   -30.5    -37.5     22.5      0.1
   -31.5      -39       22      0.1
   -29.5      -40       22      0.1
     -28    -39.5     24.5      0.1
   -28.5      -41     24.5      0.1
     -30    -41.5     24.5      0.1
     -32    -42.5       25      0.1
     -35    -42.5     24.5      0.1
   -35.5    -43.5     24.5      0.1

    2 6
   -10.5       -5        4      1.1
   -12.5     -5.5        7      0.4
     -15       -7      6.5      0.4
     -15       -9      5.5      0.4
   -15.5    -10.5        7      0.4
   -15.5    -10.5      8.5      0.4

    1 4
   -15.5    -10.5      8.5      0.4
   -13.5    -12.5      8.5      0.1
     -13      -15        8      0.1
     -13      -15        8      0.1

    18 58
   -15.5    -10.5      8.5      0.4
   -17.5       -9       10      0.4
   -19.5       -9     10.5        1
     -21      -10      9.5      0.3
   -22.5      -12       10      0.3
   -21.5    -11.5     10.5      0.3
   -20.5     -9.5     12.5      0.3
     -22       -9     12.5      0.3
   -24.5      -10     13.5      0.3
   -25.5     -9.5       15      0.3
   -25.5       -9     16.5      0.3
   -25.5       -8     17.5      0.3
     -28       -8       17      0.3
   -29.5     -7.5       18      0.3
   -29.5       -9       20      0.3
     -31     -9.5       21      0.3
     -32     -7.5       21      0.3
   -32.5     -5.5       23      0.3
   -33.5     -4.5       24      0.3
   -36.5     -3.5     25.5      0.3
   -38.5     -1.5     26.5      0.3
   -41.5     -1.5     28.5      0.3
     -44     -4.5     27.5      0.3
   -45.5     -5.5     27.5      0.1
     -50     -6.5       28      0.1
   -55.5     -5.5       29      0.1
     -62       -5       29      0.1
     -67     -5.5       29      1.5
     -70     -5.5       29      0.3
     -72       -6     29.5      0.3
   -75.5     -6.5     29.5      0.3
   -75.5     -6.5     29.5      0.9
     -78       -7     29.5      1.1
     -80       -7       32      0.1
   -83.5     -7.5       31      0.1
     -87       -8       31      0.1
     -93       -8     31.5      0.1
     -99      -10     32.5      0.1
   -99.5      -10       34      0.9
    -103    -10.5     33.5      0.1
  -106.5      -11       34      0.1
  -110.5    -12.5       34      0.9
  -113.5    -12.5     33.5      0.1
    -117      -13     33.5      0.6
    -120      -13     34.5      1.6
  -123.5    -13.5     35.5      0.1
  -125.5    -12.5       34      0.1
  -127.5      -12       34      0.1
    -131    -11.5     34.5      0.1
    -133    -12.5       33      0.8
  -137.5      -13       31      1.3
  -139.5      -14     32.5      0.6
    -143    -14.5       32      0.6
  -146.5      -16     33.5      0.1
    -149    -18.5     33.5      0.1
    -152    -20.5       34      0.1
    -153    -23.5     35.5      0.1
    -153    -23.5     35.5      0.1

    3 9
    -7.5        2     -4.5      0.1
    -8.5        5       -4      0.1
     -10        8     -3.5      0.1
     -12      9.5     -1.5      0.1
     -14       10        0      0.1
   -15.5       10        2      0.1
   -17.5      7.5      3.5      0.1
   -19.5        5      4.5      0.1
   -21.5       -1        3      0.1

    1 3
    -4.5        6     -0.5      4.7
    -4.5        6      5.5      3.6
    -4.5        6        9      3.6

    2 4
    -4.5        6        9      3.6
      -3        9        8      2.3
    -0.5       11      7.5      3.4
       3     14.5        8        2

    11 36
       3     14.5        8        2
     6.5     13.5        7      1.5
    10.5       14        8      1.5
    15.5       17      8.5      1.5
      19     17.5        6      1.5
      23       19        9      1.5
      26     19.5      8.5      1.3
      28     19.5       10      1.3
      32       22     12.5      1.3
      34     23.5       12      1.3
    31.5       25       13      0.7
    31.5       27       13      0.7
    34.5     26.5       13      0.7
      35     24.5     13.5      0.7
      36       25       15      0.7
    36.5     26.5     16.5      0.7
      38     28.5     16.5      0.7
    36.5     30.5       17      0.7
    36.5     32.5       19      0.4
    39.5       35       18      0.4
    39.5       36     18.5      0.4
    37.5     37.5       19      0.4
    36.5     38.5       19      0.4
    37.5     40.5     19.5      0.4
      39     40.5     19.5      0.4
    40.5     42.5       21      0.4
    40.5       44       19      0.4
    40.5       48     20.5      0.2
    41.5       51       21      0.2
    40.5       52     21.5      0.2
    42.5       54     21.5      0.2
    41.5       58     22.5      0.2
      41     59.5       25      0.2
      40     60.5     28.5      0.2
      36       60       30      0.1
    33.5     59.5     30.5      0.1

    3 9
       3     14.5        8        2
     0.5       18        9      0.5
    -0.5     20.5     10.5      0.5
      -4     21.5       11      0.5
    -6.5     23.5       11      0.5
    -8.5       28     11.5        1
      -9       30       12        1
     -11       32     10.5        1
   -12.5     35.5       12        1

    1 4
   -12.5     35.5       12        1
   -12.5       39     12.5      0.5
     -12       41     11.5      0.5
     -12       41     11.5      0.5

    1 3
     -12       41     11.5      0.5
   -14.5     39.5     11.5      0.1
   -14.5     39.5     11.5      0.1

    1 5
     -12       41     11.5      0.5
     -12     43.5     12.5      0.5
     -13       45     12.5      0.6
   -14.5       46       14      0.2
   -14.5       46       14      0.2

    2 8
   -14.5       46       14      0.2
     -13       48     14.5      0.2
     -12     49.5     16.5      0.2
     -13       52       17      0.2
   -11.5     53.5     16.5      0.2
     -12       55       15      0.2
   -11.5       57       17      0.2
   -10.5       58       17      0.2

    3 9
   -10.5       58       17      0.2
    -7.5     58.5       17      0.2
    -5.5       58     18.5      0.2
    -3.5       55     19.5      0.2
      -1     52.5       18      0.2
       2     53.5     16.5      0.2
     3.5     51.5       17      0.2
       5       55       17      0.2
       5       55       17      0.2

    1 4
   -10.5       58       17      0.2
   -11.5       61     18.5      0.2
     -14     61.5       19      0.2
     -14     61.5       19      0.2

    5 15
   -14.5       46       14      0.2
   -15.5     44.5        9      0.2
     -17     46.5       10      0.2
     -22       46      8.5      0.2
   -26.5       46        7      0.2
     -27     44.5      7.5      0.2
     -30       45      5.5      0.7
   -33.5       45      7.5      0.1
   -35.5     44.5      8.5      0.1
   -37.5       45        8      0.1
     -41     46.5        9      0.1
     -44       47      9.5      0.1
     -47     48.5        9      0.1
     -50     49.5      8.5      0.6
   -49.5       49        7      0.6

    1 3
   -49.5       49        7      0.6
     -53     48.5        7      0.1
     -56     48.5      6.5      0.1

    8 26
   -49.5       49        7      0.6
     -50     50.5        8      0.1
   -52.5     52.5        8      0.1
   -54.5     57.5        6      1.3
   -57.5     61.5        7      1.3
   -60.5     65.5      7.5      0.1
     -62     66.5      7.5      0.1
   -63.5     69.5        8      0.1
   -64.5     72.5        8      0.1
     -63     74.5        8      0.6
     -64       76        8      0.1
     -65       78        8      0.1
     -66       80        8      0.1
   -65.5     81.5      7.5      0.1
     -67     82.5      7.5      0.5
     -68     83.5      7.5      0.2
     -68     86.5        9      2.5
     -69       89       11      0.1
   -68.5       90     10.5      0.1
   -70.5     92.5     10.5        1
     -72     94.5     10.5      0.1
     -73       97       10      0.1
     -76       99      6.5      0.1
   -80.5      100      7.5      0.1
   -85.5     98.5        9      0.1
   -85.5     98.5        9      0.1

    1 4
   -12.5     35.5       12        1
     -15       35     12.5      0.1
     -18     36.5       13      0.1
     -18     36.5       13      0.1

    1 5
     -18     36.5       13      0.1
   -19.5       36     13.5      0.1
   -21.5     34.5     13.5      0.1
     -22     32.5       14      0.1
     -24     29.5       14      0.1

    1 2
     -18     36.5       13      0.1
     -19     36.5     13.5      0.1

    2 6
     -19     36.5     13.5      0.1
     -20     38.5     13.5      0.1
   -21.5       38       14      0.1
     -25       39       14      0.1
     -27     40.5       14      0.1
     -27     40.5       14      0.1

    9 25
     -19     36.5     13.5      0.1
   -20.5     36.5     13.5      0.1
     -23       36     13.5      1.1
   -26.5     31.5       11      0.1
     -29       30       10      0.1
     -30       30       10      1.1
     -32     29.5     10.5      0.1
     -34     27.5        9      0.1
   -37.5     25.5      9.5      0.1
     -40       22      9.5      0.1
   -42.5     20.5       10      0.1
   -43.5       18       10      0.1
   -43.5       15      8.5      0.1
   -44.5     11.5      8.5      0.1
     -46      8.5        9      0.1
   -48.5      4.5       10      0.1
     -50     -0.5     12.5      0.1
     -51       -5     11.5      0.1
     -54      -11       11      0.1
     -55    -13.5     11.5      0.1
   -57.5    -15.5       11      1.4
     -57      -18       11      0.1
   -55.5      -23       10      0.1
   -55.5    -27.5       10      0.1
   -55.5    -27.5       10      0.1

    1 5
   -55.5    -27.5       10      0.1
   -57.5      -30      9.5      0.1
     -61    -30.5      8.5      0.1
     -63    -29.5        8      0.1
     -63    -29.5      8.5      0.1

    1 3
   -55.5    -27.5       10      0.1
     -55      -31       12      0.1
     -55    -32.5       12      0.1

    6 16
    -4.5        6        9      3.6
    -9.5        7     10.5      0.9
   -13.5        7     10.5      0.9
   -16.5        8     10.5      0.9
   -14.5        8       14      0.9
     -17      7.5       16      0.5
     -20        6       15      0.5
   -20.5      6.5       15      1.2
     -22      7.5       15      0.5
   -21.5       11       16      0.5
     -25     11.5     17.5      0.5
   -28.5     13.5       18      0.5
     -30       15       19      1.7
   -32.5       17     20.5      0.7
     -37     19.5       20      0.6
   -42.5     22.5     19.5      0.5

    2 4
   -42.5     22.5     19.5      0.5
   -49.5     22.5       22      0.1
   -52.5     23.5       22      0.1
     -55       26     24.5      0.1

    3 8
   -42.5     22.5     19.5      0.5
     -46     25.5     21.5      0.1
     -48       27     22.5      1.2
   -48.5     29.5       22      0.1
   -53.5     31.5     21.5      0.1
   -56.5       33       24      0.1
   -58.5       34       24      1.7
   -58.5       34       24      0.1

    2 4
   -58.5       34       24      0.1
     -61       31       26      0.1
   -64.5       31       25      0.1
   -67.5       31       25      0.1

    1 4
   -58.5       34       24      0.1
     -61       35       25      0.1
   -64.5     37.5     26.5      0.1
   -64.5     37.5     26.5      0.1

    11 16
      35     24.5     13.5      0.1
      39       23      9.5      1.1
    43.5       23      7.5      1.1
      46       21        5      0.6
    48.5       19      4.5      0.6
    51.5       16      5.5      0.1
      56     11.5        6      0.1
    58.5        9        6      0.6
      65      4.5      5.5      0.6
    83.5     -2.5      7.5      0.6
      91     -3.5        7      0.6
    99.5       -3      6.5      0.6
     106       -2        7      1.4
     113       -1      6.5      1.5
   121.5      0.5      8.5      1.5
   125.5      1.5      7.5      0.7

    1 4
   125.5      1.5      7.5      0.7
     126        0      7.5      0.1
     127     -2.5      7.5      0.1
     127     -2.5      7.5      0.1

    9 23
   125.5      1.5      7.5      0.7
   127.5      2.5      6.5      0.4
     130      3.5        7      0.4
   136.5        5      6.5      0.4
     143        8        6      0.9
   146.5      9.5      5.5      0.6
   152.5     11.5      5.5      0.6
   159.5       14      5.5      1.3
   165.5       15        5      0.2
     169     16.5        5      1.8
   175.5       17        5      0.1
   177.5     15.5        5      0.1
   179.5       16      4.5      0.8
     182     15.5      5.5      0.1
   183.5     14.5      4.5      0.1
   187.5       15      3.5      0.1
   188.5       13        2      0.1
   192.5       13      1.5      0.1
   195.5     13.5      2.5      0.1
     198     12.5      1.5      3.6
     201        9        1      0.9
   201.5        7        1      0.7
   202.5      4.5        1      0.6

    1 4
   202.5      4.5        1      0.6
     201      2.5      1.5      0.1
   199.5      0.5      1.5      0.1
   199.5      0.5      1.5      0.1

    2 4
   202.5      4.5        1      0.6
   203.5      1.5      0.5      0.5
   203.5     -2.5        2      0.1
     203     -7.5        2      0.1


CONNECTIONS:

        0    1
        0    1
        2    1
        2    1


        0    1
        1    1
        1    1
        3    1
        4    1
        4    1
        6    1
        7    1
        7    1
        6    1
       10    1
       10    1
        3    1
       13    1
       13    1
       15    1
       15    1
       17    1
       17    1
        0    1
       20    1
       20    1
       22    1
       22    1

        0    1
        0    1
        2    1
        2    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")
}