GithubHelp home page GithubHelp logo

spiwokv / nonpher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lich-uct/nonpher

0.0 2.0 0.0 41 KB

Nonpher: software for design of hard-to-synthesize structures

License: GNU General Public License v3.0

Batchfile 0.58% Shell 0.72% Python 98.69%

nonpher's Introduction

Nonpher

This Python package contains functions for generating hard-to-synthesize (HS) structures as well as several functions for calculating molecular complexity. Nonpher utilizes morphing algorithm as is implemented by Molpher-lib, which is based on the cheminformatic toolkit RDKit.

A starting structure is randomly, step-by-step transformed to more complex one (usually but not necessarily as it is a random process). HS structures can be useful when someone wants to classify them, because they are not easily accessible from any database.

Instalation

Prerequisities

Supported platforms:

  • Linux 64-bit (as molpher-lib is compiled only for it, but otherwise the package is platform independent)

Dependencies

  • RDKit
  • Molpher-lib >=0.0.0b2 (now it works with RDKit 2018.3.1 and libboost 1.65.1)

Installation with Anaconda

Nonpher is distributed as a conda package. At the moment, this is the preferred way to install and use the library. All you need to do is get the full Anaconda distribution or its lightweight variant, Miniconda. It is essentially a Python distribution, package manager and virtual environment in one and makes setting up a development environment for any project very easy. After installing Anaconda/Miniconda (and environment preparing) you can run the following in the Linux terminal:

conda install -c rdkit -c lich nonpher

Installation with setup.py

Anyway you have installed RDKit and Molpher-lib, you can download/clone Nonpher and install it from its directory with:

python setup.py install

Quick start

To generate HS structures, Nonpher requires starting structures, which should be relatively easy-to-synthesize (ES) and should somehow be standardized, at least removed ions and charges. To quick start, you can use Nonpher with prepared simple script which only needs an input (stdin or file) with structures in csv format. First column is for structure IDs, the second for structures themselves encoded in SMILES, all other columns are skipped. If you use input file, you can also specify output file which will be in the same format: ID, SOURCE_STRUCTURE and generated HS structure. To run the script just write:

python -m nonpher.nonpher [-h] [-H] [INPUT_FILE [OUTPUT_FILE]]

where parameter -H is for skipping the first line (header)

nonpher's People

Contributors

vorsilam avatar

Watchers

James Cloos avatar Vojtech Spiwok 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.