bmtool 0.5.7.1__tar.gz → 0.5.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bmtool-0.5.7.1 → bmtool-0.5.8}/PKG-INFO +2 -1
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/bmplot.py +16 -7
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool.egg-info/PKG-INFO +2 -1
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool.egg-info/requires.txt +1 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/setup.py +3 -2
- {bmtool-0.5.7.1 → bmtool-0.5.8}/LICENSE +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/README.md +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/SLURM.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/__init__.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/__main__.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/connectors.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/debug/__init__.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/debug/commands.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/debug/debug.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/graphs.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/manage.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/plot_commands.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/singlecell.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/synapses.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/util/__init__.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/util/commands.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/util/neuron/__init__.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/util/neuron/celltuner.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool/util/util.py +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool.egg-info/SOURCES.txt +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool.egg-info/dependency_links.txt +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool.egg-info/entry_points.txt +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/bmtool.egg-info/top_level.txt +0 -0
- {bmtool-0.5.7.1 → bmtool-0.5.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bmtool
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.8
|
4
4
|
Summary: BMTool
|
5
5
|
Home-page: https://github.com/cyneuro/bmtool
|
6
6
|
Download-URL:
|
@@ -30,6 +30,7 @@ Requires-Dist: questionary
|
|
30
30
|
Requires-Dist: pynmodlt
|
31
31
|
Requires-Dist: xarray
|
32
32
|
Requires-Dist: fooof
|
33
|
+
Requires-Dist: requests
|
33
34
|
|
34
35
|
# bmtool
|
35
36
|
A collection of modules to make developing [Neuron](https://www.neuron.yale.edu/neuron/) and [BMTK](https://alleninstitute.github.io/bmtk/) models easier.
|
@@ -197,7 +197,7 @@ def probability_connection_matrix(config=None,nodes=None,edges=None,title=None,s
|
|
197
197
|
|
198
198
|
return
|
199
199
|
|
200
|
-
def convergence_connection_matrix(config=None,title=None,sources=None, targets=None, sids=None, tids=None, no_prepend_pop=False,save_file=None,convergence=True,method='mean+std',include_gap=True):
|
200
|
+
def convergence_connection_matrix(config=None,title=None,sources=None, targets=None, sids=None, tids=None, no_prepend_pop=False,save_file=None,convergence=True,method='mean+std',include_gap=True,return_dict=None):
|
201
201
|
"""
|
202
202
|
Generates connection plot displaying convergence data
|
203
203
|
config: A BMTK simulation config
|
@@ -213,9 +213,9 @@ def convergence_connection_matrix(config=None,title=None,sources=None, targets=N
|
|
213
213
|
raise Exception("config not defined")
|
214
214
|
if not sources or not targets:
|
215
215
|
raise Exception("Sources or targets not defined")
|
216
|
-
return divergence_connection_matrix(config,title ,sources, targets, sids, tids, no_prepend_pop, save_file ,convergence, method,include_gap=include_gap)
|
216
|
+
return divergence_connection_matrix(config,title ,sources, targets, sids, tids, no_prepend_pop, save_file ,convergence, method,include_gap=include_gap,return_dict=return_dict)
|
217
217
|
|
218
|
-
def divergence_connection_matrix(config=None,title=None,sources=None, targets=None, sids=None, tids=None, no_prepend_pop=False,save_file=None,convergence=False,method='mean+std',include_gap=True):
|
218
|
+
def divergence_connection_matrix(config=None,title=None,sources=None, targets=None, sids=None, tids=None, no_prepend_pop=False,save_file=None,convergence=False,method='mean+std',include_gap=True,return_dict=None):
|
219
219
|
"""
|
220
220
|
Generates connection plot displaying divergence data
|
221
221
|
config: A BMTK simulation config
|
@@ -264,8 +264,12 @@ def divergence_connection_matrix(config=None,title=None,sources=None, targets=No
|
|
264
264
|
title = title + "Synaptic Convergence"
|
265
265
|
else:
|
266
266
|
title = title + "Synaptic Divergence"
|
267
|
-
|
268
|
-
|
267
|
+
if return_dict:
|
268
|
+
dict = plot_connection_info(syn_info,data,source_labels,target_labels,title, save_file=save_file,return_dict=return_dict)
|
269
|
+
return dict
|
270
|
+
else:
|
271
|
+
plot_connection_info(syn_info,data,source_labels,target_labels,title, save_file=save_file)
|
272
|
+
return
|
269
273
|
|
270
274
|
def gap_junction_matrix(config=None,title=None,sources=None, targets=None, sids=None,tids=None, no_prepend_pop=False,save_file=None,type='convergence'):
|
271
275
|
"""
|
@@ -448,7 +452,7 @@ def edge_histogram_matrix(config=None,sources = None,targets=None,sids=None,tids
|
|
448
452
|
fig.text(0.04, 0.5, 'Source', va='center', rotation='vertical')
|
449
453
|
plt.draw()
|
450
454
|
|
451
|
-
def plot_connection_info(text, num, source_labels,target_labels, title, syn_info='0', save_file=None):
|
455
|
+
def plot_connection_info(text, num, source_labels,target_labels, title, syn_info='0', save_file=None,return_dict=None):
|
452
456
|
"""
|
453
457
|
write about function here
|
454
458
|
"""
|
@@ -472,10 +476,12 @@ def plot_connection_info(text, num, source_labels,target_labels, title, syn_info
|
|
472
476
|
plt.setp(ax1.get_xticklabels(), rotation=45, ha="right",
|
473
477
|
rotation_mode="anchor", size=12, weight = 'semibold')
|
474
478
|
|
479
|
+
graph_dict = {}
|
475
480
|
# Loop over data dimensions and create text annotations.
|
476
481
|
for i in range(num_source):
|
477
482
|
for j in range(num_target):
|
478
483
|
edge_info = text[i,j]
|
484
|
+
graph_dict[str(source_labels[i])+'2'+str(target_labels[j])] = edge_info
|
479
485
|
if syn_info =='2' or syn_info =='3':
|
480
486
|
if num_source > 8 and num_source <20:
|
481
487
|
fig_text = ax1.text(j, i, edge_info,
|
@@ -499,7 +505,10 @@ def plot_connection_info(text, num, source_labels,target_labels, title, syn_info
|
|
499
505
|
fig1.show()
|
500
506
|
if save_file:
|
501
507
|
plt.savefig(save_file)
|
502
|
-
|
508
|
+
if return_dict:
|
509
|
+
return graph_dict
|
510
|
+
else:
|
511
|
+
return
|
503
512
|
|
504
513
|
def connector_percent_matrix(csv_path: str = None, exclude_shell: bool = True,
|
505
514
|
exclude_assembly: bool = False, title: str = 'Percent connection matrix') -> None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bmtool
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.8
|
4
4
|
Summary: BMTool
|
5
5
|
Home-page: https://github.com/cyneuro/bmtool
|
6
6
|
Download-URL:
|
@@ -30,6 +30,7 @@ Requires-Dist: questionary
|
|
30
30
|
Requires-Dist: pynmodlt
|
31
31
|
Requires-Dist: xarray
|
32
32
|
Requires-Dist: fooof
|
33
|
+
Requires-Dist: requests
|
33
34
|
|
34
35
|
# bmtool
|
35
36
|
A collection of modules to make developing [Neuron](https://www.neuron.yale.edu/neuron/) and [BMTK](https://alleninstitute.github.io/bmtk/) models easier.
|
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
|
|
6
6
|
|
7
7
|
setup(
|
8
8
|
name="bmtool",
|
9
|
-
version='0.5.
|
9
|
+
version='0.5.8',
|
10
10
|
author="Neural Engineering Laboratory at the University of Missouri",
|
11
11
|
author_email="gregglickert@mail.missouri.edu",
|
12
12
|
description="BMTool",
|
@@ -27,7 +27,8 @@ setup(
|
|
27
27
|
'questionary',
|
28
28
|
'pynmodlt',
|
29
29
|
'xarray',
|
30
|
-
'fooof'
|
30
|
+
'fooof',
|
31
|
+
'requests'
|
31
32
|
],
|
32
33
|
classifiers=[
|
33
34
|
'Intended Audience :: Developers',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|