Changing cell locations also changes
Posted: Sat Sep 06, 2014 6:33 pm
Hi - I'm trying to simulate ephaptically-coupled neurons, and I'm having problems when changing cell locations with pt3dchange. I think I have the hang of creating multiple instances using a template. However, when I change their location using pt3dchange it seems to change other parameters like area, diam, and L. I've tried a few methods (just changing the root/soma location, attaching the soma to a dummy section), but none have worked.
Here's some sample code for creating and moving the cells.
I want to create ncell neurons, each offset by 100 um in the y-direction. Otherwise I want the neurons to be identical. However, geometric variables like area are different between them:
And if I comment out pt3dchange, i.e. I don't change the cells' positions, the variables go back to identical, making me think that pt3dchange is what screws it up:
Other parameters like L etc. behave the same way. Everything in the shape plots looks perfect, though. Just so I understand, what's going on? Why does changing position do this? Is there a better way to create multiple instances of the same class, control their position, but have them otherwise identical? Thank in advance for any help.
Here's some sample code for creating and moving the cells.
Code: Select all
offset=100
obfunc create_cells() { local i localobj tlist, tcell
tlist = new List()
for i = 0,$1-1 {
print i
tcell = new CellL5_Cell() // CellL5_Cell template
tcell for(x) pt3dchange(x,x3d(x),y3d(x)+offset*i,z3d(x), diam3d(x)) // move cell with pt3dchange
tlist.append(tcell)
}
return tlist
}
cells=create_cells(ncell) // Create network
Code: Select all
oc>cells.object(0).soma print area(0.5)
15946.678
oc>cells.object(1).soma print area(0.5)
2748.8936
Code: Select all
oc>cells.object(0).soma print area(0.5)
2748.8936
oc>cells.object(1).soma print area(0.5)
2748.8936