scipion-em / scipion-em-relion

Plugin to use Relion SPA programs within the Scipion framework
GNU General Public License v3.0
3 stars 0 forks source link

Relion optics group image size is not correctly updated by protocols #230

Closed JuhaHuiskonen closed 3 years ago

JuhaHuiskonen commented 3 years ago

This is related to issue scipion-em/scipion-em#161.

_rlnImageSize in the STAR file under data_optics gets always its original value (e.g. from particle picking). It seems that at least the following protocols fail to update this value: 'relion - particles extraction' and 'localrec - extract subparticles'.

So currently I think any Relion workflow that changes the box size will fail.

Scipion v 3.0.5

pconesa commented 3 years ago

Thanks @JuhaHuiskonen.

I guss this might be relion related? So I'm sending this there. If I'm wrong send it back please.

JuhaHuiskonen commented 3 years ago

Thanks Pablo. Yes, it is likely a bug in the Relion plugin in the part where the Relion STAR file is generated. The new particle box size (if it has been changed) is not written correctly to the optics group section in the STAR file (the original box size is used instead of the current one).

azazellochg commented 3 years ago

Hi @JuhaHuiskonen , I've just updated devel branch from rc3.0.0b4. I did multiple extract coordinates and then extracting particles with different size (binning) and ImageSize is correct in the optics table. Can you update and check?

JuhaHuiskonen commented 3 years ago

I can confirm that after 'relion - particles extraction' the optics table has the correct image size, even in the earlier devel version. However, when Scipion converts a set of particles for a Relion refinement, it seems then the size is wrong. Did you try running refinements?

JuhaHuiskonen commented 3 years ago

Funnily enough if I run the extraction again with the new version, then the particle size is written correctly to the optics table. So it seems this has been fixed.