Giter Club home page Giter Club logo

Comments (14)

jchodera avatar jchodera commented on June 3, 2024

We can use mdtraj under the hood, but it should be encapsulated and hidden inside of each class that uses it.

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

Can you give examples of which things you think should be private?

from yank.

jchodera avatar jchodera commented on June 3, 2024

Still working my way through the rest of the code.

I'm making changes as I go, so hold off on changes now. I'm not addressing this issue---just reformatting the docstrings and whitespace as I understand the code.

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

I agree with the point 1 and 3, but I think that the ability to output an mdtraj object is a highly useful public-facing function. For example, it allows us to dump coordinates to an array of file formats.

from yank.

jchodera avatar jchodera commented on June 3, 2024

I'd prefer to stick to OpenMM-only interfaces for this release. We can go mdtraj-crazy in the next one, but we should support mdtraj for everything then. I just don't want inconsistent interfaces.

(For example, right now, ComplexSystemBuilder has a coordinates_as_quantity property, an openmm_positions, and a positions property, which all return different things.)

from yank.

jchodera avatar jchodera commented on June 3, 2024

(By contrast, the other SystemBuilder objects lack coordinates_as_quantity, have have the two other properties.)

from yank.

jchodera avatar jchodera commented on June 3, 2024

This was totally fine for a first pass, of course! But it's making it more difficult to debug.

from yank.

jchodera avatar jchodera commented on June 3, 2024

Do openmm and mdtraj use different Topology formats?

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

They are slightly different, as we have made some enhancements to facilitate various things. There is a function traj.top.to_openmm() that gives you a pure-openmm version.

from yank.

jchodera avatar jchodera commented on June 3, 2024

Also, is the only way to create an MDTraj object to read from disk? We have the positions in memory and an OpenMM Topology object, why would we need to write to disk and then read again?

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024

That should be possible.

from yank.

kyleabeauchamp avatar kyleabeauchamp commented on June 3, 2024
top_mdtraj = md.Topology.from_openmm(top)
traj = md.Trajectory(xyz, top_mdtraj)

from yank.

jchodera avatar jchodera commented on June 3, 2024

Thanks!

from yank.

pgrinaway avatar pgrinaway commented on June 3, 2024

To my knowledge this is done.

from yank.

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.