Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gap between soma and non-soma branches #27

Open
danilobenozzo opened this issue Sep 28, 2023 · 0 comments
Open

gap between soma and non-soma branches #27

danilobenozzo opened this issue Sep 28, 2023 · 0 comments

Comments

@danilobenozzo
Copy link

danilobenozzo commented Sep 28, 2023

example with a Purkinje cell:

  1. soma at point 21 (see PC .swc file and image attached) has the dendrite attached (only one) which starts from point 40
    after creating the cell PCcell:
from arborize import bsb_schematic
from arborize import neuron_build
from bsb.morphologies import Morphology 
from dbbs_models import PurkinjeCellmodel

morpho = Morphology.from_swc(file_morphology, tags=PurkinjeCellmodel.swc_tags)
schematic = bsb_schematic(morpho, PurkinjeCellmodel)
PCcell = neuron_build(schematic)

>>> PCcell.soma[1].children()[0].psection()['morphology']['pts3d']
[(-10.5770263671875, 7.5341033935546875, 0.0, 3.6700000762939453),
 (-9.3170166015625, 12.0941162109375, 0.0, 3.6700000762939453)]

note that first row is not the parent point coordinate xyz, it starts directly from point 40 => it allows gap and this is ok when connecting soma with non-soma branches;

  1. by adding a second child to point 2:
>>> PCcell.soma[1].children()[0].psection()['morphology']['pts3d']
[(-19.92120361328125, 1.2533416748046875, 0.0, 4.665064811706543),
 (-15.0, 7.0, 0.0, 3.6700000762939453),
 (-20.0, 7.0, 0.0, 3.6700000762939453)]

it added in the first row the parent coordinate, thus it fills the gap (which means also making the branch longer)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant