Skip to main content

More configuration for metabolic modeling with R

The second day of metabolic modelling work introduced me to more installation stuff required to complete the platform set-up. This all started when I was going through the vignette of the R package sybil and trying to run the example analysis shown in the vignette. I tried to run the flux balance analysis example and it said that I needed glpkAPI. It turns out that I have to first install GNU GLPK. The glpk that was available on ubuntu repository didn't work. So, I installed glpk as follows

wget http://ftp.gnu.org/gnu/glpk/glpk-4.48.tar.gz
wget http://ftp.gnu.org/gnu/glpk/glpk-4.48.tar.gz.sig
sudo gpg --keyserver keys.gnupg.net --recv-keys 5981E818
sudo gpg --keyserver keys.gnupg.net --recv-keys 5981E818
./configure
make
make install


After this, I tried installing glpkAPI using install.packages, but it didn't work (even with --configure-args specified correctly). Downloading the package to the local drive and installing it from the command console worked. Here is the command:

sudo R CMD INSTALL glpkAPI_1.2.6.tar.gz --configure-args="--with-glpk-lib=/usr/local/lib --with-glpk-include=/usr/local/include --enable-gmp=no"

Comments

Popular posts from this blog

Installation of ATI catalyst propreitary driver on LMDE (Linux Mint Debian Edition)

Google turns up many posts explaining how to install the ATI catalyst proprietary drivers on LMDE. Take this post as just an additional information. In my case, the installation did not work until I accidentally installed another package, x11-xserver-utils.  Thus, in my case, the installation of the drivers was as follows: sudo apt-get install x11-xserver-utils sudo apt-get remove --purge fglrx* sudo apt-get update && sudo apt-get install fglrx-driver fglrx-control sudo /usr/bin/aticonfig --initial sudo reboot I think the reason it worked this way was because computer couldn't recognize the correct graphic device version before the installation of x11-xserver-utils.

Chetta idea - 1

Alternative title: proposal for a health care project. Diseases such as hypertension (high blood pressure), diabetes, obesity are becoming so common nowadays. It is hard to find people with no diseases. The lifestyle is certainly to be blamed. But what is the use if we just shut our mouth after finding the right thing to blame? Or how would I be different if I leave it there. So, here is a proposal for an automatic health-care system. Well, I know there maybe some treatments, but the idea here is to prevent the diseases. But, prevention really demands prediction of the disease occurrance much before the disease symptoms show off. But, since I am not a palmist or an astrologist, my proposal is to develop a method to stop the disease as soon as its onset or the symptoms appear. OK... it will become more clear as I go with the concrete examples. I would like to concentrate on hypertension and diabetes, because they appear to be the most common diseases. As most of you know, the best cure...

Setting up R packages for CBM of genome-scale metabolic models on Ubuntu 13.10

Long ago, I posted here the steps involved in setting up R packages for performing constraint based modelling (CBM) of genome scale metabolic models. It was Ubuntu 10.04 LTS back then. Now, I am trying to reproduce the same set-up on Ubuntu 13.10. As a quick summary, we need the following R packages: "sybil", "sybilSBML", and "glpkAPI". The "sybilSBML" R package requires the Bioconductor package "rsbml" which requires "libsbml" library, which in turn depends on "swig". The "glpkAPI" is an R wrapper for glpk library which is the optimization engine. I have been able to install all these packages by executing the following steps. 1. Install swig from ubuntu repositories. sudo apt-get install swig 2. Install python-dev from ubuntu repositories. sudo apt-get install python-dev 3. Install openjdk from ubuntu repositories. sudo apt-get install openjdk-7-jdk 4. Install libxml2 and libxml2-d...