Git Product home page Git Product logo

Comments (4)

yucel-yilmaz avatar yucel-yilmaz commented on August 22, 2024 1

!pip install selfies

import selfies as sf
sm = "NC(CC1=CC(NN=C1C=1OC=CC1)=O)CC)"

new_sm = sf.decoder(sf.encoder(sm))

Chem.MolFromSmiles(new_sm)

from auto_martini.

tbereau avatar tbereau commented on August 22, 2024

Dear Mei Woo,

Yes, that unfortunately happens once in a while. I don't have a systematic fix. That often happens on some aromatic nitro groups. I would suggest trying to parametrize a molecule that's similar but doesn't have the problematic group. I'm not sure which one it is here, but you could play around with the chemistry and see what works. Also, it doesn't seem like the SMILES you provide is valid. Did you check that?

Best,
Tristan

from auto_martini.

mewoo15 avatar mewoo15 commented on August 22, 2024

Hi Tristan,

Thanks for your reply.
I have tried another SMILES translator and tired this SMILES ( CCC(N)Cc1cc(=O)[nH]nc1c2ccco2 ) as well but I still got the same error. Do you get the same error as well? Are there any ways those we can work around this problem. I have a set of molecules to parametrize with this starting structure.

Regards,
Mei Woo

from auto_martini.

tbereau avatar tbereau commented on August 22, 2024

I do get the same error.

I would replace the aromatic nitrogens by carbon and try to parametrize that. For instance, the slightly different compound CCC(N)Cc1cc(=O)ncc1c2ccco2 does go through in the Master branch. You'll then need to manually adjust the bead type to correct for the change in water/oil partitioning.

Not extremely systematic unfortunately, but that might do it.

Best,
Tristan

from auto_martini.

Related Issues (20)

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.