MEDYAN.make_fila_rand!

Tuple{MEDYAN.Context, Any}

make_fila_rand!(c::Context, mono_states; iterations = 10^9, type = 1)::Tag{FilaTipIdx}

Add a filament to the Context with random center position and direction.

Return the tag of the plus tip of the new filament.

mono_states is a collection of the MonomerState of the monomers in the new filament.

The filament will be inside the mech boundary.

Errors if it fails to add a filament.

The monomer are spaced by the value in the filament type’s mechanical parameters.

Keyword Arguments

  • type=1: filament type id or symbol.
  • iterations = 10^9: number of positions to try before failing with an error.