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

Insert channels into CNG.swc cell photos #272

Open
ishanseth18 opened this issue Jan 28, 2021 · 0 comments
Open

Insert channels into CNG.swc cell photos #272

ishanseth18 opened this issue Jan 28, 2021 · 0 comments

Comments

@ishanseth18
Copy link

I would like to insert channels into the dendrites of a cell model (in this case barrionuevo_cell1zr.CNG.swc), but don't have a good way of doing so yet.

Using moose.le(), I can see dendrite compartments are named in the following way: dend_146_15, with "dend" as a prefix and 2 numbers following.

My first question is what do the first number and second number represent? What do they tell me about the location of that compartment?

Secondly, how do you suggest I insert channels into these compartments? Currently, I am using the following code, but Moose.wildcardFind does not return me a list of compartments as I expected. I am looking through documentation and cannot find a function that returns me the list I expect. Ideally, I would like a function that returns me a list like moose.le, but it seems moose.le is not working here either.

def chan_distrib_list( obj_path, gbar_dend, rootword ):
chanlist = []
for element in moose.wildcardFind(obj_path):
print(element)
if re.match(rootword, str(element)):
compartment = re.sub('/model0[0]/elec[0]/', '', str(element))
chanlist.append(['K', compartment, 'Gbar', str(gbar_dend)])
return chanlist

Thanks so much!

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