bmtool 0.6.6.1__tar.gz → 0.6.6.2__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.6.6.1 → bmtool-0.6.6.2}/PKG-INFO +1 -1
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/synapses.py +16 -9
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/PKG-INFO +1 -1
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/setup.py +1 -1
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/LICENSE +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/README.md +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/SLURM.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/__init__.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/__main__.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/bmplot.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/connectors.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/debug/__init__.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/debug/commands.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/debug/debug.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/graphs.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/manage.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/plot_commands.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/singlecell.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/__init__.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/commands.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/neuron/__init__.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/neuron/celltuner.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool/util/util.py +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/SOURCES.txt +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/dependency_links.txt +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/entry_points.txt +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/requires.txt +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/bmtool.egg-info/top_level.txt +0 -0
- {bmtool-0.6.6.1 → bmtool-0.6.6.2}/setup.cfg +0 -0
@@ -687,8 +687,8 @@ class SynapseTuner:
|
|
687
687
|
display(ui)
|
688
688
|
update_ui()
|
689
689
|
|
690
|
-
def
|
691
|
-
delay=250, plot=True):
|
690
|
+
def stp_frequency_response(self, freqs=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 35, 50, 100, 200],
|
691
|
+
delay=250, plot=True,log_plot=True):
|
692
692
|
"""
|
693
693
|
Analyze synaptic response across different stimulation frequencies.
|
694
694
|
|
@@ -729,11 +729,11 @@ class SynapseTuner:
|
|
729
729
|
self.ispk = original_ispk
|
730
730
|
|
731
731
|
if plot:
|
732
|
-
self._plot_frequency_analysis(results)
|
732
|
+
self._plot_frequency_analysis(results,log_plot=log_plot)
|
733
733
|
|
734
734
|
return results
|
735
735
|
|
736
|
-
def _plot_frequency_analysis(self, results):
|
736
|
+
def _plot_frequency_analysis(self, results,log_plot):
|
737
737
|
"""
|
738
738
|
Plot the frequency-dependent synaptic properties.
|
739
739
|
|
@@ -744,11 +744,12 @@ class SynapseTuner:
|
|
744
744
|
"""
|
745
745
|
fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(15, 5))
|
746
746
|
|
747
|
-
# Convert frequencies to log scale for better visualization
|
748
|
-
frequencies = np.array(results['frequencies'])
|
749
747
|
|
750
748
|
# Plot PPR
|
751
|
-
|
749
|
+
if log_plot:
|
750
|
+
ax1.semilogx(results['frequencies'], results['ppr'], 'o-')
|
751
|
+
else:
|
752
|
+
ax1.plot(results['frequencies'], results['ppr'], 'o-')
|
752
753
|
ax1.axhline(y=1, color='gray', linestyle='--', alpha=0.5)
|
753
754
|
ax1.set_xlabel('Frequency (Hz)')
|
754
755
|
ax1.set_ylabel('Paired Pulse Ratio')
|
@@ -756,7 +757,10 @@ class SynapseTuner:
|
|
756
757
|
ax1.grid(True)
|
757
758
|
|
758
759
|
# Plot Induction
|
759
|
-
|
760
|
+
if log_plot:
|
761
|
+
ax2.semilogx(results['frequencies'], results['induction'], 'o-')
|
762
|
+
else:
|
763
|
+
ax2.plot(results['frequencies'], results['induction'], 'o-')
|
760
764
|
ax2.axhline(y=0, color='gray', linestyle='--', alpha=0.5)
|
761
765
|
ax2.set_xlabel('Frequency (Hz)')
|
762
766
|
ax2.set_ylabel('Induction')
|
@@ -764,7 +768,10 @@ class SynapseTuner:
|
|
764
768
|
ax2.grid(True)
|
765
769
|
|
766
770
|
# Plot Recovery
|
767
|
-
|
771
|
+
if log_plot:
|
772
|
+
ax3.semilogx(results['frequencies'], results['recovery'], 'o-')
|
773
|
+
else:
|
774
|
+
ax3.plot(results['frequencies'], results['recovery'], 'o-')
|
768
775
|
ax3.axhline(y=0, color='gray', linestyle='--', alpha=0.5)
|
769
776
|
ax3.set_xlabel('Frequency (Hz)')
|
770
777
|
ax3.set_ylabel('Recovery')
|
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
|
File without changes
|