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

Flip order pre/post -> post/pre in WormNeuroReader #7

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion c302/ConnectomeReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,21 @@ def analyse_connections(cells, neuron_conns, neurons2muscles, muscles, muscle_co
#core_set = ['VA6', 'VD6']
print_("\n\nConnections between cells in the subset %s:\n"%(core_set))


for c in neuron_conns:
if c.pre_cell in core_set and c.post_cell in core_set:
print_(str(c))

print_details_on =['AVBR','NSMR']
for cd in print_details_on:
print_("\n\nAll outgoing connections of %s:\n"%(cd))
for c in neuron_conns:
if c.pre_cell == cd:
print_(str(c))
print_("\n\nAll incoming connections of %s:\n"%(cd))
for c in neuron_conns:
if c.post_cell == cd:
print_(str(c))


print_("")

Expand Down
4 changes: 2 additions & 2 deletions c302/WormNeuroAtlasReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def read_data(self, include_nonconnected_cells=False):

connection = False

gji = gj[apre, apost]
gji = gj[apost, apre]
num = gji[0]
if num>0:
#print("Gap junc (%s (%i) -> %s (%i): %s"%(pre, apre, post, apost, gji))
Expand All @@ -85,7 +85,7 @@ def read_data(self, include_nonconnected_cells=False):
conns.append(ConnectionInfo(pre, post, num, syntype, synclass))
connection = True

csi = cs[apre, apost]
csi = cs[apost, apre]
num = csi[0]
if num>0:
#print("Chem syn (%s (%i) -> %s (%i): %s"%(pre, apre, post, apost, gji))
Expand Down
686 changes: 668 additions & 18 deletions examples/test/Comparison.ipynb

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/test/images/Pharyngeal/WormNeuroAtlas_exc_to_neurons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/test/images/Social/WormNeuroAtlas_exc_to_neurons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions examples/test/test_nwa.py → examples/test/test_WNA.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
print(" %s:\t%s"%(e,metadata[m][e]))

test_cells = ['ADAL','ADEL','RIAL', 'VA3', 'VD3']
test_cells = ['NSMR']
for c in test_cells:
atlas.everything_about(c)

Expand Down