Skip to content

Commit

Permalink
Flip order pre/post -> post/pre in WormNeuroReader
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Feb 29, 2024
1 parent fee6bf9 commit a3f50a4
Show file tree
Hide file tree
Showing 8 changed files with 682 additions and 21 deletions.
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
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

0 comments on commit a3f50a4

Please sign in to comment.