Skip to content

Insert channels into CNG.swc cell photos #272

@ishanseth18

Description

@ishanseth18

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions