openworm / owmeta

Unified, simple data access python library for data & facts about C. elegans anatomy
MIT License
152 stars 49 forks source link

implement Neuron.get_neighbors #3

Closed slarson closed 10 years ago

slarson commented 10 years ago

Ideal spec:

Get a list of neighboring neurons.  

:param type: What kind of junction to look for.  
0=all, 1=gap junctions only, 2=all chemical synapses 3=incoming chemical synapses, 4=outgoing chemical synapses
 :returns: a list of neuron names
 :rtype: List

Stub is here: https://github.com/openworm/PyOpenWorm/blob/master/PyOpenWorm/neuron.py#L376

slarson commented 10 years ago

Partial implementation is here. Still need to implement gap junctions and several of the other arguments. Current version works with chemical synapses only.