32bit mrc movies import error

Hello,

I am trying to import movies (Krios/K2; 0.55A/pix super-res; 40 frames) and am getting the following error:
[CPU: 600.0 MB] Traceback (most recent call last):
File “cryosparc2_master/cryosparc2_compute/run.py”, line 85, in cryosparc2_compute.run.main
File “cryosparc2_compute/jobs/imports/run.py”, line 760, in run_import_movies_or_micrographs
imgdata = mrc.read_mrc(abs_path)[1].sum(axis=0) * gainref
File “cryosparc2_compute/blobio/mrc.py”, line 135, in read_mrc
data = read_mrc_data(file_obj, header, start_page, end_page, out)
File “cryosparc2_compute/blobio/mrc.py”, line 86, in read_mrc_data
dtype = mrc_datatype_to_dtype(datatype)
File “cryosparc2_compute/blobio/mrc.py”, line 65, in mrc_datatype_to_dtype
assert False,‘Unsupported MRC datatype: {0}’.format(datatype)
AssertionError: Unsupported MRC datatype: 101

I tried to check the headers of the .mrc movies and when I type .mrc the result I get looks very weird (see below): pixel spacing is incorrect and several of the entries are just 0 (which looked odd to me)

RO image file on unit 1 : FoilHole_18835916_Data_18808406_18808408_20210222_092442_fractions.mrc Size= 8899363 K

Number of columns, rows, sections … 7676 7420 40
Map mode … 2 (32-bit real)
Start cols, rows, sects, grid x,y,z … 0 0 0 1 1 1
Pixel spacing (Angstroms)… 1.000 1.000 1.000
Cell angles … 0.000 0.000 0.000
Fast, medium, slow axes … X Y Z
Origin on x,y,z … 0.000 0.000 0.000
Minimum density … 0.0000
Maximum density … 0.0000
Mean density … 0.0000
RMS deviation from mean… 0.0000
tilt angles (original,current) … 0.0 0.0 0.0 0.0 0.0 0.0
Space group,# extra bytes,idtype,lens . 0 0 0 0

 0 Titles :

I did the same thing for the gain reference file and I got:
RO image file on unit 1 : New_gain_ref.mrc Size= 222485 K

** Number of columns, rows, sections … 7676 7420 1**
** Map mode … 2 (32-bit real) **
** Start cols, rows, sects, grid x,y,z … 0 0 0 7676 7420 1**
** Pixel spacing (Angstroms)… 0.5723 0.5723 0.5723 **
** Cell angles … 90.000 90.000 90.000**
** Fast, medium, slow axes … X Y Z**
** Origin on x,y,z … 0.000 0.000 0.000 **
** Minimum density … 0.14146 **
** Maximum density … 21.357 **
** Mean density … 1.0085 **
** tilt angles (original,current) … 0.0 0.0 0.0 0.0 0.0 0.0**
** Space group,# extra bytes,idtype,lens . 0 0 0 0**

** 1 Titles :**
raw2mrc: Converted to mrc format. 23-Feb-21 16:05:23

(This looks more reasonable)

Both files say its Map mode 2 (32 bit real). I’ve been more accustomed to 8-bit, so I’m not sure what’s happening here and what to do here.

Would really appreciate someone’s help here.

1 Like

Were you ever able to resolve this issue? I’m currently having the same problem with my new data set I’m trying to import.