GithubHelp home page GithubHelp logo

rrdkit's Introduction

rrdkit

A pragmatic interface to RDKit (C++ API) from R.

rrdkit package provides a pragmatic interface to some of the RDKit functions in R. It is intended to work smoothly with R. rrdkit aims to be a tool to perform basic operations from RDKit. If you are looking for a more richer tool check RDKit web site.

Prerequisites

  • R >= 3.2.0

  • R Packages: Rcpp, testthat, XML.

  • A RDKit installation. Preferably use latest RDKit version. Follow the instuctions in http://www.rdkit.org/docs/Install.html). Check "Building the RDKit" section.

  • Note that Python wrappers can be disabled (optional) and INCHI support must be enabled:

cmake -D RDK_BUILD_PYTHON_WRAPPERS= -D RDK_BUILD_INCHI_SUPPORT=ON ..
                                          
  • RDBASE (the root directory of the RDKit distribution e.g. ~/RDKit ) configured.

  • LD_LIBRARY_PATH must include $RDBASE/build/lib.

Installation

  • with devtools
library(devtools)
install_github("pauca/rrdkit/rrdkit")

Examples of usage

library(rrdkit)  
mols1 <- read.sdf(system.file("extdata/aspirine.sdf", package="rrdkit"))  
mols2 <- read.sdf(system.file("extdata/clozapine.sdf", package="rrdkit"))  
mols <- c(mols1,mols2)
mol2mw(mols)
showMols(mols)

inchi <- mol2Inchi(mols)  
Inchi2InchiKey(inchi)

Functions

Read and Write

read.sdf( file )  
write.sdf( file , mols )  

#Read a smi file as data frame:
read.smi(file)


smiles2mol( smile )  
smarts2mol( smart )  

mol2smiles( mol )  

Changing Properties

molsGetProps( mols )  
molsSetProp ( mols  ,key , values )  

Molecule viewers

Next functions open a browser with a 2D representation of the molecules.

showMols(mols)  
showMolsGrid(mols)  
mol2svg(mols)  
compute2D(mols)

Descriptors

mol2maccs(mol)  
mol2morgan(mol)  
mol2mw(mol)  
mol2TPSA(mol)  
mol2LogP(mol)  
mol2murcko(mol)  
computeGasteigerCharges(mol)  

Others

SubstructMatch(  mol , query )  

rrdkit's People

Contributors

pauca avatar

Watchers

James Cloos avatar Abhik Seal 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.