Installation ================================================= To install the pharmaforge package, currently you must use git to clone the repository and install the package. Miniforge Instructions ---------------------- To install the `pharmaforge` package from Gitlab, we use miniforge (a minimal version of conda) to create a new environment and install the package using the pre-built conda pacakge described in `env.yaml`. For this, to install miniforge you need to follow the instructions in the `miniforge` github page, but minimally this involves downloading the installer script and running it. Miniforge is located here: `Miniforge `_. A simple install for miniforge is as follows: .. code-block:: bash wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh bash Miniforge3-Linux-x86_64.sh Once miniforge is installed, you can create a new environment and install the pharmaforge package using the following commands: Git Instructions ---------------- To install the pharmaforge package from GitHub, you need to clone the repository and install the package using the pre-built conda package described in `env.yaml`. .. code-block:: bash source ~/.bashrc # to update environment if you just installed miniforge. git clone git@gitlab.com:RutgersLBSR/mldatabase.git cd mldatabase mamba env create -f env.yaml conda activate pharmaforge pip install . This will install the pharmaforge package in the current environment, making it available for use in python scripts. MongoDB Installation -------------------- To use the pharmaforge package, you need to have MongoDB installed and running on localhost:27017 (at the moment). Linux Instructions ^^^^^^^^^^^^^^^^^^ To install MongoDB on a Fedora Linux , you do the following. .. code-block:: bash sudo dnf -y update #Adding MongoDB repo cat <`_. .. warning:: Psi4 currently has dependencies that are not compatible with the deepmd-gnn package. Thus, a choice must be made between using Psi4 or deepmd-gnn in the same environment. By default, the `pharmaforge` package will install Psi4, but if you want to use deepmd-gnn, you can follow the instructions above for creating a new mamba environment and use env_gnn.yaml instead of env.yaml. This will install the deepmd-gnn package and its dependencies, but not Psi4. XTB Interface ^^^^^^^^^^^^^ XTB is a quantum chemistry package that can be used to perform quantum mechanical calculations on molecular systems. The pharmaforge package includes an interface to XTB, which allows users to perform quantum mechanical calculations on molecular systems using the pharmaforge package. To install XTB, you can use the following command: .. code-block:: bash mamba install xtb-python -c conda-forge This will install XTB and its dependencies in the current environment. For platform-specific installation instructions, please refer to the XTB documentation, located here: `XTB `_. DFTB+ Interface ^^^^^^^^^^^^^^^ DFTB+ is a quantum chemistry package that can be used to perform quantum mechanical calculations on molecular systems. The pharmaforge package includes an interface to DFTB+, which allows users to perform quantum mechanical calculations on molecular systems using the pharmaforge package. To install the DFTB+ python interface, you can use the following command: .. code-block:: bash mamba install dftbplus-python=24.1 -c conda-forge This will install DFTB+ and its dependencies in the current environment. For platform-specific installation instructions, please refer to the DFTB+ documentation, located here: `DFTB+ `_. Gaussian Interface ^^^^^^^^^^^^^^^^^^ Gaussian is a quantum chemistry package that can be used to perform quantum mechanical calculations on molecular systems. The pharmaforge package includes an interface to Gaussian, which allows users to perform quantum mechanical calculations on molecular systems using the pharmaforge package. Gaussian is a commercial software package, and you will need to have a valid license to use it. The installation instructions for Gaussian can be found in the Gaussian documentation, located here: `Gaussian `_. To use Gaussian with the pharmaforge package, g16 must be installed and available in your PATH. DeepMD-GNN Interface ^^^^^^^^^^^^^^^^^^^^ DeepMD-GNN is a machine learning package that can be used to perform molecular dynamics simulations using neural networks. The pharmaforge package includes an interface to DeepMD-GNN, which allows users to perform calculations using neural networks on molecular systems using the pharmaforge package. To install DeepMD-GNN, you can use the followiing command: .. code-block:: bash mamba env create -f env_gnn.yaml mamba activate pharmaforge-gnn .. warning:: DeepMD-GNN currently has dependencies that are not compatible with the Psi4 package. Thus, a choice must be made between using Psi4 or deepmd-gnn in the same environment. By default, the `pharmaforge` package will install Psi4, but if you want to use deepmd-gnn, you can follow the instructions above for creating a new mamba environment and use env_gnn.yaml as described above instead of env.yaml. This will install the deepmd-gnn package and its dependencies, but not Psi4.