Sorry about the misleading error messages, it’s true that most exceptions will lead to the old passthrough message. The rest of the messages are just warnings about missing values since usually you want to make sure defocus and alignment parameters are copied.
Hi Daniel, I can send you the .cs files. However the problem arised because the extracted particles had as input particles linked from other workspaces. To solve this, I am testing now what I described above.
.mrcs is just an extension used by Relion for MRC files that contain particle stacks - the format is MRC. It doesn’t have any metadata, and all our current processing programs can use them natively. STAR files, CS files (serialized numpy record arrays), and PAR files are all metadata formats that store information for particles.
If you want a single particle stack, e.g. for cisTEM, you can convert using csparc2star.py, then use relion_stack_create or stack.py to restack the particles.
is this script still working for relion 3.1?
we are trying to use it to create an star file
using particles extracted from cryosparc, ( .cs files). We can import the star file and also see the images in relion 3.1
However, relion complains about the boxsize and we cannot run it
ObservationModel::getBoxSize: box sizes not available. Make sure particle images are available before converting/importing STAR files from earlier versions of RELION.
we seem to have missed the data corresponding to this column
during the passhtrough in cryosparc, as I do not see any related to the boxsize in the metadata
That’s part of the header of the optics table, you can’t modify it. You would instead add _rlnImageBoxSize (the field Relion told you it needed) to the list of fields, and add a value for that to the optics groups (in this case, there is one optics group and only one line in the table).
Could you please comment on following error. Is installation have problem or something missing in command?
csparc2star.py P6_J50_passthrough_particles.cs P6_J50_passthrough_particles.star
no field of name blob/shape
Traceback (most recent call last):
File “/programs/x86_64-linux/pyem/20200813/pyem/csparc2star.py”, line 42, in main
df = metadata.parse_cryosparc_2_cs(cs, passthroughs=args.input[1:], minphic=args.minphic, boxsize=args.boxsize, swapxy=args.swapxy)
File “/opt/sbgrid/x86_64-linux/pyem/20200813/pyem_extlib/pyem-20200813-rcmw/pyem/metadata.py”, line 417, in parse_cryosparc_2_cs
df[star.Relion.IMAGESIZE] = cs[“blob/shape”][:, 0]
ValueError: no field of name blob/shape