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

Convert axis-angle to rotation matrix then to Euler angles in csparc2star #5

Merged
merged 1 commit into from
Apr 26, 2017

Conversation

alipunjani
Copy link
Contributor

This code hasn't been tested but hopefully should work. At least the math should be correct.
The expmap function is from cryoSPARC, converts axis-angle to rotation matrix. Then the util.rot2euler converts that to Euler angles in the Relion format.

This should at least give Euler angles for particles that are correct relative to eachother, but I suspect there's still going to be a flip or 90-degree rotation somewhere that is missing for the angles to be correct relative to a .mrc file output from cryoSPARC.

@alipunjani alipunjani changed the title Convert axis-angle to rotation matrix then to Euler angles in cspar2star Convert axis-angle to rotation matrix then to Euler angles in csparc2star Apr 23, 2017
@asarnow asarnow merged commit 1d9eb4e into asarnow:master Apr 26, 2017
asarnow added a commit that referenced this pull request Apr 26, 2017
code provided by Ali Punjani in #5.

csparc2star.py now outputs correct Euler angles which
give a correct result from relion_reconstruct.
@asarnow
Copy link
Owner

asarnow commented Apr 26, 2017

Thanks, Ali! The program outputs correct angles now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants