| 1 |
begintemplate BioAxonStub |
| 2 |
|
| 3 |
public init |
| 4 |
public soma, dend, apic, axon |
| 5 |
public all, somatic, basal, apical, axonal |
| 6 |
|
| 7 |
objref all, somatic, basal, apical, axonal |
| 8 |
objref this |
| 9 |
|
| 10 |
create soma[1] |
| 11 |
create dend[1] |
| 12 |
create apic[1] |
| 13 |
create axon[1] |
| 14 |
|
| 15 |
|
| 16 |
proc init() {localobj nl, import |
| 17 |
all = new SectionList() |
| 18 |
somatic = new SectionList() |
| 19 |
basal = new SectionList() |
| 20 |
apical = new SectionList() |
| 21 |
axonal = new SectionList() |
| 22 |
forall delete_section() |
| 23 |
|
| 24 |
// nl = new Import3d_Neurolucida3() |
| 25 |
nl = new Import3d_SWC_read() |
| 26 |
nl.quiet = 1 |
| 27 |
nl.input($s1) |
| 28 |
import = new Import3d_GUI(nl, 0) |
| 29 |
// import.quite = 1 |
| 30 |
import.instantiate(this) |
| 31 |
|
| 32 |
simplify_axon() |
| 33 |
} |
| 34 |
|
| 35 |
proc simplify_axon() { |
| 36 |
|
| 37 |
forsec axonal { delete_section() } |
| 38 |
create axon[2] |
| 39 |
|
| 40 |
axon[0] { |
| 41 |
L = 30 |
| 42 |
diam = 1 |
| 43 |
nseg = 1+2*int(L/40) |
| 44 |
all.append() |
| 45 |
axonal.append() |
| 46 |
} |
| 47 |
axon[1] { |
| 48 |
L = 30 |
| 49 |
diam = 1 |
| 50 |
nseg = 1+2*int(L/40) |
| 51 |
all.append() |
| 52 |
axonal.append() |
| 53 |
} |
| 54 |
connect axon(0), soma(0.5) |
| 55 |
connect axon[1](0), axon[0](1) |
| 56 |
define_shape() |
| 57 |
|
| 58 |
|
| 59 |
} |
| 60 |
|
| 61 |
endtemplate BioAxonStub |