Package: uqsa 0.8.1

Andrei Kramer

uqsa: Uncertainty Quantification and Global Sensitivity Analysis

In the field of systems biology, chemical reaction networks are modeled in various ways, two of those are: (i) stochastic simulations (e.g. Gillespie algorithm) and (ii) ordinary differential equations. In this package we use a simple tabular model description of reaction systems and automatically generate C code for either solver type. We use the ordinary differential equation solvers from the GNU Scientific Library and provide an interface that deals with lists of simulation experiments. Each simulation experiment contains both the data, and instructions for the model to replicate the data. We use approximate Bayesian computation methods (combined with Markov chain Monte Carlo and sequential Monte Carlo, particle filters) as well as classic methods such as Random Walk Metropolis (Gaussian transition kernel) and Simplified Manifold Metropolis adjusted Langevin algorithm for a Bayesian investigation of the model´s parameter space. Experiments can be evaluated in a sequence; intermediate probability densities are modeled using the 'VineCopula' package. The package is also intended to be useful in an HPC environment, with some functions that use 'pbdMPI' capabilities.

Authors:Alexandra Jauhiainen [aut], Olivia Eriksson [aut, ctb, cph], Federica Milinanni [aut], Andrei Kramer [cre]

uqsa_0.8.1.tar.gz
uqsa_0.8.1.zip(r-4.7-x86_64)uqsa_0.8.1.zip(r-4.7-arm64)uqsa_0.8.1.zip(r-4.6-x86_64)uqsa_0.8.1.zip(r-4.6-arm64)uqsa_0.8.1.zip(r-4.5-x86_64)
uqsa_0.8.1.tgz(r-4.6-x86_64)uqsa_0.8.1.tgz(r-4.6-arm64)uqsa_0.8.1.tgz(r-4.5-x86_64)uqsa_0.8.1.tgz(r-4.5-arm64)
uqsa_0.8.1.tar.gz(r-4.7-arm64)uqsa_0.8.1.tar.gz(r-4.7-x86_64)uqsa_0.8.1.tar.gz(r-4.6-arm64)uqsa_0.8.1.tar.gz(r-4.6-x86_64)
uqsa_0.8.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
uqsa/json (API)

# Install 'uqsa' in R:
install.packages('uqsa', repos = c('https://cranhaven.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/icpm-kth/uqsa/issues

Pkgdown/docs site:https://icpm-kth.github.io

Uses libs:
  • gsl– GNU Scientific Library (GSL)

On CRAN:

Conda:

archivedpackagesr-universegsl

4.57 score 5 stars 75 scripts 716 downloads 93 exports 13 dependencies

Last updated from:ffd06cd21d (on package/uqsa). Checks:15 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK136
linux-devel-x86_64OK158
source / vignettesOK370
linux-release-arm64OK128
linux-release-x86_64OK138
macos-release-arm64OK175
macos-release-x86_64OK288
macos-oldrel-arm64OK156
macos-oldrel-x86_64OK306
windows-devel-arm64OK341
windows-devel-x86_64OK180
windows-release-arm64OK332
windows-release-x86_64OK200
windows-oldrel-x86_64OK176
wasm-releaseOK104

Exports:%@%%as%%has%%otherwise%abc_mcmcABCSMCas_cmeas_odebase<-c_pathc_path<-change_temperatureclear_yacas_environmentcolumnconservation_law_analysisCRNNdCopulaPriordefaultDistancedeterminePrefixdNormalPriordUniformPriorexact_normal_kldexperimentsfifitCopulaformulaegatherReplicasgatherSamplegenerate_codegllfgNormalPriorgsa_binninggsa_saltelligsl_odeiv2_CRNNgsl_odeiv2_fihigh_level_metropolishigh_level_smmalahighCorkinetic_law_matrixKLDlinear_scalellloadSample_mpilog10ParMaplog10ParMapJaclog2ParMaplog2ParMapJaclogLikelihoodFunclogParMaplogParMapJacmakeObjectivemcmcmcmc_initmcmc_mpimethodmetropolis_updatemodel_from_tsvmodify<-name_methodonlyCoefficientsonlyNamesparse_concisepcDistrCopulaPriorreplace_powersrNormalPriorrUniformPriorsaltelli_priorscrnnsensitivity.graphshlibshowPosteriorsimfisimstochsimulator.csmallsmmala_updateso_pathso_path<-standard_error_matrixstoichiometric_matrixstoichiometrytune_step_sizeuncertaintyunit_as_characterunit.from.stringunit.idunits_from_tableuqsa_examplevalueswrite_and_compilewrite_c_codeyJacobian

Dependencies:ADGofTestclicolorspacedigesterrorslatticemagrittrMASSmvtnormpracmaRcppRyacasVineCopula

Simulate Models
Load the AKAP79 Model | Load Experiments (data) | Simulate

Last update: 2026-10-19
Started: 2026-10-19

Tabular Model File
Components of Models | Data | One-to-One Correspondence | Very Indirect Data

Last update: 2026-10-19
Started: 2026-10-19

Readme and manuals

Help Manual

Help pageTopics
Subset experiments with preserved class[.experiments
Subset simulations with preserved class[.simulation
%as% is a binary operator on strings with units in them%as%
checks whether a variable has the named attributes%has%
This function can be used to specify default values%otherwise%
Performs and Approximate Bayesian Computation Sampling of Model Parametersabc_mcmc
Performs and Approximate Bayesian Computation as a Particle FilterABCSMC
Interprets the provided model as a stochastic modelas_cme
Interpret a model as an ODEas_ode
Convert to linear spacebase<-
Retrieve information about the model's C codec_path
Add information about the model's C codec_path<-
Should 2 Markov chains exchange their temperatureschange_temperature
Clear Yacas variablesclear_yacas_environment
Get j-th column with namescolumn
Reduce the size of the systemconservation_law_analysis
CRNN creates C code for a chemical reaction neural networkCRNN
Creates a prior probability density functiondCopulaPrior
default distance function for one experimentdefaultDistance
Determine a prefix from a character vector str of similar contentsdeterminePrefix
dNormalPrior creates the density function of a multivariate normal distribution with independent componentsdNormalPrior
dUniformPrior creates a uniform density functiondUniformPrior
Multivariate Normal Distribution KLDexact_normal_kld
Extract Measured Data and Simulation Experiment Instructionsexperiments
Default gradient-Log-likelihood Functionfi
Makes a Probability Density Estimate (from a sample)fitCopula
Find a column that contains some kind of mathematic expression in a data.frameformulae
Collect statistical ReplicasgatherReplicas
gatherSample collects all sample points, from all files, with the given temperaturegatherSample
Construct Codegenerate_code
Default gradient-log-likelihood Functiongllf
gNormalPrior creates the gradient function of a multivariate normal distribution with independent components, in log-spacegNormalPrior
Fetch an Attribute%@% grapes-at-grapes
Global Sensitivity Analysisgsa_binning
Outputs the global sensitivity scores SI and SIT, calculated by the Sobol-Homma-Saltelli methodgsa_saltelli
simulates a CRNN ode model with extra workgsl_odeiv2_CRNN
simulates an ode model with extra workgsl_odeiv2_fi
High Level Metropolis functionhigh_level_metropolis
High Level SMMALA functionhigh_level_smmala
highCor returns ordered index-pairs of high to low correlationhighCor
Split Kinetic Lawkinetic_law_matrix
Kullback Leibler DivergenceKLD
Interprets a character vector as names of logarithmslinear_scale
Default Log-likelihood Functionll
This function merges mpi-samples into oneloadSample_mpi
LOG10 parameter mapping used by the MCMC modulelog10ParMap
LOG10 parameter mapping, jacobianlog10ParMapJac
LOG2 parameter mapping used by the MCMC modulelog2ParMap
LOG2 parameter mapping, jacobianlog2ParMapJac
Default log-likelihood functionlogLikelihoodFunc
NATURAL LOG parameter mapping used by the MCMC modulelogParMap
NATURAL LOG parameter mapping, jacobianlogParMapJac
creates Objective functions from ingredientsmakeObjective
Markov Chain Monte Carlomcmc
Initialize the Markov chainmcmc_init
The MPI version of the mcmc functionmcmc_mpi
Find Integermethod
Metropolis Update is an MCMC update functionmetropolis_update
model_from_tsv loads the content from a series of tsv filesmodel_from_tsv
Modifies a valuemodify<-
Reverse look-up of method name from keyname_method
Returns a list of reaction coefficientsonlyCoefficients
Returns only the names in a reaction formulaonlyNames
Read Concise Error Notationparse_concise
plots a sample in parallel coordinatespcDist
plot function for experimentsplot.experiments
Print a Summary about the CME modelprint.cme
prints the simulation experimentsprint.experiments
print information about the mcmc variableprint.mcmcVariable
Print a summary about the odeprint.ode
prints the simulation resultsprint.simulation
Prints an interpretation string of a unitprint.unit_of_measurement
rCopulaPrior returns a function that generates random values from the copula modelrCopulaPrior
replace_powers does string manipulationreplace_powers
rNormalPrior returns a random vector generatorrNormalPrior
rUniformPrior returns a random vector generatorrUniformPrior
Sample for the Sobol-Homma-Saltelli Global Sensitivity Analysissaltelli_prior
scrnn returns a closure around gsl_odeiv2_CRNN()scrnn
plot the sensitivity matrixsensitivity.graph
Compile C code to shared libraryshlib
showPosterior makes a pairs plot for a sampleshowPosterior
This creates a closure that simulates the model, similar to simulator.csimfi
Simple unit from stringsimple.unit
Simulate stochastic modelsimstoch
This creates a closure that simulates the modelsimulator.c
This function reduces the sample to its effective sizesmall
SMMALA Update is an MCMC update functionsmmala_update
Retrieve information about compiled codeso_path
Add information about compiled codeso_path<-
Standard Error Matrix from an errors objectstandard_error_matrix
The stoichiometric matrix of a reaction networkstoichiometric_matrix
This function returns a list of named stoichiometric vectorsstoichiometry
Find a good Step-Size for a given MCMC Algorithmtune_step_size
Find the uncertainty of values in a data.frame that is derived from a tsv file or similaruncertainty
converts a unit data.frame into a printable stringunit_as_character
Unit Interpreterunit.from.string
Converts a unit to a string that works as an identifierunit.id
Get units from a data.frame columnunits_from_table
Load an example model for this packageuqsa_example
Find values in a data.frame that is derived from a tsv file or similarvalues
Writes code to file and compileswrite_and_compile
Write the C code to a filewrite_c_code
Jacobian of string-mathyJacobian