I am importing some data into a CryoSPARC workspace, but ran into an issue when the job tried to read the gain reference’s header. For context, the gain was in the directory above the one containing my raw data and also had a longer name than what is shown in the screenshot. After renaming, trying again, moving it into the subdirectory, and trying once more, I am still unable to get the job to work. Having taken a look at the job multiple times to ensure that I put in the right parameters, I am still met with no luck. Has anyone experienced a similar problem?
details on the instrument and method (gain explicitly recorded, or calculated from actual exposures) that where involved in the generation of the gain reference.
Here are the requested details with pertinent information redacted:
Traceback (most recent call last):
File “cryosparc_master/cryosparc_compute/run.py”, line 129, in cryosparc_master.cryosparc_compute.run.main
File “/home/-----/software/cryosparc/cryosparc_worker/cryosparc_compute/jobs/imports/run.py”, line 1061, in run_import_movies_or_micrographs
gshapey, gshapex = read_gain_reference(gainref_abs_path, shape_only=True, data_format=data_format)
File “/home/-----/software/cryosparc/cryosparc_worker/cryosparc_compute/jobs/imports/run.py”, line 1017, in read_gain_reference
hdr = mrc.read_mrc_header(mrc_file, debug_fname=gainref_abs_path)
File “/home/-----/software/cryosparc/cryosparc_worker/cryosparc_compute/blobio/mrc.py”, line 54, in read_mrc_header
assert len(header_int32) == 256, f"Could not read mrc header from {debug_fname}"
AssertionError: Could not read mrc header from /home/-----/-----/-----/Rawdata/gain.mrc
Titan Krios, K3 detector. I believe the gain reference was explicitly recorded.
Hi @perrotta2, yes, this indicates that your gain reference is empty. If you do not have a copy of it somewhere you can generate one using, for example, relion_estimate_gain.