How To Install cain-examples on Ubuntu 18.04
Introduction
In this tutorial we learn how to install cain-examples
on Ubuntu 18.04.
What is cain-examples
cain-examples 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 cain examples
There are three methods to install cain-examples
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-examples 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-examples
using apt-get
by running the following command:
sudo apt-get -y install cain-examples
Install cain-examples Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install cain-examples
using apt
by running the following command:
sudo apt -y install cain-examples
Install cain-examples 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-examples
using aptitude
by running the following command:
sudo aptitude -y install cain-examples
How To Uninstall cain-examples on Ubuntu 18.04
To uninstall only the cain-examples
package we can use the following command:
sudo apt-get remove cain-examples
Uninstall cain-examples And Its Dependencies
To uninstall cain-examples
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove cain-examples
Remove cain-examples Configurations and Data
To remove cain-examples
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge cain-examples
Remove cain-examples configuration, data, and all of its dependencies
We can use the following command to remove cain-examples
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge cain-examples
References
Summary
In this tutorial we learn how to install cain-examples
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.