Convert Particles

This script demonstrates the usage of the convert_particle_stacks_from_paired_star_and_mrc_files() function. Please see the linked documentation for a brief description of the possible parameters, and the documentation on image conversion for a more complete description of image conversion capabilities in CryoLike.

The convert_particle_stacks_from_paired_star_and_mrc_files() function converts particle stacks from mrc files (containing the image) and star files (containing the image metadata). These are passed as two lists of files. The function assumes that each star file describes all of the images in the corresponding MRC file, in order.

Example usage:

from cryolike import convert_particle_stacks_from_paired_star_and_mrc_files

pixel_size = 1.346
dataset_name = "apoferritin"
particle_file_list = ["./data/particles/particles.mrcs"]
star_file = ["./data/particles/particle_data.star"]

convert_particle_stacks_from_paired_star_and_mrc_files(
    params_input= "./output/templates/parameters.npz",
    folder_output = "./output/particles/",
    particle_file_list = particle_file_list,
    star_file_list = star_file,
    pixel_size = pixel_size,
    defocus_angle_is_degree = True,
    phase_shift_is_degree = True,
    skip_exist = False,
    flag_plots = True
)