Gain reference from falcon4 camera


I tried to do motion correction with .eer file collected from falcon 4 camera, and I received this error:

  Loading gain data from J7/imported/000263580115278685410_FoilHole_17683150_Data_17681946_17681948_20220118_195424_EER.eer ...

[CPU: 201.1 MB] Error occurred while processing J7/imported/000263580115278685410_FoilHole_17683150_Data_17681946_17681948_20220118_195424_EER.eer
Traceback (most recent call last):
File “/work/FAC/FBM/DMF/sgruber1/cryoem_gruber/cryosparc/cryosparc_worker/cryosparc_compute/jobs/”, line 53, in exec
return self.process(item)
File “cryosparc_master/cryosparc_compute/jobs/motioncorrection/”, line 109, in
File “cryosparc_master/cryosparc_compute/jobs/motioncorrection/”, line 145, in
File “/work/FAC/FBM/DMF/sgruber1/cryoem_gruber/cryosparc/cryosparc_worker/cryosparc_compute/blobio/”, line 140, in read_mrc
data = read_mrc_data(file_obj, header, start_page, end_page, out)
File “/work/FAC/FBM/DMF/sgruber1/cryoem_gruber/cryosparc/cryosparc_worker/cryosparc_compute/blobio/”, line 88, in read_mrc_data
dtype = mrc_datatype_to_dtype(datatype)
File “/work/FAC/FBM/DMF/sgruber1/cryoem_gruber/cryosparc/cryosparc_worker/cryosparc_compute/blobio/”, line 65, in mrc_datatype_to_dtype
assert False,‘Unsupported MRC datatype: {0}’.format(datatype)
AssertionError: Unsupported MRC datatype: 1243414722

Marking J7/imported/000263580115278685410_FoilHole_17683150_Data_17681946_17681948_20220118_195424_EER.eer as incomplete and continuing…

i have a gain file that has .gain format, and i am using cluster with Slurm schedular, the version i have is v3.3.1+220315

Hi @yli18 , maybe you need to update your cryosparc up to the latest patch so that it can support eer files properly… Local motion correction with EER file not working (resolved with patch) - #2 by sente

Can you confirm that FoilHole_17683150_Data_17681946_17681948_20220118_195424_EER.eer is indeed the intended gain reference file? I would not have expected an EER file to provide the gain data.
Something might have gone wrong during the preceding eer file import (Job J7?). What was specified for

  • Movies data path
  • Gain reference path

You can find the information under the Inputs and Parameter tab of the import job (J7).


Seeing a related issue with the following error in patch motion.

Error occurred while processing J298/imported/014569539110538124320_FoilHole_13005754_Data_12924297_12924299_20220613_194521_EER.eer
Traceback (most recent call last):
File “/home/cryosparc_user/V3.X/cryosparc_worker/cryosparc_compute/jobs/”, line 60, in exec
return self.process(item)
File “cryosparc_master/cryosparc_compute/jobs/motioncorrection/”, line 118, in
File “cryosparc_master/cryosparc_compute/jobs/motioncorrection/”, line 139, in
KeyError: ‘gain_ref_blob/path’

May we have a look at the job.json files of this failed job and of job J298?

emailed files to

The json file for the upstream import job, which you emailed us, specifies a Gain reference path that may not be in MRC format. I wonder if this caused a problem during import, which in turn may have lead to the KeyError.
If the gain reference is indeed not already in MRC format, you may want to retry the upstream import and this motion correction job after converting the gain reference to MRC format. Your microscope facility may be able to help with the conversion.

Tried that using both tif2mrc and newstack. Still have the same error.