The bionetgen command-line tool exposes the same in-process backend used by the Python API.
Run a BNGL model simulation.
bionetgen run MODEL [OPTIONS]Options:
-m, --method [ode|ssa|nf|pla|psa]simulation method.-t, --t-end FLOATend time.-n, --n-steps INTnumber of output steps.-o, --output PATHwrite tabular output to a file.-v, --verboseshow progress.
Examples:
bionetgen run model.bngl --method ode --t-end 1000 --n-steps 500
bionetgen run model.bngl -m ssa -o results.tsv
bionetgen run model.bngl -m nf -t 50 -vRun a one-dimensional parameter scan.
bionetgen scan MODEL [OPTIONS]Options:
--parameter NAMEparameter to scan.--min FLOATminimum value.--max FLOATmaximum value.--n-points INTnumber of scan points.--log-scaleuse logarithmic spacing.--method [ode|ssa|nf|pla|psa]simulation method.--t-end FLOATend time.--n-steps INTnumber of output steps.--parallel INTworker process count.-o, --output PATHwrite a CSV file.
Examples:
bionetgen scan model.bngl --parameter k_on --min 0.01 --max 100 --n-points 50
bionetgen scan model.bngl --parameter k_on --log-scale --output scan.csvCompute local normalized sensitivities.
bionetgen sensitivity MODEL [OPTIONS]Options:
--parameter NAMErepeatable; if omitted, all parameters are used.--observable NAMErepeatable; if omitted, all observables are used.--method [ode|ssa|nf|pla|psa]simulation method.--t-end FLOATend time.--n-steps INTnumber of output steps.--delta FLOATrelative perturbation size.--parallel INTworker process count.-o, --output PATHwrite a CSV file.
Example:
bionetgen sensitivity model.bngl --parameter k_on --observable ABExport a visualization graph.
bionetgen visualize MODEL [OPTIONS]Options:
--type [contact_map|regulatory_graph|rule_influence_graph|reaction_network_graph|ruleviz_pattern|ruleviz_operation|process_graph|sbml_multi]graph type.-o, --output PATHwrite the serialized graph to disk.
Examples:
bionetgen visualize model.bngl --type contact_map -o contact_map.graphml
bionetgen visualize model.bngl --type sbml_multi -o model_multi.xmlExecute all actions defined in a BNGL model file.
bionetgen execute MODEL [OPTIONS]Option:
-v, --verboseshow progress.
Parse a BNGL file and report model statistics or syntax errors.
bionetgen check MODELExample output:
OK: /path/to/model.bngl
Parameters: 12
Molecule types: 4
Seed species: 6
Reaction rules: 8
Observables: 5
Actions: 2Export a model to another format.
bionetgen export MODEL -f FORMAT -o OUTPUTFormats:
xmlnetbnglsbmlmatlablatex
Examples:
bionetgen export model.bngl -f sbml -o model.xml
bionetgen export model.bngl -f matlab -o model.m
bionetgen export model.bngl -f net -o model.net
bionetgen export model.bngl -f latex -o model.tex| Variable | Description |
|---|---|
BIONETGEN_USE_PERL |
Set to 1 to use the legacy Perl BNG2.pl path |
BNGPATH |
Path to a legacy BNG2.pl installation for compatibility mode |