-
Notifications
You must be signed in to change notification settings - Fork 5
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
Disagrement between relion_project and from libtilt.projection.project_fourier #58
Comments
huh - thanks for doing the comparison, I hadn't done it! It does look visually like there is some small shift - maybe by [1, 1], are they ~identical when [-1, -1] is applied to the RELION image? I don't expect any differences for centering as I stick to the conventions of RELION for the volume center (where the DC component of the DFT would be) but that is indeed what it looks like... Stupid question, no shifts in the star file for RELION? |
having a think, there is a rotation center for the 3D volume and one for the 2D grid of coordinates - I use the same convention for both but possibly RELION doesn't? Will have to look at their code carefully to figure it out |
question worth asking, does a projection by eulers 0, 0, 0 in RELION give the same as summing the volume down the Z dimension? This is true for my code afaik |
The shifts were not 0 in my first experiment (little bug on my side). Sorry for that. But still. They don't get the same results. I will post things in a second |
cool! I'm glad the centering seems right - this is super interesting What is the magnitude of these errors? Some potential sources of difference:
|
Something worth checking too, if you do a reconstruction from 1000 projections in each program how do the FSCs compare? The visual aspect of the libtilt projections looks better to me although it is subtle, what do you think? |
really interesting - the nasty grid present in the difference looks to be present in the RELION image and not the libtilt image... but rotated 😆 So what do we have so far:
Something that could measure which are more 'correct' is the rate of increase of signal at nyquist for each projection routine? |
I am not very sure if I follow you here. There is something that bugs me. I implemented a simple template matching protocol and I am not getting a perfect cross-correlation match between the Relion projections and libtilt projections when the angular difference is small. This is the code:
projs are libtilt projections and gt_projections are relion ones The differences may be small, but still, something that we may need to worry about, since they can affect alignment accuracy, don't you think so? |
I mean that you could do reconstructions using libtilt from 100, 200, 300, 400, 500 particles and for each calculate the FSC with the ground truth volume - which reconstruction becomes 'better' as measured by the FSC more quickly is the one with the more accurate projections I'm sorry I don't understand what I would expect to see in that matrix to show me which projections were better - I still only see that they are slightly different which we already agree on |
The matrix us the cross correlation between projections with relion and libtilt at different (but similar angles) In the ideal case, the diagonal should contain the largest values, meaning that the most similar relion abd libtilt images are the one with the same angle But this only happens for two rows, hence my concerns |
right but it doesn't actually help us to answer which are 'better' - given that there is weirdness in the FTs of the RELION projections and no obvious centering issues I currently think it's more likely that the problem is with |
Hi,
I have compared what you get from libtilt.projection.project_fourier against what you get from relion_project and I am seeing some disagreements that are difficult to spot by the naked eye, but that you can tell easily by computing the difference. For instance,
I used this code
and this Relion command
Do you have any ideas of why the results are not the same? Could it be perhaps the definition of the centre of coordinates?
The text was updated successfully, but these errors were encountered: