Skip to content

Commit

Permalink
Removed cite info and added python3 range functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
charnley committed May 19, 2017
1 parent 94a2736 commit c5c7bd5
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions rmsd/calculate_rmsd.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
#!/usr/bin/env python

"""
project: https://github.com/charnley/rmsd
license: https://github.com/charnley/rmsd/blob/master/LICENSE
Calculate the root-mean-square deviation (RMSD) between two Cartesian
coordinates (.xyz) or (.pdb) files, using different rotation schemes.
by: Jimmy Charnley Kromann <jimmy@charnley.dk> and Lars Andersen Bratholm <larsbratholm@gmail.com>
project: https://github.com/charnley/rmsd
license: https://github.com/charnley/rmsd/blob/master/LICENSE
"""

import numpy as np
import re

# Python 2/3 compatibility
# Make range a iterator in Python 2
try:
range = xrange
except NameError:
pass

__version__ = '1.2.4'


Expand Down Expand Up @@ -321,28 +329,11 @@ def main():
or PDB format, using transformation and rotation. The order of the atoms *must*
be the same for both structures.
Read more at https://github.com/charnley/rmsd
For more information, usage, example and citation read more at
https://github.com/charnley/rmsd
"""

epilog = """
license:
https://github.com/charnley/rmsd/blob/master/LICENSE
citation:
Kabsch algorithm:
Kabsch W., 1976, A solution for the best rotation to relate two sets of
vectors, Acta Crystallographica, A32:922-923, doi:10.1107/S0567739476001873
Quaternion algorithm:
Michael W. Walker and Lejun Shao and Richard A. Volz, 1991, Estimating 3-D
location parameters using dual number quaternions, CVGIP: Image
Understanding, 54:358-367, doi: 10.1016/1049-9660(91)90036-o
Implementation:
Calculate RMSD for two XYZ structures, GitHub,
http://github.com/charnley/rmsd
output:
epilog = """output:
Normal - RMSD calculated the straight-forward way, no translation or rotation.
Kabsch - RMSD after coordinates are translated and rotated using Kabsch.
Quater - RMSD after coordinates are translated and rotated using quaternions.
Expand Down

0 comments on commit c5c7bd5

Please sign in to comment.