Dear all
I have some problems while using import3D_swc_read() to read swc file. I notice that there are more than 9000 3D points in swc file, but when I load this swc file into NEURON, it shows that this model contains only 1974 segments. I guess some 3D points in swc are merged when I use import3D_swc_read(). Is there anyway to keep all the 3D points in swc file in NEURON? Thank you so much.
Use import3D_swc_read to read the morphology from swc file
-
- Posts: 267
- Joined: Fri Nov 28, 2008 3:38 pm
- Location: Yale School of Public Health
Re: Use import3D_swc_read to read the morphology from swc file
Every segment corresponds to a location where membrane potential is computed. In particular, this is a distinct concept from the 3D shape of the cell. Segments can contain arbitrarily many 3D points and the surface area, etc for that segment will be computed correctly.
In Python with NEURON 7.5+, you can display the total number of 3D points instantiated via:
In Python with NEURON 7.5+, you can display the total number of 3D points instantiated via:
Code: Select all
print(sum(sec.n3d() for sec in h.allsec()))
-
- Site Admin
- Posts: 6302
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Use import3D_swc_read to read the morphology from swc file
Sections, segments, and how the shapes and sizes of parts of a model are essential concepts. Time to read the documentation:
Conceptual Overview of Sections
https://www.neuron.yale.edu/neuron/stat ... metry.html
Conceptual Overview of Sections
https://www.neuron.yale.edu/neuron/stat ... metry.html