-
Notifications
You must be signed in to change notification settings - Fork 61
Installation
Eduard Kerkhoven edited this page May 17, 2022
·
37 revisions
- A functional MATLAB installation (version 2016b or later).
- Recommended: Gurobi as alternative solver.
- Optional: COBRA Toolbox for more simulation functions.
- Development: if new HMMs are to be trained from a KEGG FTP-dump on a Windows PC, it is required to have Windows Subsystem for Linux installed.
Use one of the two following ways to obtain RAVEN Toolbox:
- This approach is recommended, but requires
gitto be installed. - In Terminal/Command Prompt, navigate to the desired installation directory and run the following Git command:
git clone --depth=1 https://github.com/SysBioChalmers/RAVEN.git- Follow the Install RAVEN in MATLAB instructions below.
- Download the latest release of the RAVEN Toolbox.
- Extract the ZIP file to your favourite directory.
- Follow the Install RAVEN in MATLAB instructions below.
- Close MATLAB.
- First delete the complete
RAVENfolder from your computer.- Optional: run
pathtoolto remove all mentions of the RAVEN folder and subfolders from the MATLAB path, and clickSave. This prevents warning messages regarding non-existing paths when opening MATLAB anew.- Download the latest release of the RAVEN Toolbox.
- Extract the ZIP file to your favourite directory.
- Follow the Install RAVEN in MATLAB instructions below.
- Once cloned or extracted, open MATLAB and run the following command, where
[location]is the directory where you installed RAVEN:
cd('[location]/RAVEN/installation'))
checkInstallation-
checkInstallationinstalls and tests general functioning of RAVEN. It recognises which solvers are installed and sets the default solver (if possiblegurobi, otherwiseglpk). - The default RAVEN solver can be changed any time with:
setRavenSolver('solverName'), where'solverName'can be either'gurobi','glpk'or'cobra'. -
checkInstallationalso tests various programs that are distributed with RAVEN (BLAST+, DIAMOND, HMMER). Correct functioning of these programs generally are required for making models from homology (BLAST+, DIAMOND) or making models from KEGG (HMMER). If the tests of these programs fail, they need to be re-compiled from their corresponding source codes. See the documentation for the corresponding software for more details. - If you plan to train HMMs based on a KEGG FTP-dump (which is rarely done, as we already distribute these for you), you should run
checkInstallation(true)to also test the CD-HIT and MAFFT binaries. If you run MATLAB on Windows, you should have Windows Subsystem for Linux installed.
- The open-source GLPK solver is already distributed with RAVEN. This works well for solving LPs (e.g. "standard" flux balance analysis), but is not well-suited to solve MILP (e.g. with
fillGapsortINIT). - Alternatively, especially for solving MILPs, you can install Gurobi Optimizer (version 7.5 or higher), for which an academic license is available here.
- If the user has the COBRA Toolbox installed, one can use the default COBRA solver (set be
changeCobraSolver).
- Download and install Gurobi to your favourite location.
- Make sure you obtained a license following instructions for Windows, Mac or Unix.
- To install Gurobi in MATLAB, follow the instructions for Windows, Mac or Unix.
- Make sure that MATLAB remembers the Gurobi installation for next time, by running
savepath.
- To gain access to functions from the COBRA Toolbox, follow installation instructions provided here.
- To use COBRA-specific functions on a model, you are advised to first change the model into COBRA-format, using
modelCobra=ravenCobraWrapper(model). - To use COBRA-specified solvers (e.g. open-source GLPK solver), configure COBRA and RAVEN with the following commands:
changeCobraSolver('glpk')
setRavenSolver('cobra')- Introduction
- Installation
- External Databases
- Getting Started
- Model Reconstruction from KEGG
- Option 1: Based on KEGG Organism Code
- Option 2: Based on Homology Search Against KEGG Orthology Specific HMMs
- Option 2-a: Use Pre-Trained HMMs
- Option 2-b: de novo Generate HMMs
- Development Policy
- Known Issues
- Developer Protocols