CTF#

class CTF(defocus_x=None, angles=None, opening_axis=2, tilt_axis=0, sampling_rate=1, acceleration_voltage=300000.0, spherical_aberration=27000000.0, amplitude_contrast=0.07, phase_shift=0, defocus_angle=0, defocus_y=None, flip_phase=True)[source]#

Bases: ComposableFilter

Generate per-tilt contrast transfer function filter.

Attributes

CTF.acceleration_voltage

The acceleration voltage in Volts, defaults to 300e3.

CTF.amplitude_contrast

The amplitude contrast, defaults to 0.07.

CTF.angles

The tilt angles in degrees.

CTF.defocus_angle

The defocus angle in radians, defaults to 0.

CTF.defocus_x

The defocus in x direction (in units of sampling rate).

CTF.defocus_y

The defocus value in y direction, defaults to None (in units of sampling rate).

CTF.flip_phase

Whether the returned CTF should be phase-flipped, defaults to True.

CTF.opening_axis

The microscope projection axis, defaults to 2 (z).

CTF.phase_shift

The phase shift in radians, defaults to 0.

CTF.sampling_rate

The sampling rate, defaults to 1 Ångstrom / voxel.

CTF.spherical_aberration

The spherical aberration, defaults to 2.7e7 (in units of sampling rate).

CTF.tilt_axis

The axis along which the tilt is applied, defaults to 0 (x).

Methods

CTF.__call__([return_real_fourier])

This method provides the standard interface for creating of composable filter masks.

CTF.from_file(filename, **kwargs)

Initialize CTF from file.