Giter VIP home page Giter VIP logo

entry-cli's Introduction

Entryway analysis

The eNTRy rules are a series of guidelines that can increase small-molecule accumulation in gram-negative bacteria. A molecule is likely to accumulate if it contains few rotatable bonds, low three dimensionality, and an ionizable nitrogen.

The webapp entry-way was created to aid in the application of these guidelines by performing the necessary predictions of physiochemical properties. Although freely available at entry-way.org, these same calculations can be performed locally.

FORKED TO FIX AND IMPLEMENT LOCALLY

Dependencies

Entryway relies on OpenBabel and RDKit for handling chemical structures and conformer generation and NumPy for globularity calculations. These dependencies are most conveniently installed via Conda. The included environment.yml file makes this straightforward:

conda env create -f environment.yml
conda activate entry-cli-env

Alternatively, they can be installed individually:

conda create -n entry-cli python=3.11
pip install rdkit
conda install -c conda-forge openbabel=3.1.1
conda activate entry-cli

Running calculations

Molecules can only be submitted as SMILES strings for now.

This can be achieved through command line arguments:

# Ampicillin
python calc_props.py -s "O=C(O)[C@@H]2N3C(=O)[C@@H](NC(=O)[C@@H](c1ccccc1)N)[C@H]3SC2(C)C"

# Deoxynybomycin
python calc_props.py -s "CC(C1=CC(C(C)=CC(N2C)=O)=C2C3=C1N4CO3)=CC4=O"

Alternatively, a batch file can be provided that contains several molecules with SMILES and names. Results are reported as a csv file. The name of the output file is optional. If no output file is specified, then the base name of the batch file is used:

# The following will provide the same result
python calc_props.py -b tests/b-lactams.smi -o tests/b-lactam.csv
python calc_props.py -b tests/b-lactams.smi

Citing

Please cite the paper on the eNTRy rules:

Richter, M. F.; Drown, B. S.; Riley, A. P.; Garcia, A.; Shirai, T.; Svec, R. L.; Hergenrother, P. J. Nature 2017, 545, 299-304.

entry-cli's People

Contributors

bdrown avatar apajanssen avatar swansonk14 avatar andy-wilkinson 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.