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

Poor reconstructions while using .mrc projection files #2

Open
hdevyldere opened this issue Jul 19, 2018 · 2 comments
Open

Poor reconstructions while using .mrc projection files #2

hdevyldere opened this issue Jul 19, 2018 · 2 comments

Comments

@hdevyldere
Copy link

While trying to reconstruct a data set I found that if I save my projection sets as .mrc's and try to reconstruct them using Genfire I get a really weird output reconstruction that doesn't resemble the data at all.
mrc
mrc2

But if I run the exact same reconstruction (same angles, constraints, gridding etc.) with the same projections saved as a .mat file I get this:
mrc3

(this matches the input projections really well).

I would think it was the .mrc writer I am using but I haven't had any issues with it yet and Tomviz reads in all the .mrc's just fine.

I've attached a link to the .mat/.mrc projection files I used for the example above, along with the Euler angles, a screenshot of the parameters used, and the result files I got from both reconstructions.

(https://drive.google.com/drive/folders/1aJcgPtJ0Anej4gY6ESHlKCl05tMdPF1w?usp=sharing)

@apryor6
Copy link
Collaborator

apryor6 commented Jul 19, 2018

This is due to difference in the order of data being written (i.e. column-major vs row-major). MATLAB uses column major, whereas C++ conventions generally use row-major. The order parameter in genfire.fileio.writeMRC can be adjusted to change this. This need to write/read MRC files using the same convention in order for the results to be consistent is not limited to GENFIRE -- if you are familiar with programs like IMOD there is often an option to "permute input dimensions" or similar setting to account for differences in row/column major ordering conventions.

@hdevyldere
Copy link
Author

I see - that's good to know!

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

No branches or pull requests

2 participants