Skip to content

Plans to support symbolic coefficients in function netstoichmat()? #767

@sallyseal

Description

@sallyseal

Are there plans to support symbolic coefficients in stoichiometry matrix construction? For example, I have a birth-death process where $M$ is produced in bursts that are geometrically distributed:

@register_symbolic Distributions.Geometric(b)
m = rand(Distributions.Geometric(1 / (1 + b)))

rs = @reaction_network rs begin
    K, 0 --> $m * M
    δ, M --> 0
end

Currently I'm unable to call netstoichmat(rs) without the error "ERROR: Stoichiometry matrices are not supported with symbolic stoichiometry" which means I'm having to hard code m. I'm using Catalyst v13.5.1. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions