xBFreE Installation¶
Currently, xBFreE can be installed using three ways:
- Manual installation
- Docker Package (coming soon!)
- Singularity Package (coming soon!)
Manual installation¶
You can carry out the installation of xBFreE in three ways:
conda environment
(Recommended for PC installation)- The conda environment provides a clean and efficient way of installing xBFreE. It also allows to have different versions of xBFreE in isolated environments, thus reducing the possibility of incompatibility with other packages. Installation time is also less since it does not require the compilation of AmberTools or GROMACS.
Miniconda Installation
Download and install Miniconda
Copy described intructions
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh # (1)!
chmod +x Miniconda3-latest-Linux-x86_64.sh # (2)!
./Miniconda3-latest-Linux-x86_64.sh # (3)!
- Download Miniconda installer
- Change permissions for the installer
- Execute and install miniconda
virtual environment
(Recommended for HPC installation -- coming soon!)- The virtual environment provides a clean and efficient way of installing xBFreE. It also allows to have different versions of xBFreE in isolated environment, thus reducing the possibility of incompatibility with other packages. Differently to
conda environment
this environment only contain python packages and not pre-compiled libraries.
Require external dependencies
In HPC, the admin recommends using a virtual environment instead of conda to take advantage of optimized compiled programs. In this case, you will require AmberTools, Gromacs, and other dependencies previously compiled (generally as modules)
AmberTools compilation
(Recommended when you need to modify sander o compile AmberTools in a specific way)- In this way, we assume that you have AmberTools compiled on your machine and that you want to do an installation without worrying about enabling or disabling conda environments. It also involves user compilation of GROMACS, which takes considerable installation time. This way also requires installed packages to be compatible and installation errors are more frequent.
Preparing the environment¶
Before installing xBFreE we need to prepare the environment with all dependencies.
Important
Make sure to have conda installed in your computer.
Installing xBFreE using a requierement yml file.
Download env.yml file
Important
The latest release of xBFreE available in PYPI will be installed
Installing dependencies
// Update conda
$ conda update conda
// Create a new environment and activate it
$ conda create -n xbfree-env python=3.9 -y -q
$ conda activate xbfree-env
// Install mpi4py and AmberTools
$ conda install -c conda-forge mpi4py=3.1.3 ambertools=21.12 compilers=1.2.0 -y -q
// Install updated version of ParmEd
$ python -m pip install git+https://github.com/Valdes-Tresanco-MS/ParmEd.git@v3.4
// Install PyQt5 required to use the GUI analyzer tool (xBFreE-Analyzer). Not needed for HPC
$ python -m pip install pyqt5
// (Optional) Install GROMACS
$ conda install -c conda-forge gromacs==2022.4 -y -q
// Install the latest version available in PYPI and xBFreE-Analyzer
$ python -m pip install xbfree[xbfree-analyzer]
Copy described intructions
conda update conda
conda create -n xbfree-env python=3.9 -y -q # (1)
conda activate xbfree-env # (2)
conda install -c conda-forge mpi4py=3.1.3 ambertools=21.12 compilers=1.2.0 -y -q # (3)
python -m pip install git+https://github.com/Valdes-Tresanco-MS/ParmEd.git@v3.4 # (4)
python -m pip install pyqt5 # (5)
# Optional
conda install -c conda-forge gromacs==2022.4 -y -q # (6)
- Create
xbfree-env
environment - Activate
xbfree-env
environment - Install dependencies
- Install ParmEd
- Install PyQt5 if you will use xBFreE-Analyzer
- (Optional) Install GROMACS if GROMACS is not installed in your machine
Follow the oficial AmberTools installation according to your OS
Note
We asume that AmberTools and their shell environment are correctly configured
INSTALLATION
UPDATE
Info
Install xBFreE from PyPI PyPI has the latest version of xBFreE including stable and beta versions.
INSTALLATION
UPDATE
Warning
Install/update xBFreE from the master branch of GitHub repository. This version is only recommended to test a new version or to try temporary solutions to reported bugs.
Installing xBFreE¶
The steps described below includes the installation of the latest xBFreE release. Here, we show you how install/update other versions from PYPI or directly from the GitHub Repository
INSTALLATION
UPDATE
Info
Install/update xBFreE from PyPI. PyPI has the latest version of xBFreE including stable and beta versions.
INSTALLATION
UPDATE
Warning
Install xBFreE from the master branch of GitHub repository. This is only recommended for testing new versions or temporary solutions to reported bugs.
Docker Package¶
Coming soon! sds
Singularity Package¶
Coming soon!
Testing the operation of xBFreE¶
After preparing everything to run xBFreE
, it only remains to check its correct operation. To know how to do it, consult the documentation of xBFreE_test
Created: 2023-06-24