| Offset 1, 4 lines modified | Offset 1, 4 lines modified | ||
| 1 | · | 1 | ·2c5d4af22723cd1bef75946b8077fa0f·52909256·doc·optional·python3-bmtk-doc_1.1.1+ds-4_all.deb |
| 2 | ·05ba44e5dbe7b33f558b077ecbe91ca7·31021600·python·optional·python3-bmtk-examples_1.1.1+ds-4_all.deb | 2 | ·05ba44e5dbe7b33f558b077ecbe91ca7·31021600·python·optional·python3-bmtk-examples_1.1.1+ds-4_all.deb |
| 3 | ·e8179ed92e1d209a9570ddf4d4615661·532952·python·optional·python3-bmtk_1.1.1+ds-4_amd64.deb | 3 | ·e8179ed92e1d209a9570ddf4d4615661·532952·python·optional·python3-bmtk_1.1.1+ds-4_amd64.deb |
| Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
| 1 | -rw-r--r--···0········0········0········4·2025-02-24·15:24:36.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-02-24·15:24:36.000000·debian-binary |
| 2 | -rw-r--r--···0········0········0····150 | 2 | -rw-r--r--···0········0········0····15088·2025-02-24·15:24:36.000000·control.tar.xz |
| 3 | -rw-r--r--···0········0········0·528939 | 3 | -rw-r--r--···0········0········0·52893976·2025-02-24·15:24:36.000000·data.tar.xz |
| Offset 863, 15 lines modified | Offset 863, 15 lines modified | ||
| 863 | <span·class="w">···</span><span·class="p">}</span> | 863 | <span·class="w">···</span><span·class="p">}</span> |
| 864 | <span·class="p">}</span> | 864 | <span·class="p">}</span> |
| 865 | </pre></div> | 865 | </pre></div> |
| 866 | </div> | 866 | </div> |
| 867 | <p>To·change·the·stimulus·to·a·WAV·file·of·your·choice,·point·to·the·relative·path·of·the·file·under·“data_file”.</p> | 867 | <p>To·change·the·stimulus·to·a·WAV·file·of·your·choice,·point·to·the·relative·path·of·the·file·under·“data_file”.</p> |
| 868 | <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> | 868 | <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> |
| 869 | <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> | 869 | <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> |
| 870 | <div><p><img·alt=" | 870 | <div><p><img·alt="3238f4b815e143e6a9e44bc932acd945"·class="no-scaled-link"·src="_images/Filters_sp_t_mod.png"·width="800"·/></p> |
| 871 | </div><p><img·alt="Responses"·src="_images/Responses_to_diff_scales_and_orientations.png"·/></p> | 871 | </div><p><img·alt="Responses"·src="_images/Responses_to_diff_scales_and_orientations.png"·/></p> |
| 872 | <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> | 872 | <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> |
| 873 | <div·class="nbinput·docutils·container"> | 873 | <div·class="nbinput·docutils·container"> |
| 874 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: | 874 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[3]: |
| 875 | </pre></div> | 875 | </pre></div> |
| 876 | </div> | 876 | </div> |
| 877 | <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> | 877 | <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 137, 15 lines modified | Offset 137, 15 lines modified | ||
| 137 | allow·for·faster·onset·of·responses·and·a·slower·tail·decay. | 137 | allow·for·faster·onset·of·responses·and·a·slower·tail·decay. |
| 138 | Filters·with·very·little·spectral·modulation·have·a·“vertical”·appearance·and | 138 | Filters·with·very·little·spectral·modulation·have·a·“vertical”·appearance·and |
| 139 | respond·preferentially·to·broadband·temporal·edges·such·as·sound·onsets. | 139 | respond·preferentially·to·broadband·temporal·edges·such·as·sound·onsets. |
| 140 | Filters·with·very·little·temporal·modulation·have·a·“horizontal”·appearance·and | 140 | Filters·with·very·little·temporal·modulation·have·a·“horizontal”·appearance·and |
| 141 | respond·preferentially·to·sustained·spectral·edges.·If·the·nodes·are·ordered·by | 141 | respond·preferentially·to·sustained·spectral·edges.·If·the·nodes·are·ordered·by |
| 142 | their·center·frequencies,·we·can·construct·different·“views”·of·the·stimulus | 142 | their·center·frequencies,·we·can·construct·different·“views”·of·the·stimulus |
| 143 | (speech·in·this·case)·through·these·different·types·of·filters. | 143 | (speech·in·this·case)·through·these·different·types·of·filters. |
| 144 | [ | 144 | [3238f4b815e143e6a9e44bc932acd945] |
| 145 | [Responses] | 145 | [Responses] |
| 146 | Now·we·will·build·a·larger·bank·of·filters·with·randomly·assigned·properties. | 146 | Now·we·will·build·a·larger·bank·of·filters·with·randomly·assigned·properties. |
| 147 | Beware·that·if·n_filts·is·set·larger,·the·code·could·take·a·long·time·to·run·in | 147 | Beware·that·if·n_filts·is·set·larger,·the·code·could·take·a·long·time·to·run·in |
| 148 | the·notebook. | 148 | the·notebook. |
| 149 | [3]: | 149 | [3]: |
| 150 | n_filts·=·100 | 150 | n_filts·=·100 |
| Offset 617, 15 lines modified | Offset 617, 15 lines modified | ||
| 617 | ··········<div·class="body"·role="main"> | 617 | ··········<div·class="body"·role="main"> |
| 618 | ············ | 618 | ············ |
| 619 | ··<section·id="Replaying-Parts-of-a-Simulation"> | 619 | ··<section·id="Replaying-Parts-of-a-Simulation"> |
| 620 | <h1>Replaying·Parts·of·a·Simulation<a·class="headerlink"·href="#Replaying-Parts-of-a-Simulation"·title="Link·to·this·heading">¶</a></h1> | 620 | <h1>Replaying·Parts·of·a·Simulation<a·class="headerlink"·href="#Replaying-Parts-of-a-Simulation"·title="Link·to·this·heading">¶</a></h1> |
| 621 | <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, | 621 | <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, |
| 622 | 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> | 622 | 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> |
| 623 | <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> | 623 | <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> |
| 624 | <div><p><img·alt=" | 624 | <div><p><img·alt="19fc6452f44e4261b20c3666f74f78fe"·class="no-scaled-link"·src="_images/disconnected_sim_figure.png"·width="700"·/></p> |
| 625 | </div><div·class="nbinput·nblast·docutils·container"> | 625 | </div><div·class="nbinput·nblast·docutils·container"> |
| 626 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[1]: | 626 | <div·class="prompt·highlight-none·notranslate"><div·class="highlight"><pre><span></span>[1]: |
| 627 | </pre></div> | 627 | </pre></div> |
| 628 | </div> | 628 | </div> |
| 629 | <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> | 629 | <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> |
| 630 | <span·class="kn">from</span>·<span·class="nn">bmtk.analyzer.spike_trains</span>·<span·class="kn">import</span>·<span·class="n">plot_raster</span> | 630 | <span·class="kn">from</span>·<span·class="nn">bmtk.analyzer.spike_trains</span>·<span·class="kn">import</span>·<span·class="n">plot_raster</span> |
| 631 | </pre></div> | 631 | </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 | [19fc6452f44e4261b20c3666f74f78fe] |
| 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 | *****·Initial·Simulation·(Generating·a·Baseline·for·Synaptic·Activity)¶·***** | 25 | *****·Initial·Simulation·(Generating·a·Baseline·for·Synaptic·Activity)¶·***** |
| 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·tutorials.·For·our·example·we·copy·the·bionet_450cell_example | 28 | see·existing·tutorials.·For·our·example·we·copy·the·bionet_450cell_example |