Biomodeling: Introduction

How to install Gromacs using conda

mkdir -p ~/miniconda3

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh

bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3

rm -rf ~/miniconda3/miniconda.sh 

~/miniconda3/bin/conda init bash

conda create -n gromacs

conda activate gromacs

conda install -c conda-forge gromacs=2023.1=nompi_cuda_ha81c2ac_2


How to install Gromacs using a conventional way


cmake ../ \

-DGMX_BUILD_OWN_FFTW=ON \ 

-DGMX_DEFAULT_SUFFIX=OFF \ 

-DCMAKE_INSTALL_PREFIX=PATH_TO_GROMACS_INSTALLATION

-DGMX_X11=OFF \

-DGMX_GPU=CUDA \

-DGMX_OPENMP=on \ 

-DGMX_PREFER_STATIC_LIBS=ON \

-DGMXAPI=OFF \

-DGMX_HWLOC=off

make

make install

source YOUR_INSTALLATION_DIRECTORY/bin/GMXRC.bash

Test your Gromacs installation

Setup Gromacs environments:



Confirm Gromacs environments:


Gromacs flow chart taken from the official documentation.