Skip to content
koralgooll edited this page Jan 31, 2017 · 39 revisions

Welcome to the ONION wiki!

Environment Set Up

To develop, build and etc. ONION on your own computer you have to install some necessary packages. It is also nice to set up some optional one to help you with process of developing and so on. Optional steps are with asterix *.

Ubuntu (Debian)

Build

To build MulEA with vignettes you need to follow instructions in Build process. Some known issues are describe in Known problems part.

Build process

  • download, update sources by cloning, pulling this repository: https://github.com/wjurkowski/ONION.git
  • Install all dependencies of ONION package from R console:
    source("https://bioconductor.org/biocLite.R")
    biocLite(c("igraph", "plyr", "RCurl", "RJSONIO", "XML", "testthat", "pls", "corrplot", "yacca", "FRCC", "httr", "STRINGdb", "BiocCheck", "CCA", "gridExtra", "mygene", "ChemmineR", "ChemmineOB", "knitr", "rmarkdown"))
  • open the ONION.Rproj project in R Studio
  • build package

install.packages(c("devtools", "roxygen2", "testthat", "knitr", "rmarkdown"))
devtools::install_github("hadley/devtools", force = TRUE)
library(devtools)
devtools::build_vignettes()

then click Build $ Reload in RStudio under Build tab. After that follow with:
devtools::build_vignettes()

Known problems

If you see some similar message to that:

ERROR: dependencies ‘RCurl’, ‘rtracklayer’, ‘biomaRt’ are not available for package ‘GenomicFeatures’
* removing ‘/usr/users/TGAC_ga002/turekc/R/x86_64-pc-linux-gnu-library/3.3/GenomicFeatures’

You need to manually install each dependency for package GenomicFeatures. To do it for example for RCurl put into R console:
biocLite("RCurl")
Then you can see what is the problem with instalation of that library. In our case important part of the message looks like that:

checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/usr/users/TGAC_ga002/turekc/R/x86_64-pc-linux-gnu-library/3.3/RCurl’

After a short research you will find that you do not have required lib on your system. In this case you need to install it by run this command in terminal:
sudo apt-get install libcurl4-gnutls-dev
Then try to install Rcurl again by performing biocLite("RCurl") in R console.

In case of XML or rtracklayer packages, the fastest way is install R package from Advanced Packaging Tool (apt). If you see message like that:
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’
You probably should run this command in terminal:
sudo apt-get install r-cran-xml
As you can see some R packages are available in this way.

Display the vignette

click Build $ Reload in RStudio again and execute the following: vignette("ONION")

Clone this wiki locally