Skip to content

Commit 1fec64f

Browse files
author
Documenter.jl
committed
build based on 5512482
1 parent aa7f885 commit 1fec64f

8 files changed

Lines changed: 427 additions & 419 deletions

File tree

julia-docs/dev/docstrings.html

Lines changed: 181 additions & 181 deletions
Large diffs are not rendered by default.

julia-docs/dev/docstrings/medyan.def_link_type--339fe050fe131631.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ <h1>Keyword Arguments</h1>
236236
<li><p>Required fields:</p>
237237
<ul>
238238
<li><code>name::Symbol</code>: Unique identifier for this reaction within the place.</li>
239-
<li><code>affect!</code>: Callback that executes the reaction. Signature: <code>(c::Context; link::Link, chem_voxel::Int, reaction_id, place_idx, kwargs...) -&gt; Int</code>. <code>link</code> is a handle identifying the specific link instance — pass it to <a href="../docstrings/medyan.get_state-e99d22cacff37374.html"><code>get_state</code></a>, <a href="../docstrings/medyan.update_link--67d413cca6fe82eb.html"><code>update_link!</code></a>, <a href="../docstrings/medyan.link2tags-645330bedbf54254.html"><code>link2tags</code></a>, etc. Return a status code for debugging purposes. For <code>fila_cutoff</code> reactions, also receives <code>place::FilaMonoIdx</code> (a randomly chosen nearby filament monomer within the cutoff distance).</li>
239+
<li><code>affect!</code>: Callback that executes the reaction. Signature: <code>(c::Context; link::Link, chem_voxel::Int, reaction_id, place_idx, kwargs...) -&gt; Int</code>. <code>link</code> is a handle identifying the specific link instance — pass it to <a href="../docstrings/medyan.get_state-e99d22cacff37374.html"><code>get_state</code></a>, <a href="../docstrings/medyan.update_link--67d413cca6fe82eb.html"><code>update_link!</code></a>, <a href="../docstrings/medyan.link2tags-645330bedbf54254.html"><code>link2tags</code></a>, etc. Return a status code for debugging purposes. For <code>fila_cutoff</code> reactions, also receives <code>place::FilaMonoIdx</code> (a randomly chosen nearby filament monomer within the cutoff distance). For <code>ball_cutoff</code> reactions, also receives <code>place::BallIdx</code> (a randomly chosen nearby ball within the cutoff distance).</li>
240240
</ul></li>
241241
<li><p>Optional fields:</p>
242242
<ul>
@@ -245,7 +245,8 @@ <h1>Keyword Arguments</h1>
245245
<li><code>invvolumepower::Int64 = 0</code>: Volume scaling. Set to 1 for bimolecular (nm³/s), 0 for unimolecular (1/s).</li>
246246
<li><code>reactants_extra::String = ""</code>: Additional reactant species whose counts multiply the propensity (e.g., <code>"diffusing.ARP23"</code>). Uses the same <code>"+"</code>-separated format as <a href="../docstrings/medyan.def_reaction--60ae13f69a537c68.html"><code>def_reaction!</code></a> (e.g., <code>"diffusing.A + diffusing.B"</code>).</li>
247247
<li><code>fila_cutoff::Tuple{Symbol, Float64} = nothing</code>: If set, e.g., <code>(:actin, 50.0)</code>, the propensity is multiplied by the number of nearby filament monomers of that type within the cutoff distance (nm). When the reaction fires, <code>affect!</code> receives one such monomer as <code>place::FilaMonoIdx</code>. <strong>Some monomers are invisible to this search until after a mechanics cycle</strong> — see “Nearby count caching and mechanics” below.</li>
248-
<li><code>fila_tip_cutoff::Tuple{Symbol, Bool, Float64} = nothing</code>: If set, e.g., <code>(:actin, true, 50.0)</code>, the propensity is multiplied by the number of nearby filament tips of that type within the cutoff distance (nm). The <code>Bool</code> is <code>is_minus_end</code>: <code>true</code> for minus-end tips, <code>false</code> for plus-end tips. When the reaction fires, <code>affect!</code> receives one such tip as <code>place::FilaTipIdx</code>. Mutually exclusive with <code>fila_cutoff</code>. <strong>Some tips are invisible to this search until after a mechanics cycle</strong> — see “Nearby count caching and mechanics” below.</li>
248+
<li><code>fila_tip_cutoff::Tuple{Symbol, Bool, Float64} = nothing</code>: If set, e.g., <code>(:actin, true, 50.0)</code>, the propensity is multiplied by the number of nearby filament tips of that type within the cutoff distance (nm). The <code>Bool</code> is <code>is_minus_end</code>: <code>true</code> for minus-end tips, <code>false</code> for plus-end tips. When the reaction fires, <code>affect!</code> receives one such tip as <code>place::FilaTipIdx</code>. Mutually exclusive with <code>fila_cutoff</code> and <code>ball_cutoff</code>. <strong>Some tips are invisible to this search until after a mechanics cycle</strong> — see “Nearby count caching and mechanics” below.</li>
249+
<li><code>ball_cutoff::Float64 = nothing</code>: If set, e.g., <code>50.0</code>, the propensity is multiplied by the number of nearby balls whose centers are within the cutoff distance (nm). When the reaction fires, <code>affect!</code> receives one such ball as <code>place::BallIdx</code>. Only balls that have been through a mechanics cycle (<code>is_minimized</code>) are visible to this search. Mutually exclusive with <code>fila_cutoff</code> and <code>fila_tip_cutoff</code>.</li>
249250
<li><code>enabled::Bool = true</code>: Whether reaction is active by default.</li>
250251
</ul></li>
251252
</ul></li>
@@ -274,9 +275,9 @@ <h1>When rates are reevaluated</h1>
274275
</ul>
275276
<p><strong>Workaround — rejection sampling</strong>: If a reaction rate genuinely depends on state that <code>rate</code> cannot track (e.g., the state of a nearby monomer not attached to this link), have <code>rate</code> return an <strong>upper bound</strong> of the true rate. Then in <code>affect!</code>, read the current state and accept the reaction with probability <code>true_rate / upper_bound</code> (rejecting by returning <code>0</code> otherwise). This preserves correct stochastic kinetics despite the stale cache.</p>
276277
</section>
277-
<section id="nearby-count-caching-and-mechanics-fila_cutoff-fila_tip_cutoff-reactions" class="level1">
278-
<h1>Nearby count caching and mechanics (<code>fila_cutoff</code> / <code>fila_tip_cutoff</code> reactions)</h1>
279-
<p>When a reaction has <code>fila_cutoff</code> set, its total propensity is <code>base_rate × rate(...) × nearby_monomer_count × [reactants_extra counts] / V^invvolumepower</code>. When a reaction has <code>fila_tip_cutoff</code> set, the propensity is the same but with <code>nearby_tip_count</code> in place of <code>nearby_monomer_count</code>. These counts are <strong>cached</strong> alongside the rate factor and have important update semantics:</p>
278+
<section id="nearby-count-caching-and-mechanics-fila_cutoff-fila_tip_cutoff-ball_cutoff-reactions" class="level1">
279+
<h1>Nearby count caching and mechanics (<code>fila_cutoff</code> / <code>fila_tip_cutoff</code> / <code>ball_cutoff</code> reactions)</h1>
280+
<p>When a reaction has <code>fila_cutoff</code> set, its total propensity is <code>base_rate × rate(...) × nearby_monomer_count × [reactants_extra counts] / V^invvolumepower</code>. When a reaction has <code>fila_tip_cutoff</code> set, the propensity is the same but with <code>nearby_tip_count</code> in place of <code>nearby_monomer_count</code>. When a reaction has <code>ball_cutoff</code> set, the propensity is the same but with <code>nearby_ball_count</code> in place of <code>nearby_monomer_count</code>. These counts are <strong>cached</strong> alongside the rate factor and have important update semantics:</p>
280281
<section id="snapshotted-positions" class="level2">
281282
<h2 class="anchored" data-anchor-id="snapshotted-positions">Snapshotted positions</h2>
282283
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="fl">1</span>. After each mechanics cycle, monomer and tip positions are snapshotted.</span>
@@ -290,7 +291,10 @@ <h2 class="anchored" data-anchor-id="snapshotted-positions">Snapshotted position
290291
<span id="cb2-9"><a href="#cb2-9" aria-hidden="true" tabindex="-1"></a><span class="fl">4</span>. Similarly, a tip is visible only <span class="cf">if</span> it existed at the last mechanics</span>
291292
<span id="cb2-10"><a href="#cb2-10" aria-hidden="true" tabindex="-1"></a> snapshot. Polymerization and depolymerization move an existing tip</span>
292293
<span id="cb2-11"><a href="#cb2-11" aria-hidden="true" tabindex="-1"></a> but <span class="cf">do</span> not create a <span class="kw">new</span> one, so the tip stays visible at its</span>
293-
<span id="cb2-12"><a href="#cb2-12" aria-hidden="true" tabindex="-1"></a> snapshotted position.</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
294+
<span id="cb2-12"><a href="#cb2-12" aria-hidden="true" tabindex="-1"></a> snapshotted position.</span>
295+
<span id="cb2-13"><a href="#cb2-13" aria-hidden="true" tabindex="-1"></a><span class="fl">5</span>. A ball is visible to <span class="ss">`ball_cutoff`</span> only when</span>
296+
<span id="cb2-14"><a href="#cb2-14" aria-hidden="true" tabindex="-1"></a> [<span class="ss">`is_minimized`</span>](<span class="pp">@ref</span>) is <span class="ss">`true`</span>. Changing <span class="ss">`position`</span> or <span class="ss">`radius`</span></span>
297+
<span id="cb2-15"><a href="#cb2-15" aria-hidden="true" tabindex="-1"></a> via [<span class="ss">`update_ball!`</span>](<span class="pp">@ref</span>) resets <span class="ss">`is_minimized`</span> to <span class="ss">`false`</span>.</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
294298
</section>
295299
</section>
296300
<section id="example-membrane-bound-npf-cluster" class="level1">

julia-docs/dev/docstrings/src/sys_def.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ <h1>Keyword Arguments</h1>
477477
<li><p>Required fields:</p>
478478
<ul>
479479
<li><code>name::Symbol</code>: Unique identifier for this reaction within the place.</li>
480-
<li><code>affect!</code>: Callback that executes the reaction. Signature: <code>(c::Context; link::Link, chem_voxel::Int, reaction_id, place_idx, kwargs...) -&gt; Int</code>. <code>link</code> is a handle identifying the specific link instance — pass it to <a href="../../docstrings/medyan.get_state-e99d22cacff37374.html"><code>get_state</code></a>, <a href="../../docstrings/medyan.update_link--67d413cca6fe82eb.html"><code>update_link!</code></a>, <a href="../../docstrings/medyan.link2tags-645330bedbf54254.html"><code>link2tags</code></a>, etc. Return a status code for debugging purposes. For <code>fila_cutoff</code> reactions, also receives <code>place::FilaMonoIdx</code> (a randomly chosen nearby filament monomer within the cutoff distance).</li>
480+
<li><code>affect!</code>: Callback that executes the reaction. Signature: <code>(c::Context; link::Link, chem_voxel::Int, reaction_id, place_idx, kwargs...) -&gt; Int</code>. <code>link</code> is a handle identifying the specific link instance — pass it to <a href="../../docstrings/medyan.get_state-e99d22cacff37374.html"><code>get_state</code></a>, <a href="../../docstrings/medyan.update_link--67d413cca6fe82eb.html"><code>update_link!</code></a>, <a href="../../docstrings/medyan.link2tags-645330bedbf54254.html"><code>link2tags</code></a>, etc. Return a status code for debugging purposes. For <code>fila_cutoff</code> reactions, also receives <code>place::FilaMonoIdx</code> (a randomly chosen nearby filament monomer within the cutoff distance). For <code>ball_cutoff</code> reactions, also receives <code>place::BallIdx</code> (a randomly chosen nearby ball within the cutoff distance).</li>
481481
</ul></li>
482482
<li><p>Optional fields:</p>
483483
<ul>
@@ -486,7 +486,8 @@ <h1>Keyword Arguments</h1>
486486
<li><code>invvolumepower::Int64 = 0</code>: Volume scaling. Set to 1 for bimolecular (nm³/s), 0 for unimolecular (1/s).</li>
487487
<li><code>reactants_extra::String = ""</code>: Additional reactant species whose counts multiply the propensity (e.g., <code>"diffusing.ARP23"</code>). Uses the same <code>"+"</code>-separated format as <a href="../../docstrings/medyan.def_reaction--60ae13f69a537c68.html"><code>def_reaction!</code></a> (e.g., <code>"diffusing.A + diffusing.B"</code>).</li>
488488
<li><code>fila_cutoff::Tuple{Symbol, Float64} = nothing</code>: If set, e.g., <code>(:actin, 50.0)</code>, the propensity is multiplied by the number of nearby filament monomers of that type within the cutoff distance (nm). When the reaction fires, <code>affect!</code> receives one such monomer as <code>place::FilaMonoIdx</code>. <strong>Some monomers are invisible to this search until after a mechanics cycle</strong> — see “Nearby count caching and mechanics” below.</li>
489-
<li><code>fila_tip_cutoff::Tuple{Symbol, Bool, Float64} = nothing</code>: If set, e.g., <code>(:actin, true, 50.0)</code>, the propensity is multiplied by the number of nearby filament tips of that type within the cutoff distance (nm). The <code>Bool</code> is <code>is_minus_end</code>: <code>true</code> for minus-end tips, <code>false</code> for plus-end tips. When the reaction fires, <code>affect!</code> receives one such tip as <code>place::FilaTipIdx</code>. Mutually exclusive with <code>fila_cutoff</code>. <strong>Some tips are invisible to this search until after a mechanics cycle</strong> — see “Nearby count caching and mechanics” below.</li>
489+
<li><code>fila_tip_cutoff::Tuple{Symbol, Bool, Float64} = nothing</code>: If set, e.g., <code>(:actin, true, 50.0)</code>, the propensity is multiplied by the number of nearby filament tips of that type within the cutoff distance (nm). The <code>Bool</code> is <code>is_minus_end</code>: <code>true</code> for minus-end tips, <code>false</code> for plus-end tips. When the reaction fires, <code>affect!</code> receives one such tip as <code>place::FilaTipIdx</code>. Mutually exclusive with <code>fila_cutoff</code> and <code>ball_cutoff</code>. <strong>Some tips are invisible to this search until after a mechanics cycle</strong> — see “Nearby count caching and mechanics” below.</li>
490+
<li><code>ball_cutoff::Float64 = nothing</code>: If set, e.g., <code>50.0</code>, the propensity is multiplied by the number of nearby balls whose centers are within the cutoff distance (nm). When the reaction fires, <code>affect!</code> receives one such ball as <code>place::BallIdx</code>. Only balls that have been through a mechanics cycle (<code>is_minimized</code>) are visible to this search. Mutually exclusive with <code>fila_cutoff</code> and <code>fila_tip_cutoff</code>.</li>
490491
<li><code>enabled::Bool = true</code>: Whether reaction is active by default.</li>
491492
</ul></li>
492493
</ul></li>
@@ -515,9 +516,9 @@ <h1>When rates are reevaluated</h1>
515516
</ul>
516517
<p><strong>Workaround — rejection sampling</strong>: If a reaction rate genuinely depends on state that <code>rate</code> cannot track (e.g., the state of a nearby monomer not attached to this link), have <code>rate</code> return an <strong>upper bound</strong> of the true rate. Then in <code>affect!</code>, read the current state and accept the reaction with probability <code>true_rate / upper_bound</code> (rejecting by returning <code>0</code> otherwise). This preserves correct stochastic kinetics despite the stale cache.</p>
517518
</section>
518-
<section id="nearby-count-caching-and-mechanics-fila_cutoff-fila_tip_cutoff-reactions" class="level1">
519-
<h1>Nearby count caching and mechanics (<code>fila_cutoff</code> / <code>fila_tip_cutoff</code> reactions)</h1>
520-
<p>When a reaction has <code>fila_cutoff</code> set, its total propensity is <code>base_rate × rate(...) × nearby_monomer_count × [reactants_extra counts] / V^invvolumepower</code>. When a reaction has <code>fila_tip_cutoff</code> set, the propensity is the same but with <code>nearby_tip_count</code> in place of <code>nearby_monomer_count</code>. These counts are <strong>cached</strong> alongside the rate factor and have important update semantics:</p>
519+
<section id="nearby-count-caching-and-mechanics-fila_cutoff-fila_tip_cutoff-ball_cutoff-reactions" class="level1">
520+
<h1>Nearby count caching and mechanics (<code>fila_cutoff</code> / <code>fila_tip_cutoff</code> / <code>ball_cutoff</code> reactions)</h1>
521+
<p>When a reaction has <code>fila_cutoff</code> set, its total propensity is <code>base_rate × rate(...) × nearby_monomer_count × [reactants_extra counts] / V^invvolumepower</code>. When a reaction has <code>fila_tip_cutoff</code> set, the propensity is the same but with <code>nearby_tip_count</code> in place of <code>nearby_monomer_count</code>. When a reaction has <code>ball_cutoff</code> set, the propensity is the same but with <code>nearby_ball_count</code> in place of <code>nearby_monomer_count</code>. These counts are <strong>cached</strong> alongside the rate factor and have important update semantics:</p>
521522
<section id="snapshotted-positions" class="level2">
522523
<h2 class="anchored" data-anchor-id="snapshotted-positions">Snapshotted positions</h2>
523524
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb12"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="fl">1</span>. After each mechanics cycle, monomer and tip positions are snapshotted.</span>
@@ -531,7 +532,10 @@ <h2 class="anchored" data-anchor-id="snapshotted-positions">Snapshotted position
531532
<span id="cb12-9"><a href="#cb12-9" aria-hidden="true" tabindex="-1"></a><span class="fl">4</span>. Similarly, a tip is visible only <span class="cf">if</span> it existed at the last mechanics</span>
532533
<span id="cb12-10"><a href="#cb12-10" aria-hidden="true" tabindex="-1"></a> snapshot. Polymerization and depolymerization move an existing tip</span>
533534
<span id="cb12-11"><a href="#cb12-11" aria-hidden="true" tabindex="-1"></a> but <span class="cf">do</span> not create a <span class="kw">new</span> one, so the tip stays visible at its</span>
534-
<span id="cb12-12"><a href="#cb12-12" aria-hidden="true" tabindex="-1"></a> snapshotted position.</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
535+
<span id="cb12-12"><a href="#cb12-12" aria-hidden="true" tabindex="-1"></a> snapshotted position.</span>
536+
<span id="cb12-13"><a href="#cb12-13" aria-hidden="true" tabindex="-1"></a><span class="fl">5</span>. A ball is visible to <span class="ss">`ball_cutoff`</span> only when</span>
537+
<span id="cb12-14"><a href="#cb12-14" aria-hidden="true" tabindex="-1"></a> [<span class="ss">`is_minimized`</span>](<span class="pp">@ref</span>) is <span class="ss">`true`</span>. Changing <span class="ss">`position`</span> or <span class="ss">`radius`</span></span>
538+
<span id="cb12-15"><a href="#cb12-15" aria-hidden="true" tabindex="-1"></a> via [<span class="ss">`update_ball!`</span>](<span class="pp">@ref</span>) resets <span class="ss">`is_minimized`</span> to <span class="ss">`false`</span>.</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
535539
</section>
536540
</section>
537541
<section id="example-membrane-bound-npf-cluster" class="level1">

julia-docs/dev/search.json

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)