Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve RMSD function to take molecular symmetry into consideration? #13

Open
ravila4 opened this issue Nov 18, 2016 · 1 comment
Open

Comments

@ravila4
Copy link

ravila4 commented Nov 18, 2016

Just wondering what the algorithm is behind the RMSD calculation.

@rasbt
Copy link
Member

rasbt commented Nov 19, 2016

It should be the "usual" RMSD equation, i.e.
screen shot 2016-11-18 at 9 27 21 pm

(https://en.wikipedia.org/wiki/Root-mean-square_deviation_of_atomic_positions)

Here's a link to the actual code:
https://github.com/rasbt/biopandas/blob/master/biopandas/pdb/pandas_pdb.py#L152

and the relevant lines are

        total = ((df1['x_coord'] - df2['x_coord'])**2 +
                 (df1['y_coord'] - df2['y_coord'])**2 +
                 (df1['z_coord'] - df2['z_coord'])**2)
        rmsd = round((total.sum() / df1.shape[0])**0.5, 4)
        return rmsd

@rasbt rasbt changed the title Does the RMSD function take into consideration molecular symmetry? Improve RMSD function to take molecular symmetry into consideration? Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants