Package: uqsa 0.8.3

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.3.tar.gz
uqsa_0.8.3.zip(r-4.7-x86_64)uqsa_0.8.3.zip(r-4.7-arm64)uqsa_0.8.3.zip(r-4.6-x86_64)uqsa_0.8.3.zip(r-4.6-arm64)uqsa_0.8.3.zip(r-4.5-x86_64)
uqsa_0.8.3.tgz(r-4.6-x86_64)uqsa_0.8.3.tgz(r-4.6-arm64)uqsa_0.8.3.tgz(r-4.5-x86_64)uqsa_0.8.3.tgz(r-4.5-arm64)
uqsa_0.8.3.tar.gz(r-4.7-arm64)uqsa_0.8.3.tar.gz(r-4.7-x86_64)uqsa_0.8.3.tar.gz(r-4.6-arm64)uqsa_0.8.3.tar.gz(r-4.6-x86_64)
uqsa_0.8.3.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://icpm-kth.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:

gsl

7.46 score 3 stars 75 scripts 727 downloads 92 exports 13 dependencies

Last updated from:394065c7a6. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK130
linux-devel-x86_64OK142
source / vignettesOK363
linux-release-arm64OK119
linux-release-x86_64OK143
macos-release-arm64OK156
macos-release-x86_64OK337
macos-oldrel-arm64OK155
macos-oldrel-x86_64OK335
windows-devel-arm64OK352
windows-devel-x86_64OK242
windows-release-arm64OK362
windows-release-x86_64OK189
windows-oldrel-x86_64OK177
wasm-releaseOK136

Exports:%@%%as%%has%%otherwise%abc_mcmcABCSMCas_cmeas_odebase<-c_pathc_path<-clear_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_concisepc_distrCopulaPriorreplace_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-06
Started: 2026-05-15

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

Last update: 2026-09-02
Started: 2026-05-15

Readme and manuals

Help Manual

Help pageTopics
Performs Approximate Bayesian Computation Sampling of Model Parameters via Markov Chain Monte Carloabc_mcmc
Performs Approximate Bayesian Computation as a Particle FilterABCSMC
Interprets the provided biological reaction model as stochasticas_cme
Interprets a model as an ODEas_ode
Retrieves information about the model's C codec_path
Adds information about the model's C codec_path<-
Retrieves j-th column with namescolumn
Creates C code for a chemical reaction neural networkCRNN
Creates a prior probability density functiondCopulaPrior
Creates the density function of a multivariate normal distribution with independent componentsdNormalPrior
Creates a uniform density functiondUniformPrior
Extracts measured data and simulation experiment instructionsexperiments
Makes a Probability Density Estimator from a SamplefitCopula
Finds a column that contains some kind of mathematic expression in a data.frameformulae
Constructs Codegenerate_code
Creates the gradient function of a multivariate normal distribution with independent components, in log-spacegNormalPrior
Performs global sensitivity analysis using the binning methodgsa_binning
Outputs the global sensitivity scores SI and SIT, calculated by the Sobol-Homma-Saltelli methodgsa_saltelli
Simulates a CRNN ode modelgsl_odeiv2_CRNN
Simulates an ode modelgsl_odeiv2_fi
Determines a likely Metropolis setup based on the information in the modelhigh_level_metropolis
Determines a likely SMMALA setup based on the information in the modelhigh_level_smmala
Represents the kinetic laws of the model as a two column matrixkinetic_law_matrix
Interprets a character vector as names of logarithmslinear_scale
Constructs a custom log-likelihood functionlogLikelihoodFunc
Creates objective functions from ingredientsmakeObjective
Creates a Markov Chain Monte Carlo samplermcmc
Initializes the Markov chainmcmc_init
Creates the MPI version of an MCMC samplermcmc_mpi
Finds the method id given a named methodmethod
Performs an MCMC update using the Metropolis rulemetropolis_update
Loads the content from a series of TSV filesmodel_from_tsv
Reverse look-up of method name from keyname_method
Reads Concise Error Notationparse_concise
Plots a sample in parallel coordinatespc_dist
Returns a function that generates random values from the copula modelrCopulaPrior
Interprets caret notation of arithmetic powers for Creplace_powers
Returns a random vector generatorrNormalPrior
Returns a random vector generatorrUniformPrior
Creates prior samples for the Sobol-Homma-Saltelli global sensitivity analysissaltelli_prior
Returns a closure around gsl_odeiv2_CRNN()scrnn
Plot the result of global sensitivity analysissensitivity.graph
Compiles C code to shared libraryshlib
Makes a pairs plot for a sample using density estimation methodsshowPosterior
Simulates a Stochastic Modelsimstoch
Creates a closure that simulates the modelsimulator.c
Reduces the sample to its effective sizesmall
Performs an SMMALA updatesmmala_update
Retrieves information about compiled codeso_path
Adds information about compiled codeso_path<-
Standard Error Matrix from an errors objectstandard_error_matrix
Infers the stoichiometric matrix of a reaction networkstoichiometric_matrix
Returns a list of named stoichiometric vectorsstoichiometry
Finds a good step-size for a given MCMC algorithmtune_step_size
Finds the uncertainty of values in a data.frameuncertainty
Interprets a unit stringunit.from.string
Loads an example model for this packageuqsa_example
Finds the values in a data.framevalues
Writes code to a file and compileswrite_and_compile
Writes C code to a filewrite_c_code