Code Monkey home page Code Monkey logo

phakinpro's Introduction

PhaKinPro

PHArmacoKINetic PROperty calculator: Used to predict varies pharmacokinetic properties using QSAR models. If you use please cite our paper. There is a webserver that runs these models, but for large numbers of compounds, running locally using this code is much more effective

Installation guide

Prerequisites

Create environment

git clone https://github.com/jonswain/PhaKinPro.git
cd PhaKinPro
conda env create -f environment.yml
conda activate PhaKinPro

Example usage

The packages necessary to run the project are now installed inside the conda environment.

After downloading, PhaKinPro/phakinpro.py can be called from the command line with python phakinpro --help

--infile is required and is the fileloc for a csv of SMILES to predict properties for. Requires that csv has header and is comma seperated --smiles_col is the name of the column containing the SMILES strings of interest. Defaults to "SMILES" --id_col is the name of the column containing the compound identifiers. Defaults to "identifer" --outfile is the fileloc of where the output csv file should go. Defaults to current-working-directory/phakin_output.csv --ad flag to turn on applicability domain calculation for the models

python PhaKinPro/phakinpro.py --infile input.csv --smiles_col smiles --id_col indentifiers --outfile out.csv

Webserver interface

This repository also contains the code to run a local webserver (or host your own). You can start the server by running qunicorn wsqi:app (or using the devolpment flask server by setting the FLASK_APP variable: $env:FLASK_APP = "main" on windows or export FLASK_ENV=main on unix). From that access 127.0.0.1:5000 to view the local server

Thanks to JSME for a free and easy to use molecule editor for webpages Bienfait, B., Ertl, P. JSME: a free molecule editor in JavaScript. J Cheminform 5, 24 (2013).

phakinpro's People

Contributors

jimmyjbling avatar jonswain 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.