Coder Social home page Coder Social logo

peptoneltd / nerfax Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 3.0 22.98 MB

An efficient method for the conversion from internal to Cartesian coordinates that utilizes the platform-agnostic JAX Python library.

License: Apache License 2.0

Jupyter Notebook 97.33% Python 2.66% Dockerfile 0.01%
dynamics jax molecular numerical proteins simulations

nerfax's People

Contributors

cfisicaro avatar oliverdutton avatar

Stargazers

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

Watchers

 avatar

nerfax's Issues

Why do glycines have an extra bond in internal coordinates?

While trying to understand how the internal coordinates are represented on in SCNet format, I noticed nerfax seems to assign additional data beyond the bond and torsion angles and the bond lengths.

I noticed this when I added the following lines of code to your PDB reconstruction example.

seq = list(traj.topology.to_fasta()[0])

glycine_angles = [internal_coords["angles_mask"][0][i,:] 
                  for i in range(len(seq)) if seq[i] == "G"]
glycine_torsions = [internal_coords["angles_mask"][1][i,:] 
                  for i in range(len(seq)) if seq[i] == "G"]
glycine_bonds = [internal_coords["bond_mask"][i,:] 
                  for i in range(len(seq)) if seq[i] == "G"]

Examining these values, I find that each has five non-zero entries, even though point cloud mask has only four, and the data format described in mp_nerf.kb_proteins suggests that glycine should have only four bond angles, four torsions, and four bond lengths.

Notably, I only see this for glycines.
Everything else has a number of non-zero entries matching the mp_nerf description and number of nonzero entries in the cloud mask. Furthermore, the first four bond angles tend to be very near their reference values, but the last one varies greatly. Also, the final bond length is typically very large.

I have not tried out mp_nerf to see if this also happens in their code.

Is this intentional? If so, what are the extra bond lengths, torsions, and angles?

Any example with PDB?

Hi, is there any example how to use nerfax with PDB files? Basically, how to use nerfax to convert 3D coordinates to internal coordinates and use internal coordinates to reconstruct 3D coordinates? Thanks!

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.