Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zining01 authored Mar 10, 2022
1 parent 3b8bf10 commit 3de4fc7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ If you use JaBbA in your work, please cite: [Distinct Classes of Complex Structu
[CPLEX Studio](https://www.ibm.com/products/ilog-cplex-optimization-studio).
The software is proprietary, but can be obtained for free under [IBM's academic
initiative](https://www.ibm.com/products/ilog-cplex-optimization-studio/pricing).

**Note:** as of v1.1, JaBbA now supports the use of [Gurobi](https://www.gurobi.com/products/gurobi-optimizer/) for MIP optimization as an alternative to CPLEX. Please see below for installation instructions.

2. Set `CPLEX_DIR` variable to your CPLEX Studio installation directory

Expand Down Expand Up @@ -62,6 +64,33 @@ $ jba ## to see usage
$ jba ${JABBA_PATH}/junctions.vcf ${JABBA_PATH}/coverage.txt
```

### Running JaBbA with Gurobi

As of ```v1.1``` JaBbA can now be run with [Gurobi](https://www.gurobi.com/products/gurobi-optimizer/), which offers a [free academic license](https://www.gurobi.com/academia/academic-program-and-licenses/). To use Gurobi with JaBbA, please follow the following steps for installation:

1. Install [Gurobi](https://www.gurobi.com/documentation/9.5/quickstart_windows/software_installation_guid.html) and set up a [license](https://www.gurobi.com/academia/academic-program-and-licenses/).
2. Install the [R interface](https://www.gurobi.com/documentation/9.5/quickstart_mac/r_interface.html)
3. Set up your ```GUROBI_HOME``` environment variable:

```export GUROBI_HOME=[your path to gurobi]```

4. Install JaBbA
```{r}
devtools::install_github('mskilab/JaBbA')
```

5. For convenience, add `jba` executable to your `PATH`
```{bash}
$ JABBA_PATH=$(Rscript -e 'cat(paste0(installed.packages()["JaBbA", "LibPath"], "/JaBbA/extdata/"))')
$ export PATH=${PATH}:${JABBA_PATH}
$ jba ## to see usage
```

6. Note that to run JaBbA with Gurobi you will need to use the ```---gurobi``` flag:
```{bash}
$ jba ${JABBA_PATH}/junctions.vcf ${JABBA_PATH}/coverage.txt --gurobi TRUE
```

## Usage
```
_____ ___ _ _____
Expand Down Expand Up @@ -175,6 +204,9 @@ Options:
--ism
Include infinite sites constraints
--gurobi
Use Gurobi for MIP optimization instead of CPLEX
-v, --verbose
verbose output
Expand Down

0 comments on commit 3de4fc7

Please sign in to comment.