localrec.utils module¶
-
localrec.utils.
create_subparticles
(particle, symmetry_matrices, subparticle_vector_list, part_image_size, randomize, subparticles_total, align_subparticles, handness, angpix)[source]¶ Obtain all subparticles from a given particle and set the properties of each such subparticle.
-
localrec.utils.
filter_distorigin
(subparticles, subpart, distorigin)[source]¶ return True is particle must be kept
-
localrec.utils.
filter_mindist
(subparticles, subpart, mindist, keepRedundant)[source]¶ Return True if subpart is not close to any other subparticle by mindist. That is returns True is particle must ne kept
-
localrec.utils.
filter_unique
(subparticles, subpart, unique)[source]¶ Return True if subpart is not close to any other subparticle by unique (angular distance). For this function we assume that subpart is not contained inside.
-
localrec.utils.
load_vectors
(cmm_file, vectors_str, distances_str, angpix)[source]¶ Load subparticle vectors either from Chimera CMM file or from a vectors string. Distances can also be specified for each vector in the distances_str.
-
localrec.utils.
matrixFromGeometry
(shifts, angles, inverseTransform)[source]¶ Create the transformation matrix from a given 2D shifts in X and Y…and the 3 euler angles.
-
localrec.utils.
vector_from_two_eulers
(rot, tilt)[source]¶ function that obtains a vector from the first two Euler angles
-
localrec.utils.
vectors_from_cmm
(input_cmm, angpix)[source]¶ function that obtains the input vector from a cmm file
-
localrec.utils.
vectors_from_string
(input_str)[source]¶ Function to parse vectors from an string. Our (arbitrary) convention is: x1,y1,z1; x2,y2,z2 … etc