GithubHelp home page GithubHelp logo

jaythedog / yarp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhaoqy1996/yarp

0.0 0.0 0.0 74.55 MB

License: GNU General Public License v3.0

Python 94.96% CSS 0.01% JavaScript 0.01% HTML 0.18% Shell 0.05% Fortran 0.03% Roff 4.76%

yarp's Introduction

Basic YARP usage

This document provides instructions for running a YARP prediction task.

Follow the steps as listed below to perform YARP on your interested systems.

Set up package/software dependencies for YARP

There are four softwares/packages YARP calls to prepare quantum chemistry tasks.

  1. Openbabel - used to convert xyz files to inchikey & smiles strings.
  2. pyGSM - used to perform growing string calculations.
  3. xTB - semi-empirical quantum chemistry for preoptimizing reaction pathways.
  4. ASE - used to align reactant and product.

All of these packages are stored in the 'yarp/external-software' folder.

  • The provided version of YARP is written in python 2.7 to be compatible with pyGSM. The rest of the instructions assume that an anaconda python 2.7 distribution is installed on the user's machine.

  • Since the newest version of ASE (Atomic Simulation Environment) requires python version >3.6, an older compatible ASE version is provided in the 'yarp/external-software' folder. Simply copy this folder to the site-packages folder of your anaconda 2.7 distribution.

  • Add openbabel and xTB to your PATH if they are not already installed in your current environment. Replace the pathways in 'working_folder/setup.sh' by the absolute paths for these packages and run:

         source working_folder/setup.sh
    

    Note: we strongly recommend you install or load openbabel in your cluster. Some unexpected errors might appear when importing openbabel from the external-software folder without installation on the local system.

  • If you encounter the error "ModuleNotFoundError: No module named [missing package]" when running YARP, you are missing some common Python packages that are available through conda. To add these dependencies run:

         conda install [missing package]
    

Using YARP

We have provided three bash scripts to reproduce the results from the paper "More and Faster: Simultaneously Improving Reaction Coverage and Computational Cost in Automated Reaction Prediction Tasks" in 'working_folder/':

  1. read_output.sh - this script will go through all steps in YARP but will read in the Gaussian output files rather run the quantum chemistry calculations from scratch.
  2. partial_test.sh - this script will directly use the jointly-optimized reactant and product pair *.xyz files and go into the 'pygsm'->'TS opt'->'IRC' workflow.
  3. new_task.sh - this script will begin a new YARP tak. It will first perform elementary reaction enumeration and then perform joint-optimization to generate reactant product pairs. After this the script will perform the 'pygsm'->'TS opt'->'IRC' workflow.

For the purpose of the demo, we only recommend running (i). (ii) and (iii) will run quantum chemistry jobs and expect to be run on a cluster. If experimenting with (ii) and (iii), the scripts require the user to modify the YARP/working_folder/config.txt and YARP/working_folder/analysis_config.txt files with your cluster-specific details (e.g., walltime, number of processors, queue, etc.) and gaussian is expected to be available via a module load call. Advanced users are welcome to experiment with (iii) on their own systems and reach out to the authors for guidance on configuring their run.

Expectations for the Demo run

  • Running read_output.sh will perform the YARP steps for calculating and analyzing the first step of decomposition products for KHP from the main text. We have included quantum chemistry output files for all of the products (even failure cases, as reported in the main text) which are utilized by the script instead of directly performing the quantum chemistry calculations. For this reason, read_output.txt can be run on a desktop computer within a few minutes.

  • During execution of the read_output.sh script, a small set of summary details are printed to STDOUT. The user should see that some of the transition state searches and IRC calculations fail, which is expected behavior as reported in the results.

  • Input geometries, GSM localized reaction pathways, and transition states, are stored in the YARP/paper_example for additional investigation.

Contents in paper-example

  • Reactant: xyz files of ketohydroperoxide and molecules in Zimmerman's benchmarking dataset.

  • potential product: outputs of reaction_enumeration.py performed on ketohydroperoxide. reaction channel folder contains corresponding products from reactant (pp0) and other first step intermediates.

  • scratch: pyGSM and Gaussian outputs are stored here. We first provide depth=1 reaction pathways of ketohydroperoxide decomposition for YARP testing. Users are welcome to experiment with other reactions (i.e depth=2 KHP decomposition and depth=1 reactions on Zimmerman's dataset) by reaching out to the authors.

yarp's People

Contributors

zhaoqy1996 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.