Code Monkey home page Code Monkey logo

Comments (7)

leeping avatar leeping commented on July 23, 2024

Hello Anthoni,

I think the issue is that you have a particle with an atomic symbol M that is not in the periodic table. Can you look into why this is part of your PDB file?

  • Lee-Ping

from geometric.

Anthoni-Alcaraz avatar Anthoni-Alcaraz commented on July 23, 2024

Thank you for answering so fast.
I have a virtual site (M) in my molecules, because I need it for energy calculation. Is there any way to handle it?

Anthoni

from geometric.

leeping avatar leeping commented on July 23, 2024

Hello Anthoni,

I haven't implemented support for virtual sites yet, but even if there were support for virtual sites, I don't think it should be in the PDB file. I believe virtual sites should be added by Modeller.addExtraParticles().

Thanks,

  • Lee-Ping

from geometric.

Anthoni-Alcaraz avatar Anthoni-Alcaraz commented on July 23, 2024

Hi,

I have virtual sites in my PDB file, because I get a frame from a trajectory computed by OpenMM. I agree with Modeller.addExtraParticles() is the way to add a virtual site in OpenMM. As I mentioned I'm new with geometric and I tested some examples. However, my system didn't work. I have my XML file for OpenMM and I didn't find a way to pass my force field to geometric. Also I didn't find in geometric (OpenMM examples) if there is a way to modify the recipe for OpenMM.

Thank you,

Anthoni

from geometric.

leeping avatar leeping commented on July 23, 2024

Hello Anthoni,

To run an optimization with OpenMM, you need to pass a PDB file using --pdb and either a system XML or force field XML file as the input file (it autodetects which one). I currently haven't implemented virtual sites as it would involve a call to Modeller to add extra particles and keeping only the forces on the "real" atoms. The virtual site positions should not be optimized as they are functions of the "real" atom positions.

I recommend that you try a system without virtual sites first. I may be able to try adding virtual sites but can't guarantee I could do it in the short term. You could try modifying the OpenMM class in engine.py to do it yourself, and I would welcome your contribution to the codebase (if you do this, please add an example).

Thanks,

  • Lee-Ping

from geometric.

Anthoni-Alcaraz avatar Anthoni-Alcaraz commented on July 23, 2024

Hi,

Thank you for that suggestions. I'll try it and I'll see If I could modify to contribute. :)

Best,

Anthoni

from geometric.

leeping avatar leeping commented on July 23, 2024

Closing this issue due to age.

from geometric.

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.