MEDYAN.addfilamentend_reaction!
Tuple{MEDYAN.SysDef, Symbol, Symbol, Bool, Pair{Vector{Symbol}, Vector{Symbol}}, Float64, AbstractString, Float64, Int64}
Add filament end reaction. Return s. Add a filamentendsite
and reaction with callback to change the filaments. This can be used for polymerization, depolymeriation, and changing end state.
Arguments
s::SysDef
: the system to add to.filamenttypename::Symbol
: the filament type name.filamentendsitename::Symbol
: the new name of thefilamentendsite
added. This can be used as a catalyst in other reactions.isminusend::Bool
: true if changing the minus end, false if changing the plus end.changedendstatenames::Pair{Vector{Symbol}, Vector{Symbol}}
: the changes to the end monomer states, the first is the states to match. The second is the new monomer states after the reaction. If the second has more states than the first, new monomers will be added, if the second has less, monomers will be removed. Ordered minus end first.spacing::Float64
: Space needed at the filament end for this reaction. (nm)ratefactor= exp(-β*spacing*loadforce)
where β is 1/kT,loadforce
is the external force pushing axially on the end of the filament. andratefactor
affects this reaction propensity and any others usingfilamentendsitename
reactionexpr::AbstractString
: Allows adding other reactants or products to the reaction." + filamentendsite.$(filamenttypename).$(filamentendsitename) + "
gets added to both sides this to create the full reaction expression. Seeaddreaction!
for syntax.rate::Float64
: Base rate for the reaction. ((nm³)^(invvolumepower
)/s)invvolumepower::Int
:volumefactor= (1/volume)^invvolumepower
wherevolume
is the volume of the voxel in nm³.volumefactor
only applies to this reaction not any other reaction usingfilamentendsitename
Generally this is 0 for reactions without another diffusing reactant, and 1 if there is another diffusing reactant.
Examples
using MEDYAN
agent_names = AgentNames(
diffusingspeciesnames= [:a,],
filamentnames= [(:filname,[
:plus,
:mid,
:minus,
]),
],
)
s= SysDef(agent_names)
monomerspacing= 2.7
#minus end polymerization
addfilamentend_reaction!(s, :filname, :pm, true,
[:minus]=>[:minus,:mid], monomerspacing,
"diffusing.a -->", 10E3, 1,
)
#plus end depolymerization
addfilamentend_reaction!(s, :filname, :dpp, false,
[:mid,:plus]=>[:plus], 0.0,
"--> diffusing.a", 1.75E-3, 0,
)