newSpecies creates a new species.

newSpecies(
  name,
  compartment = NULL,
  type = c("reactions", "fixed", "assignment", "ode"),
  initial_concentration = NULL,
  initial_number = NULL,
  initial_expression = NULL,
  expression = NULL,
  model = getCurrentModel()
)

Arguments

name

string

compartment

compartment key

type

string

initial_concentration

number

initial_number

number

initial_expression

Initial expression to set, as string, finite numeric, or logical.

expression

Expression to set, as string, finite numeric, or logical.

model

a model object

Value

species key

Details

Arguments priority from lowest to highest is initial_concentration, initial_number, initial_expression.

The online article on model building provides some further context.

See also