Offset 1, 4 lines modified | Offset 1, 4 lines modified | ||
1 | · | 1 | ·7a29afc314c76fba0c8ba7697988ea2c·52887216·doc·optional·python3-bmtk-doc_1.1.1+ds-2_all.deb |
2 | ·286a9a506a2779073d90227e6ba63939·30976580·python·optional·python3-bmtk-examples_1.1.1+ds-2_all.deb | 2 | ·286a9a506a2779073d90227e6ba63939·30976580·python·optional·python3-bmtk-examples_1.1.1+ds-2_all.deb |
3 | ·6326e0bd8afad7a41afd712b2ab4db82·532324·python·optional·python3-bmtk_1.1.1+ds-2_amd64.deb | 3 | ·6326e0bd8afad7a41afd712b2ab4db82·532324·python·optional·python3-bmtk_1.1.1+ds-2_amd64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-10-17·16:14:53.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-10-17·16:14:53.000000·debian-binary |
2 | -rw-r--r--···0········0········0····14940·2024-10-17·16:14:53.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0····14940·2024-10-17·16:14:53.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0·5287208 | 3 | -rw-r--r--···0········0········0·52872084·2024-10-17·16:14:53.000000·data.tar.xz |
Offset 865, 15 lines modified | Offset 865, 15 lines modified | ||
865 | <span·class="w">···</span><span·class="p">}</span> | 865 | <span·class="w">···</span><span·class="p">}</span> |
866 | <span·class="p">}</span> | 866 | <span·class="p">}</span> |
867 | </pre></div> | 867 | </pre></div> |
868 | </div> | 868 | </div> |
869 | <p>To·change·the·stimulus·to·a·WAV·file·of·your·choice,·point·to·the·relative·path·of·the·file·under·“data_file”.</p> | 869 | <p>To·change·the·stimulus·to·a·WAV·file·of·your·choice,·point·to·the·relative·path·of·the·file·under·“data_file”.</p> |
870 | <p>The·filter·carrier·consists·of·a·sinusoidal·modulation·in·2D·akin·to·a·plane·wave.·This·carrier·is·multiplied·by·a·Gaussian·envelope·in·the·spectral·axis·and·an·asymmetric·scaled·gamma·distribution·function·in·the·temporal·axis·to·allow·for·faster·onset·of·responses·and·a·slower·tail·decay.</p> | 870 | <p>The·filter·carrier·consists·of·a·sinusoidal·modulation·in·2D·akin·to·a·plane·wave.·This·carrier·is·multiplied·by·a·Gaussian·envelope·in·the·spectral·axis·and·an·asymmetric·scaled·gamma·distribution·function·in·the·temporal·axis·to·allow·for·faster·onset·of·responses·and·a·slower·tail·decay.</p> |
871 | <p>Filters·with·very·little·spectral·modulation·have·a·“vertical”·appearance·and·respond·preferentially·to·broadband·temporal·edges·such·as·sound·onsets.·Filters·with·very·little·temporal·modulation·have·a·“horizontal”·appearance·and·respond·preferentially·to·sustained·spectral·edges.·If·the·nodes·are·ordered·by·their·center·frequencies,·we·can·construct·different·“views”·of·the·stimulus·(speech·in·this·case)·through·these·different·types·of·filters.</p> | 871 | <p>Filters·with·very·little·spectral·modulation·have·a·“vertical”·appearance·and·respond·preferentially·to·broadband·temporal·edges·such·as·sound·onsets.·Filters·with·very·little·temporal·modulation·have·a·“horizontal”·appearance·and·respond·preferentially·to·sustained·spectral·edges.·If·the·nodes·are·ordered·by·their·center·frequencies,·we·can·construct·different·“views”·of·the·stimulus·(speech·in·this·case)·through·these·different·types·of·filters.</p> |
872 | <div><p><img·alt=" | 872 | <div><p><img·alt="b4e08ea8a0d1467b8879ed9a4412f151"·class="no-scaled-link"·src="_images/Filters_sp_t_mod.png"·style="width:·800px;"·/></p> |
873 | </div><p><img·alt="Responses"·src="_images/Responses_to_diff_scales_and_orientations.png"·/></p> | 873 | </div><p><img·alt="Responses"·src="_images/Responses_to_diff_scales_and_orientations.png"·/></p> |
874 | <p>Now·we·will·build·a·larger·bank·of·filters·with·randomly·assigned·properties.·Beware·that·if·n_filts·is·set·larger,·the·code·could·take·a·long·time·to·run·in·the·notebook.</p> | 874 | <p>Now·we·will·build·a·larger·bank·of·filters·with·randomly·assigned·properties.·Beware·that·if·n_filts·is·set·larger,·the·code·could·take·a·long·time·to·run·in·the·notebook.</p> |
875 | <div·class="nbinput·docutils·container"> | 875 | <div·class="nbinput·docutils·container"> |
876 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 876 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
877 | </pre></div> | 877 | </pre></div> |
878 | </div> | 878 | </div> |
879 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">n_filts</span>·<span·class="o">=</span>·<span·class="mi">100</span> | 879 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="n">n_filts</span>·<span·class="o">=</span>·<span·class="mi">100</span> |
Offset 138, 15 lines modified | Offset 138, 15 lines modified | ||
138 | allow·for·faster·onset·of·responses·and·a·slower·tail·decay. | 138 | allow·for·faster·onset·of·responses·and·a·slower·tail·decay. |
139 | Filters·with·very·little·spectral·modulation·have·a·“vertical”·appearance·and | 139 | Filters·with·very·little·spectral·modulation·have·a·“vertical”·appearance·and |
140 | respond·preferentially·to·broadband·temporal·edges·such·as·sound·onsets. | 140 | respond·preferentially·to·broadband·temporal·edges·such·as·sound·onsets. |
141 | Filters·with·very·little·temporal·modulation·have·a·“horizontal”·appearance·and | 141 | Filters·with·very·little·temporal·modulation·have·a·“horizontal”·appearance·and |
142 | respond·preferentially·to·sustained·spectral·edges.·If·the·nodes·are·ordered·by | 142 | respond·preferentially·to·sustained·spectral·edges.·If·the·nodes·are·ordered·by |
143 | their·center·frequencies,·we·can·construct·different·“views”·of·the·stimulus | 143 | their·center·frequencies,·we·can·construct·different·“views”·of·the·stimulus |
144 | (speech·in·this·case)·through·these·different·types·of·filters. | 144 | (speech·in·this·case)·through·these·different·types·of·filters. |
145 | [ | 145 | [b4e08ea8a0d1467b8879ed9a4412f151] |
146 | [Responses] | 146 | [Responses] |
147 | Now·we·will·build·a·larger·bank·of·filters·with·randomly·assigned·properties. | 147 | Now·we·will·build·a·larger·bank·of·filters·with·randomly·assigned·properties. |
148 | Beware·that·if·n_filts·is·set·larger,·the·code·could·take·a·long·time·to·run·in | 148 | Beware·that·if·n_filts·is·set·larger,·the·code·could·take·a·long·time·to·run·in |
149 | the·notebook. | 149 | the·notebook. |
150 | [3]: | 150 | [3]: |
151 | n_filts·=·100 | 151 | n_filts·=·100 |
Offset 619, 15 lines modified | Offset 619, 15 lines modified | ||
619 | ··········<div·class="body"·role="main"> | 619 | ··········<div·class="body"·role="main"> |
620 | ············ | 620 | ············ |
621 | ··<section·id="Replaying-Parts-of-a-Simulation"> | 621 | ··<section·id="Replaying-Parts-of-a-Simulation"> |
622 | <h1>Replaying·Parts·of·a·Simulation<a·class="headerlink"·href="#Replaying-Parts-of-a-Simulation"·title="Link·to·this·heading">¶</a></h1> | 622 | <h1>Replaying·Parts·of·a·Simulation<a·class="headerlink"·href="#Replaying-Parts-of-a-Simulation"·title="Link·to·this·heading">¶</a></h1> |
623 | <p>When·simulating·a·bio-realistic·network,·cells·will·recieve·synaptic·stimulation·from·both·locally·recurrent·connections·as-well-as·feedforward·connections·from·external·inputs.·Often·when·analyzing·the·results·of·a·full·network·activity·we·would·like·to·know·the·contribution·of·only·a·subset·of·the·synaptic·activity.·For·example,·how·much·does·the·feedforward·synapses,·or·only·recurrent·synapses·between·specific·population·of·cells,·contributed·to·the·simulation·results.·Certain·techniques, | 623 | <p>When·simulating·a·bio-realistic·network,·cells·will·recieve·synaptic·stimulation·from·both·locally·recurrent·connections·as-well-as·feedforward·connections·from·external·inputs.·Often·when·analyzing·the·results·of·a·full·network·activity·we·would·like·to·know·the·contribution·of·only·a·subset·of·the·synaptic·activity.·For·example,·how·much·does·the·feedforward·synapses,·or·only·recurrent·synapses·between·specific·population·of·cells,·contributed·to·the·simulation·results.·Certain·techniques, |
624 | like·running·with·only·a·subset·of·the·full·network,·or·using·optogenetic/current-clamping·to·turn·on-off·subpoluations,·can·provide·useful·insights·but·also·not·tell·the·full·story·of·a·network·simulation.</p> | 624 | like·running·with·only·a·subset·of·the·full·network,·or·using·optogenetic/current-clamping·to·turn·on-off·subpoluations,·can·provide·useful·insights·but·also·not·tell·the·full·story·of·a·network·simulation.</p> |
625 | <p>Instead·we·can·used·the·BMTK·“replay”·input·module·to·disentangle·subsections·of·a·simulation·activity·from·the·full·network·in·BioNet/biophysically·realistic·simulations.·The·BMTK·“replay”·module·let’s·the·user·take·a·previous·simulation,·and·replay·a·simulation·but·using·only·activity·for·only·a·subset·of·the·synapses.·This·can·be·helpful·in·parameter·tuning·and·optimization,·and·for·very·large·networks·can·provide·an·efficient·manner·to·replay·small·subsets·of·a·full·network.</p> | 625 | <p>Instead·we·can·used·the·BMTK·“replay”·input·module·to·disentangle·subsections·of·a·simulation·activity·from·the·full·network·in·BioNet/biophysically·realistic·simulations.·The·BMTK·“replay”·module·let’s·the·user·take·a·previous·simulation,·and·replay·a·simulation·but·using·only·activity·for·only·a·subset·of·the·synapses.·This·can·be·helpful·in·parameter·tuning·and·optimization,·and·for·very·large·networks·can·provide·an·efficient·manner·to·replay·small·subsets·of·a·full·network.</p> |
626 | <div><p><img·alt=" | 626 | <div><p><img·alt="0fd17ffeef0d49f2aa836930d23ebec7"·class="no-scaled-link"·src="_images/disconnected_sim_figure.png"·style="width:·700px;"·/></p> |
627 | </div><div·class="nbinput·nblast·docutils·container"> | 627 | </div><div·class="nbinput·nblast·docutils·container"> |
628 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[1]: | 628 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[1]: |
629 | </pre></div> | 629 | </pre></div> |
630 | </div> | 630 | </div> |
631 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">bmtk.simulator</span>·<span·class="kn">import</span>·<span·class="n">bionet</span> | 631 | <div·class="input_area·highlight-ipython3·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">bmtk.simulator</span>·<span·class="kn">import</span>·<span·class="n">bionet</span> |
632 | <span·class="kn">from</span>·<span·class="nn">bmtk.analyzer.spike_trains</span>·<span·class="kn">import</span>·<span·class="n">plot_raster</span> | 632 | <span·class="kn">from</span>·<span·class="nn">bmtk.analyzer.spike_trains</span>·<span·class="kn">import</span>·<span·class="n">plot_raster</span> |
633 | </pre></div> | 633 | </pre></div> |
Offset 14, 15 lines modified | Offset 14, 15 lines modified | ||
14 | Instead·we·can·used·the·BMTK·“replay”·input·module·to·disentangle·subsections | 14 | Instead·we·can·used·the·BMTK·“replay”·input·module·to·disentangle·subsections |
15 | of·a·simulation·activity·from·the·full·network·in·BioNet/biophysically | 15 | of·a·simulation·activity·from·the·full·network·in·BioNet/biophysically |
16 | realistic·simulations.·The·BMTK·“replay”·module·let’s·the·user·take·a·previous | 16 | realistic·simulations.·The·BMTK·“replay”·module·let’s·the·user·take·a·previous |
17 | simulation,·and·replay·a·simulation·but·using·only·activity·for·only·a·subset | 17 | simulation,·and·replay·a·simulation·but·using·only·activity·for·only·a·subset |
18 | of·the·synapses.·This·can·be·helpful·in·parameter·tuning·and·optimization,·and | 18 | of·the·synapses.·This·can·be·helpful·in·parameter·tuning·and·optimization,·and |
19 | for·very·large·networks·can·provide·an·efficient·manner·to·replay·small·subsets | 19 | for·very·large·networks·can·provide·an·efficient·manner·to·replay·small·subsets |
20 | of·a·full·network. | 20 | of·a·full·network. |
21 | [ | 21 | [0fd17ffeef0d49f2aa836930d23ebec7] |
22 | [1]: | 22 | [1]: |
23 | from·bmtk.simulator·import·bionet | 23 | from·bmtk.simulator·import·bionet |
24 | from·bmtk.analyzer.spike_trains·import·plot_raster | 24 | from·bmtk.analyzer.spike_trains·import·plot_raster |
25 | *\x8**\x8**\x8**\x8**\x8*·I\x8In\x8ni\x8it\x8ti\x8ia\x8al\x8l·S\x8Si\x8im\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n·(\x8(G\x8Ge\x8en\x8ne\x8er\x8ra\x8at\x8ti\x8in\x8ng\x8g·a\x8a·B\x8Ba\x8as\x8se\x8el\x8li\x8in\x8ne\x8e·f\x8fo\x8or\x8r·S\x8Sy\x8yn\x8na\x8ap\x8pt\x8ti\x8ic\x8c·A\x8Ac\x8ct\x8ti\x8iv\x8vi\x8it\x8ty\x8y)\x8)_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 25 | *\x8**\x8**\x8**\x8**\x8*·I\x8In\x8ni\x8it\x8ti\x8ia\x8al\x8l·S\x8Si\x8im\x8mu\x8ul\x8la\x8at\x8ti\x8io\x8on\x8n·(\x8(G\x8Ge\x8en\x8ne\x8er\x8ra\x8at\x8ti\x8in\x8ng\x8g·a\x8a·B\x8Ba\x8as\x8se\x8el\x8li\x8in\x8ne\x8e·f\x8fo\x8or\x8r·S\x8Sy\x8yn\x8na\x8ap\x8pt\x8ti\x8ic\x8c·A\x8Ac\x8ct\x8ti\x8iv\x8vi\x8it\x8ty\x8y)\x8)_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
26 | First·step·is·to·take·an·existing·network·+·simulation·or·build·one·from | 26 | First·step·is·to·take·an·existing·network·+·simulation·or·build·one·from |
27 | scratch.·For·more·information·on·how·to·build·and·run·BioNet·simulations·please | 27 | scratch.·For·more·information·on·how·to·build·and·run·BioNet·simulations·please |
28 | see·existing·_\x8t_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l_\x8s.·For·our·example·we·copy·the·_\x8b_\x8i_\x8o_\x8n_\x8e_\x8t_\x8__\x84_\x85_\x80_\x8c_\x8e_\x8l_\x8l_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e | 28 | see·existing·_\x8t_\x8u_\x8t_\x8o_\x8r_\x8i_\x8a_\x8l_\x8s.·For·our·example·we·copy·the·_\x8b_\x8i_\x8o_\x8n_\x8e_\x8t_\x8__\x84_\x85_\x80_\x8c_\x8e_\x8l_\x8l_\x8·_\x8e_\x8x_\x8a_\x8m_\x8p_\x8l_\x8e |