How To Install cain-solvers on Ubuntu 18.04
Introduction
In this tutorial we learn how to install cain-solvers
on Ubuntu 18.04.
What is cain-solvers
cain-solvers is:
Cain performs stochastic and deterministic simulations of chemical reactions. It can spawn multiple simulation processes to utilize multi-core computers. It stores models, methods, and simulation output (populations and reaction counts) in an XML format. In addition, SBML models can be imported and exported. The models and methods can be read from input files or edited within the program.
The GUI (Graphical User Interface) is written in Python and uses the wxPython toolkit. Most of the solvers are implemented as command line executables, written in C++, which are driven by Cain. This makes it easy to launch batch jobs. It also simplifies the process of adding new solvers. Cain offers a variety of solvers:
- Gillespie’s direct method.
- Gillespie’s first reaction method.
- Gibson and Bruck’s next reaction method.
- Tau-leaping.
- Hybrid direct/tau-leaping.
- ODE integration.
This package provides the solver libraries
There are three methods to install cain-solvers
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install cain-solvers Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install cain-solvers
using apt-get
by running the following command:
sudo apt-get -y install cain-solvers
Install cain-solvers Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install cain-solvers
using apt
by running the following command:
sudo apt -y install cain-solvers
Install cain-solvers Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install cain-solvers
using aptitude
by running the following command:
sudo aptitude -y install cain-solvers
How To Uninstall cain-solvers on Ubuntu 18.04
To uninstall only the cain-solvers
package we can use the following command:
sudo apt-get remove cain-solvers
Uninstall cain-solvers And Its Dependencies
To uninstall cain-solvers
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove cain-solvers
Remove cain-solvers Configurations and Data
To remove cain-solvers
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge cain-solvers
Remove cain-solvers configuration, data, and all of its dependencies
We can use the following command to remove cain-solvers
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge cain-solvers
References
Summary
In this tutorial we learn how to install cain-solvers
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.