You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description
If relion_image_handler is run with .star-file input where images reference a .mrcs-file, the output .star file images have numbers which refer to the input stack, even if the output stack is smaller.
Example: in.star has 3 lines refering to 01@in.mrcs, 02@in.mrcs, and 03@in.mrcs.
in.mrcs has 3 images.
If one edits in.star to remove any reference to 01@mrcs, running
relion_image_handler --i in.star --o out
produces an output file in_out.star which refers to 03@in_out.mrcs, even though in_out.mrcs only has 2 images. Consequently, e.g.
relion_display --i in_out.star
will fail with
ERROR:
readMRC: Image number 3 exceeds stack size 2 of image in_out.mrcs
The image references are also incorrect, such that if a user decides to remedy the issue by removing any reference to 03@in_out.mrcs in in_out.star then 02@in_out.mrcs references image information from position 2 in the original stack, which is now in 01@in_out.mrcs.
As a result, simple manual removal of any entry in the input invalidates the references of all subsequent images. This should throw an error such as that by relion_display above, but is possible to circumvent by users in a manner that corrupts data references gracefully.
Issue description
If
relion_image_handler
is run with .star-file input where images reference a .mrcs-file, the output .star file images have numbers which refer to the input stack, even if the output stack is smaller.Example: in.star has 3 lines refering to
01@in.mrcs
,02@in.mrcs
, and03@in.mrcs
.in.mrcs
has 3 images.If one edits in.star to remove any reference to 01@mrcs, running
produces an output file
in_out.star
which refers to03@in_out.mrcs
, even thoughin_out.mrcs
only has 2 images. Consequently, e.g.will fail with
The image references are also incorrect, such that if a user decides to remedy the issue by removing any reference to
03@in_out.mrcs
inin_out.star
then02@in_out.mrcs
references image information from position 2 in the original stack, which is now in01@in_out.mrcs
.As a result, simple manual removal of any entry in the input invalidates the references of all subsequent images. This should throw an error such as that by
relion_display
above, but is possible to circumvent by users in a manner that corrupts data references gracefully.Environment:
Job options:
The text was updated successfully, but these errors were encountered: