-
Notifications
You must be signed in to change notification settings - Fork 103
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
kabsch alignment algorithm swapped mobile and fixed when creating rotation matrix #524
Comments
Hi, I will look into it. Intuitively, I would also presume, that |
I took this issue to perform some refactoring on biotite/tests/structure/test_superimpose.py Lines 46 to 69 in 29ecc1e
However, the rotation matrix is as expected, but it might also be fixed by the refactoring. If the issue persists, could it be possible the error is this step:
which, I think, could easily happen as the inverse of a rotation matrix is simply its transpose. |
I went back and looked at this. You were right. I was rotating points via |
Hello,
I'm working on some code that suggests that when creating the rotation matrix via
superimpose
, the kabsch algorithm implementation simply hasfixed
andmobile
swapped as insuperimpose.py:_superimpose()
. Do you think this is an accurate assessment? I think the definitions of x and y in that function should be flipped. Or, in other words, I think the kabsch algorithm should havemobile.T dot reference,
when this implementation is doingreference.T dot mobile
.My method:
superimpose(points*, points)
to calculate R2superimpose(points, points*)
to calculate R3Just wanted to bring that to your attention! Or perhaps I'm mistaken, and that would be nice to know as well 🙂
Best,
Jonathan
The text was updated successfully, but these errors were encountered: