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 having 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. To install xBFreE in a conda environment, please, follows these steps:
1-Miniconda Installation (skip this step if conda is already installed in your PC)
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
2-Create conda environment and install libraries
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
virtual environment
(Recommended for HPC installation)- The virtual environment provides a clean and efficient way of installing xBFreE. It also allows having 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. - In HPC, admins recommend using a virtual environment (virtualenv) 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). The required libraries for each dependency will depend on the HPC the user is working on. A good example and how the virtualenv works in an HPC can be found here.
AmberTools compilation
(Recommended when you need to modify sander or compile AmberTools in a specific way)-
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.
Ambertools
Follow the oficial AmberTools installation according to your OS
Note
We asume that AmberTools and their shell environment are correctly configured
INSTALLATION
UPDATE
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.
Docker Package¶
Coming soon!
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