Wedge#
- class Wedge(shape, tilt_axis, opening_axis, angles, weights, weight_type=None, frequency_cutoff=0.5)[source]#
Bases:
object
Generate wedge mask for tomographic data.
- Parameters:
- shapetuple of int
The shape of the reconstruction volume.
- tilt_axisint
Axis the plane is tilted over.
- opening_axisint
The axis around which the volume is opened.
- anglestuple of float
The tilt angles.
- weightstuple of float
The weights corresponding to each tilt angle.
- weight_typestr, optional
The type of weighting to apply, defaults to None.
- frequency_cutofffloat, optional
Frequency cutoff for created mask. Nyquist 0.5 by default.
- Returns:
- Dict
A dictionary containing weighted wedges and related information.
Methods
Wedge.from_file
(filename)Generate a
Wedge
instance by reading tilt angles and weights from a tab-separated text file.Wedge.weight_angle
(shape, weights, angles, ...)Generate weighted wedges based on the cosine of the current angle.
Wedge.weight_grigorieff
(shape, opening_axis, ...)Generate weighted wedges based on the formalism introduced in [Reeee77939e46-1].
Wedge.weight_relion
(shape, opening_axis, ...)Generate weighted wedges based on the RELION 1.4 formalism, weighting each angle using the cosine of the angle and a Gaussian lowpass filter computed with respect to the exposure per angstrom.