bmtool 0.5.9.7__tar.gz → 0.5.9.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.
Files changed (29) hide show
  1. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/PKG-INFO +29 -371
  2. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/README.md +28 -370
  3. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/bmplot.py +36 -33
  4. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/connectors.py +2 -2
  5. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/util/util.py +6 -12
  6. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool.egg-info/PKG-INFO +29 -371
  7. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/setup.py +1 -1
  8. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/LICENSE +0 -0
  9. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/SLURM.py +0 -0
  10. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/__init__.py +0 -0
  11. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/__main__.py +0 -0
  12. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/debug/__init__.py +0 -0
  13. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/debug/commands.py +0 -0
  14. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/debug/debug.py +0 -0
  15. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/graphs.py +0 -0
  16. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/manage.py +0 -0
  17. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/plot_commands.py +0 -0
  18. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/singlecell.py +0 -0
  19. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/synapses.py +0 -0
  20. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/util/__init__.py +0 -0
  21. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/util/commands.py +0 -0
  22. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/util/neuron/__init__.py +0 -0
  23. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool/util/neuron/celltuner.py +0 -0
  24. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool.egg-info/SOURCES.txt +0 -0
  25. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool.egg-info/dependency_links.txt +0 -0
  26. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool.egg-info/entry_points.txt +0 -0
  27. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool.egg-info/requires.txt +0 -0
  28. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/bmtool.egg-info/top_level.txt +0 -0
  29. {bmtool-0.5.9.7 → bmtool-0.5.9.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bmtool
3
- Version: 0.5.9.7
3
+ Version: 0.5.9.8
4
4
  Summary: BMTool
5
5
  Home-page: https://github.com/cyneuro/bmtool
6
6
  Download-URL:
@@ -38,12 +38,12 @@ A collection of modules to make developing [Neuron](https://www.neuron.yale.edu/
38
38
  [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/cyneuro/bmtool/blob/master/LICENSE)
39
39
 
40
40
  ## Table of Contents
41
- - [Getting Started](#Getting-Started)
42
- - [CLI](#CLI)
43
- - [Single Cell](#Single-Cell-Module)
41
+ - [Getting Started](#getting-started)
42
+ - [CLI](#cli)
43
+ - [Single Cell](#single-cell-module)
44
44
  - [Synapses](#synapses-module)
45
- - [Connectors](#Connectors-Module)
46
- - [Bmplot](#bmplot-Module)
45
+ - [Connectors](#connectors-module)
46
+ - [Bmplot](#bmplot-module)
47
47
  - [Graphs](#graphs-module)
48
48
 
49
49
  ## Getting Started
@@ -397,148 +397,53 @@ connector.setup_nodes(target=net.nodes(pop_name = 'PopB'))
397
397
  net.add_edges(**connector.edge_params())
398
398
  ```
399
399
 
400
- ## Bmplot Module
401
- - [Total connections](#Total-connection-plot)
402
- - [Percent connections](#Percent-connection-plot)
403
- - [Convergence connnections](#convergence-plot)
404
- - [Divergence connections](#divergence-plot)
405
- - [Gap Junction connections](#gap-junction-plot)
406
- - [connection histogram](#connection-histogram)
407
- - [probability connection](#probability-of-connection-plot)
408
- - [3D location](#3d-position-plot)
409
- - [3D rotation](#cell-rotations)
410
- - [Plot Connection Diagram](#plot-connection-diagram)
411
-
412
- ### Total connection plot
413
- #### Generates a table of total number of connections each neuron population recieves
414
-
415
-
416
- ```python
417
- from bmtool import bmplot
418
- bmplot.total_connection_matrix(config='config.json',sources='LA',targets='LA',tids='pop_name',sids='pop_name',no_prepend_pop=True,include_gap=False)
419
- ```
400
+ ## Bmplot Module
401
+ ### for a demo please see the notebook [here](examples/bmplot/bmplot.ipynb)
402
+ - [total_connection_matrix](#total_connection_matrix)
403
+ - [percent_connection_matrix](#percent_connection_matrix)
404
+ - [convergence_connection_matrix](#convergence_connection_matrix)
405
+ - [divergence_connection_matrix](#divergence_connection_matrix)
406
+ - [gap_junction_matrix](#gap_junction_matrix)
407
+ - [connection_distance](#connection_distance)
408
+ - [connection_histogram](#connection_histogram)
409
+ - [plot_3d_positions](#plot_3d_positions)
410
+ - [plot_3d_cell_rotation](#plot_3d_cell_rotation)
420
411
 
412
+ ### total_connection_matrix
413
+ #### Generates a table of total number of connections each neuron population recieves
421
414
 
422
415
 
423
- ![png](readme_figures/output_19_0.png)
424
-
425
-
426
-
427
- ### Percent connection plot
416
+ ### percent_connection_matrix
428
417
  #### Generates a table of the percent connectivity of neuron populations.Method can change if you want the table to be total percent connectivity, only unidirectional connectivity or only bi directional connectvity
429
418
 
430
419
 
431
- ```python
432
- bmplot.percent_connection_matrix(config='config.json',sources='LA',targets='LA',tids='pop_name',sids='pop_name',no_prepend_pop=True,method='total',include_gap=False)
433
- ```
434
-
435
-
436
-
437
- ![png](readme_figures/output_21_0.png)
438
-
439
-
440
-
441
- ### Convergence plot
420
+ ### convergence_connection_matrix
442
421
  #### Generates a table of the mean convergence of neuron populations. Method can be changed to show max, min, mean, or std for convergence a cell recieves
443
422
 
444
-
445
- ```python
446
- bmplot.convergence_connection_matrix(config='config.json',sources='LA',targets='LA',tids='pop_name',sids='pop_name',no_prepend_pop=True,include_gap=False,method='mean+std')
447
- ```
448
-
449
-
450
-
451
- ![png](readme_figures/output_23_0.png)
452
423
 
453
-
454
-
455
- ### Divergence plot
424
+ ### divergence_connection_matrix
456
425
  #### Generates a table of the mean divergence of neuron populations. Method can be changed to show max, min, mean or std divergence a cell recieves.
457
426
 
458
-
459
- ```python
460
- bmplot.divergence_connection_matrix(config='config.json',sources='LA',targets='LA',tids='pop_name',sids='pop_name',no_prepend_pop=True,include_gap=False,method='mean+std')
461
- ```
462
-
463
-
464
427
 
465
- ![png](readme_figures/output_25_0.png)
466
-
467
- ### Gap Junction plot
468
- #### While gap junctions can be include in the above plots, you can use this function to only view gap junctions.Type can be either 'convergence' or 'percent' connections to generate different plots
469
-
470
-
471
- ```python
472
- bmplot.gap_junction_matrix(config='config.json',sources='LA',targets='LA',sids='pop_name',tids='pop_name',no_prepend_pop=True,type='percent')
473
- ```
428
+ ### gap_junction_matrix
429
+ #### While gap junctions can be include in the above plots, you can use this function to only view gap junctions. Method can be either 'convergence' or 'percent' connections to generate different plots
474
430
 
475
431
 
476
-
477
- ![png](output_gap.png)
478
-
432
+ ### connection_distance
433
+ #### Generates a 3d plot with the source and target cells location along with a histogram showing connection distance
479
434
 
480
- ### Connection histogram
435
+ ### connection_histogram
481
436
  #### Generates a histogram of the distribution of connections a population of cells give to individual cells of another population
482
437
 
483
438
 
484
- ```python
485
- bmplot.connection_histogram(config='config.json',sources='LA',targets='LA',tids='pop_name',sids='pop_name',source_cell='PV',target_cell='PV',include_gap=False)
486
- ```
487
-
488
-
489
-
490
- ![png](readme_figures/output_27_0.png)
491
-
492
-
493
-
494
- ### probability of connection plot
495
- #### this function needs some work
496
-
497
-
498
- ```python
499
- bmplot.probability_connection_matrix(config='config.json',sources='LA',targets='LA',tids='pop_name',sids='pop_name',no_prepend_pop=True,line_plot=True)
500
- ```
501
-
502
-
503
-
504
- ![png](readme_figures/output_29_0.png)
505
-
506
-
507
-
508
-
509
-
510
- ![png](readme_figures/output_29_1.png)
511
-
512
-
513
-
514
- ### 3D position plot
439
+ ### plot_3d_positions
515
440
  #### Generates a plot of cells positions in 3D space
516
441
 
517
442
 
518
- ```python
519
- bmplot.plot_3d_positions(config='config.json',populations_list='LA',group_by='pop_name',save_file=False)
520
- ```
521
-
522
-
523
-
524
- ![png](readme_figures/output_31_0.png)
525
-
526
-
527
-
528
- ### cell rotations
443
+ ### plot_3d_cell_rotation
529
444
  #### Generates a plot of cells location in 3D plot and also the cells rotation
530
445
 
531
446
 
532
- ```python
533
- bmplot.cell_rotation_3d(config='config2.json',populations_list='all',group_by='pop_name',save_file=False,quiver_length=20,arrow_length_ratio=0.25,max_cells=100)
534
- ```
535
-
536
-
537
-
538
- ![png](readme_figures/output_33_0.png)
539
-
540
-
541
-
542
447
  ### Plot Connection Diagram
543
448
 
544
449
 
@@ -553,252 +458,6 @@ bmplot.plot_network_graph(config='config.json',sources='LA',targets='LA',tids='p
553
458
 
554
459
 
555
460
 
556
-
557
-
558
- ```python
559
- from bmtool import bmplot
560
- bmplot.plot_basic_cell_info(config_file='config.json')
561
- ```
562
-
563
- Network and node info:
564
- LA:
565
-
566
-
567
-
568
- <table border="1" class="dataframe">
569
- <thead>
570
- <tr style="text-align: right;">
571
- <th></th>
572
- <th>node_type</th>
573
- <th>pop_name</th>
574
- <th>model_type</th>
575
- <th>model_template</th>
576
- <th>morphology</th>
577
- <th>count</th>
578
- </tr>
579
- </thead>
580
- <tbody>
581
- <tr>
582
- <th>0</th>
583
- <td>100</td>
584
- <td>PNa</td>
585
- <td>biophysical</td>
586
- <td>hoc:Cell_Af</td>
587
- <td>blank.swc</td>
588
- <td>800</td>
589
- </tr>
590
- <tr>
591
- <th>1</th>
592
- <td>101</td>
593
- <td>PNc</td>
594
- <td>biophysical</td>
595
- <td>hoc:Cell_Cf</td>
596
- <td>blank.swc</td>
597
- <td>800</td>
598
- </tr>
599
- <tr>
600
- <th>2</th>
601
- <td>102</td>
602
- <td>PV</td>
603
- <td>biophysical</td>
604
- <td>hoc:InterneuronCellf</td>
605
- <td>blank.swc</td>
606
- <td>240</td>
607
- </tr>
608
- <tr>
609
- <th>3</th>
610
- <td>103</td>
611
- <td>SOM</td>
612
- <td>biophysical</td>
613
- <td>hoc:LTS_Cell</td>
614
- <td>blank.swc</td>
615
- <td>160</td>
616
- </tr>
617
- </tbody>
618
- </table>
619
-
620
-
621
- thalamus_pyr:
622
-
623
-
624
-
625
- <table border="1" class="dataframe">
626
- <thead>
627
- <tr style="text-align: right;">
628
- <th></th>
629
- <th>node_type</th>
630
- <th>pop_name</th>
631
- <th>model_type</th>
632
- <th>count</th>
633
- </tr>
634
- </thead>
635
- <tbody>
636
- <tr>
637
- <th>0</th>
638
- <td>100</td>
639
- <td>pyr_inp</td>
640
- <td>virtual</td>
641
- <td>1600</td>
642
- </tr>
643
- </tbody>
644
- </table>
645
-
646
-
647
- thalamus_pv:
648
-
649
-
650
-
651
- <table border="1" class="dataframe">
652
- <thead>
653
- <tr style="text-align: right;">
654
- <th></th>
655
- <th>node_type</th>
656
- <th>pop_name</th>
657
- <th>model_type</th>
658
- <th>count</th>
659
- </tr>
660
- </thead>
661
- <tbody>
662
- <tr>
663
- <th>0</th>
664
- <td>100</td>
665
- <td>pv_inp</td>
666
- <td>virtual</td>
667
- <td>240</td>
668
- </tr>
669
- </tbody>
670
- </table>
671
-
672
-
673
- thalamus_som:
674
-
675
-
676
-
677
- <table border="1" class="dataframe">
678
- <thead>
679
- <tr style="text-align: right;">
680
- <th></th>
681
- <th>node_type</th>
682
- <th>pop_name</th>
683
- <th>model_type</th>
684
- <th>count</th>
685
- </tr>
686
- </thead>
687
- <tbody>
688
- <tr>
689
- <th>0</th>
690
- <td>100</td>
691
- <td>som_inp</td>
692
- <td>virtual</td>
693
- <td>160</td>
694
- </tr>
695
- </tbody>
696
- </table>
697
-
698
-
699
- tone:
700
-
701
-
702
-
703
- <table border="1" class="dataframe">
704
- <thead>
705
- <tr style="text-align: right;">
706
- <th></th>
707
- <th>node_type</th>
708
- <th>pop_name</th>
709
- <th>model_type</th>
710
- <th>count</th>
711
- </tr>
712
- </thead>
713
- <tbody>
714
- <tr>
715
- <th>0</th>
716
- <td>100</td>
717
- <td>tone</td>
718
- <td>virtual</td>
719
- <td>1840</td>
720
- </tr>
721
- </tbody>
722
- </table>
723
-
724
-
725
- shock:
726
-
727
-
728
-
729
- <table border="1" class="dataframe">
730
- <thead>
731
- <tr style="text-align: right;">
732
- <th></th>
733
- <th>node_type</th>
734
- <th>pop_name</th>
735
- <th>model_type</th>
736
- <th>count</th>
737
- </tr>
738
- </thead>
739
- <tbody>
740
- <tr>
741
- <th>0</th>
742
- <td>100</td>
743
- <td>shock</td>
744
- <td>virtual</td>
745
- <td>400</td>
746
- </tr>
747
- </tbody>
748
- </table>
749
-
750
-
751
- shell:
752
-
753
-
754
-
755
- <table border="1" class="dataframe">
756
- <thead>
757
- <tr style="text-align: right;">
758
- <th></th>
759
- <th>node_type</th>
760
- <th>pop_name</th>
761
- <th>model_type</th>
762
- <th>count</th>
763
- </tr>
764
- </thead>
765
- <tbody>
766
- <tr>
767
- <th>0</th>
768
- <td>100</td>
769
- <td>PNa</td>
770
- <td>virtual</td>
771
- <td>3975</td>
772
- </tr>
773
- <tr>
774
- <th>1</th>
775
- <td>101</td>
776
- <td>PNc</td>
777
- <td>virtual</td>
778
- <td>3975</td>
779
- </tr>
780
- <tr>
781
- <th>2</th>
782
- <td>102</td>
783
- <td>PV</td>
784
- <td>virtual</td>
785
- <td>1680</td>
786
- </tr>
787
- <tr>
788
- <th>3</th>
789
- <td>103</td>
790
- <td>SOM</td>
791
- <td>virtual</td>
792
- <td>1120</td>
793
- </tr>
794
- </tbody>
795
- </table>
796
-
797
-
798
-
799
-
800
-
801
- 'LA'
802
461
  ## Graphs Module
803
462
  - [Generate graph](#generate-graph)
804
463
  - [Plot Graph](#plot-graph)
@@ -806,7 +465,6 @@ bmplot.plot_basic_cell_info(config_file='config.json')
806
465
 
807
466
  ### Generate Graph
808
467
 
809
-
810
468
  ```python
811
469
  from bmtool import graphs
812
470
  import networkx as nx