Giter VIP home page Giter VIP logo

m2p's Introduction

Monomers to Polymers (m2p)

A simple interface for converting monomers to polymers using SMILES representation.

Related Work

  1. Convolutional Networks on Graphs for Learning Molecular Fingerprints
  2. Neural Message Passing for Quantum Chemistry
  3. Relational inductive biases, deep learning, and graph networks
  4. Neural Message Passing with Edge Updates for Predicting Properties of Molecules and Materials

(Main) Requirements

Rdkit install can be performed per the following information.

To install rdkit via conda, use: conda install -c rdkit rdkit

Getting started

The library uses known reaction chemistries to build polymer chains from monomers. The polymer chemistries available include vinyls, acrylates, esters, amides, imides, and carbonates.

The library can generate multiple replicate structures to create polymer chains represented at the atom and bond level. The chains can be any degree of polymerization (DP). RDKit reaction smarts are used to manipulate the molecular structures and perform in silico reactions.

m2p's People

Contributors

jlaw9 avatar kshebek avatar lopez-hector avatar wilsoa6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

m2p's Issues

Get 3D structure of polymer chain from smile

After generating SMILES of a polymer chain by m2p, is there an easy way to embed the 3D structure for the polymer chain from SMILES? I have tried to embed a polymer chain with about two thousand atoms by rdkit, but it takes too long time.
Could you give me some suggestions? Thanks in advance.

Specific use-case: converting monomer SMILES values to polymer SMILES values (find polymerization points)

Hi,

I am working on a research project which entails collecting SMILES data of polymers, however, the databases where I extracted this information from do not provide the SMILES of the polymer rather only the monomer SMILES. There is not much information in the examples folder that depicts this kind of functionality in this package but I was wondering if I can use this package to perform the task of converting monomer SMILES to polymer SMILES.

Obtaining polymer structures for hydroxyacid isomers with given distribution

Hi makers from m2p,

Hopefully you can help me with an error I don't understand. I want to polymerize random co-polyesters with a given distribution. In order to do that, I used smiles from their corresponding hydroxyacid monomers and a given distribution. Thus, I model these polymers by monomer 1=A-B and monomer 2=A-C, where A is the diol and B & C are the diacids. Strangely, this gives an error if the length of the diol A is the same for both monomers. See sample code below:

data = pd.DataFrame({'smiles':[
'OCOC(C1=CC=C(C(O)=O)C=C1)=O.OCCOC(C1=CC=CC(C(O)=O)=C1)=O', #works
'OCCOC(C1=CC=C(C(O)=O)C=C1)=O.OCCOC(C1=CC=CC(C(O)=O)=C1)=O', #ERROR:Ester_ReactionFailed
'OCCCOC(C1=CC=C(C(O)=O)C=C1)=O.OCCOC(C1=CC=CC(C(O)=O)=C1)=O', #works
'OCCCCOC(C1=CC=C(C(O)=O)C=C1)=O.OCCOC(C1=CC=CC(C(O)=O)=C1)=O' #works
],
'distribution':[[1,1],[1,1],[1,1],[1,1]]
})
data['monomers'] = data.smiles.apply(lambda s: pm.get_monomers(s))
data = pm.thermoplastic(data,DP=5,mechanism='ester',replicate_structures=1)

If I don't specify the distribution, it works fine. Do you have any idea where things go wrong?

Thank you for your response.

Kind regards,
Evelien

Polymerization Points using Package

Hi, I was wondering if your package can be used to find the polymerization points on the smiles strings represented by *. I am aware that the package returns the polymer SMILES to the degree of polymerization specified but for my purposes I need to have values with the polymerization points of the SMILES.

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.