port_reactions: Port GillespieSSA parameters to GillespieSSA2

View source: R/port_reactions.R

port_reactionsR Documentation

Port GillespieSSA parameters to GillespieSSA2

Description

This is a helper function to tranform GillesieSSA-style paramters to GillespieSSA2.

Usage

port_reactions(x0, a, nu)

Arguments

x0

The x0 parameter of GillespieSSA::ssa().

a

The a parameter of GillespieSSA::ssa().

nu

The nu parameter of GillespieSSA::ssa().

Value

A set of reaction()s to be used by ssa().

Examples

x0  <- c(Y1 = 1000, Y2 = 1000)
a   <- c("c1*Y1","c2*Y1*Y2","c3*Y2")
nu  <- matrix(c(+1,-1,0,0,+1,-1),nrow=2,byrow=TRUE)
port_reactions(x0, a, nu)

rcannood/gillespie documentation built on Jan. 26, 2023, 8:37 p.m.