Skip to content
Valentin Gologuzov edited this page Oct 29, 2013 · 5 revisions

intstall packages:

source("http://bioconductor.org/biocLite.R")
biocLite()
biocLite('e1071')
biocLite('globaltest')
q()
R CMD INSTALL miXGENE -l /home/kost/res/mixgene_workdir/data/R

use from R:

.libPaths(c("/home/kost/res/mixgene_workdir/data/R",.libPaths()))
library("miXGENE")

use from Python

import rpy2.rinterface
import rpy2.robjects as R
from rpy2.robjects.packages import importr
R_LIB_CUSTOM_PATH = "/home/kost/res/mixgene_workdir/data/R"
importr("miXGENE", lib_loc=R_LIB_CUSTOM_PATH)
R.r['options'](warn=-1)
Clone this wiki locally