-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
The kboolnet package and associated dependencies can be installed locally/manually or can be accessed via a prebuilt Docker container.
The installation of kboolnet consists of three main tasks: 1. installing rxncon and its dependencies, 2. installing the kboolnet R package, and 3. setting up the kboolnet package.
Manual installation has been tested on the following platforms:
- Windows 10
- Ubuntu 22.04.2, 21.10, 20.04.1
- Fedora 37
- CentOS 7
- MacOS 13.2.1
rxncon is a python package and requires python3. If you don’t have python3 installed on your computer, there are several ways to install it:
- Follow the instructions available at https://www.python.org/
- On Linux:
- Ubuntu:
sudo apt install python3
- CentOS:
sudo yum install python3
- Fedora:
sudo dnf install python3
- Ubuntu:
- On MacOS:
brew install python3
(more info at https://docs.brew.sh/Homebrew-and-Python)
Note for Linux users: on some Linux distributions it may be necessary to also install the python3-dev
/python3-devel
packages with the system package manager (i.e. apt, yum, dnf, etc.) to provide C headers needed for rxncon dependency compilation.
Following installation, make sure the directory where the python3 executable resides is added to the PATH system environment variable. Successful installation and PATH configuration can be verified by opening a new terminal (on Linux or MaxOS) or command prompt (on Windows) and typing python --version
or python3 --version
.
rxncon is a python package and requires pip (the python package manager) for its installation. Pip is usually installed automatically alongside python3; if not, there are several ways to install it:
- Follow the instructions https://pip.pypa.io/en/stable/installation/
- On Linux:
- Ubuntu:
sudo apt install python3-pip
- CentOS:
sudo yum install python3-pip
- Fedora:
sudo dnf install python3-pip
- Ubuntu:
Verify the successful installation by typing python -m pip --version
in a terminal (on Linux or MacOS) or command prompt (on Windows).
Given working installations of python3 and pip, the rxncon python package can be installed in any environment by running python-m pip install rxncon
in the command line. More information about rxncon is available at https://rxncon.org/
Note for Windows users: There is a known issue with installation of PyEDA, a package rxncon depends on, on Windows. See the FAQ for instructions on how to resolve this.
An additional python package required for kboolnet is openpyxl, which can be installed by running the following in the command line: python -m pip install openpyxl
.
Successful installation of both rxncon and openpyxl can be verified by typing python -c "import rxncon; import openpyxl"
at the command line; if both packages are properly installed, no errors will be produced.
- Install R version 4.0 or above (https://cran.r-project.org/)
- Install Rtools (https://cran.r-project.org/bin/windows/Rtools/)
- Install R version 4.0 or above (https://cran.r-project.org/)
- NOTE: Both the
R-base-core
andR-base-dev
packages are required. Naming for these packages is inconsistent across distributions, see below for a limited list:- on Ubuntu (22.04):
sudo apt install r-base-core r-base-dev
- on Fedora 37:
sudo dnf install R
(this installsR-core
,R-core-devel
, and other recommended packages) - on CentOS 7:
sudo yum install
TODO
- on Ubuntu (22.04):
- NOTE: Both the
- Install system libraries:
libssl
,libcurl4
, andlibxml2
- NOTE: THIS IS NOT AN EXHAUSTIVE LIST. Installation of the
devtools
R package in the next step may still fail. If it does, carefully read the output ofinstall.packages("devtools")
, identify which libraries are missing, and install them. - on Ubuntu:
sudo apt install libssl-dev libcurl4-openssl-dev libxml2-dev
- on Fedora:
sudo dnf install openssl-devel libcurl-devel libxml2-devel
- NOTE: THIS IS NOT AN EXHAUSTIVE LIST. Installation of the
- Install R version 4.0 or above (https://cran.r-project.org/)
- Install Xcode from the App Store or by running
xcode-select --install
- Install
devtools
R package by runninginstall.packages('devtools')
in an R shell - Install
BiocManager
R package by running the following in an R shell:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("remotes")
Once all build dependencies are installed, the kboolnet R package can be installed using either BiocManager::install()
or by manually building the package from source. The BiocManager
method is highly recommended for most users; manually building from source is only necessary during package development.
- Install kboolnet by running
BiocManager::install("Kufalab-UCSD/kboolnet")
in an R shell
- Install R dependencies with
BiocManager::install(c("numbers", "BoolNet", "googledrive", "tidyr", "dplyr", "ggplot2", "egg", "openxlsx", "optparse", "igraph", "RCy3", "rappdirs"))
- Clone/otherwise download the repository from https://github.com/Kufalab-UCSD/kboolnet
- Build the package and install it. This can be done via command line, but we recommend using Rstudio.
- Install Rstudio (https://posit.co/products/open-source/rstudio/)
- Start Rstudio
- Create a new project in the kboolnet directory
- In the menu bar, click Build -> Install & Restart
To allow for BioNetGen rule-based reaction modeling, install BioNetGen 2.5.2 by downloading and extracting the appropriate archive from https://github.com/RuleWorld/bionetgen/releases/tag/BioNetGen-2.5.2
- Run
library(kboolnet)
in an interactive R shell - Run
setupKboolnet()
in an R shell and follow the prompts
TODO