I’m trying to estimate local per-particle ctfs using the gctf wrapper and a set of micrographs with associated particles (either extracted directly or with local motion correction). Whereas it seems to work for a couple of micrographs and the program runs for a while, the ctf fit and defocus values reported seem to be stuck at what I imagine are one of the parameter extremes.The issue seems to persist even when I input global ctf values.
I’m attaching snaphsots of my input parameters and of the output. Notice how most ctf fit values are stuck at 1.84A and the average defocus at 89800A.
Please let me know if there is any other information I can provide towards identifying the issue.
Perhaps – why do you think that the downsampling matters in your case?
I’ve also heard - though I cannot find a bug report - that the standalone gctf used to have a similar issue, which could be circumvented by looping over runs on individual micrographs.
Indeed, per-particle ctf estimation does not work in batch, at least with any of the gctf versions I tried. The process always starts fine, running through ~35 mrc files, after which is begins failing to determine defoci, printing one value for all micrographs and for each particle. The only solution is to loop it over the micrograph list submiting them to gctf one by one (from a shell script for example). Furthermore, in my hands, star_replace_UVA.com did not work as intended either. I do not remember exactly what the issue was, but I think star_replace_UVA.com was looking for something in the local_ctf.star that gctf did not write. My solution was to re-write the script matching micrograph names and particle locations in local_ctf.star and particles.star.
(above relates to “standalone” gctf, which cryosparc wraps. I do not think you will be able to use it inside cryosparc in that way. The only solution would be to modify your metadata outside of the cryosparc system and then re-import them back).
What seems to work, without straying from the cryosparc workflow too much, is using the _automatch.star boxfiles that gctf outputs even upon failing to run gctf “manually” on a loop as Oli suggested. Then, I re-“import the particle stack”, associating the original micrograph import cryosparc job (e.g. after “motion correction”) and the .star output from gctf.