Differences between revisions 15 and 16
Revision 15 as of 2009-07-21 21:27:19
Size: 1432
Editor: 139
Comment:
Revision 16 as of 2009-07-21 21:27:49
Size: 1432
Editor: 139
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 * To generate a CTF object, use function '''[:generate_ctf:generate_ctf](p)''', here '''p''' is a list of parameters [defocus, cs, voltage, apix, bfactor, ampcont]. Their descriptions are:  * To generate a CTF object, use function '''[:generate_ctf:generate_ctf(p)]''', here '''p''' is a list of parameters [defocus, cs, voltage, apix, bfactor, ampcont]. Their descriptions are:
Line 14: Line 14:
 * To apply CTF object to an image, use '''[:filt_ctf:filt_ctf](img, ctf)''', where ctf is a CTF object.  * To apply CTF object to an image, use '''[:filt_ctf:filt_ctf(img, ctf)]''', where ctf is a CTF object.

How to use CTF in SPARX

In SPARX, an EMAN CTF object are used to store and apply all CTF parameters.

  • To generate a CTF object, use function [:generate_ctf:generate_ctf(p)], here p is a list of parameters [defocus, cs, voltage, apix, bfactor, ampcont]. Their descriptions are:

    defocus
    defocus value of the lens in [nm].
    cs
    spherical aberration constant of the electron microscope [mm].
    voltage
    electron accelerating voltage [kV].
    apix

    pixel size of digitized micrograph [Å].

    b_factor

    B-factor defines the exponentially decaying rate of Fourier amplitudes [1/Å^2].

    ampcont
    amplitude contrast ratio.

    Notice: In some other software packages, the defocus value is in `Å` and amplitude contrast ratio is in the range of (0, 1). This function will automatically determine whether these two CTF parameters are in this convention and convert them into our convention.

  • To apply CTF object to an image, use [:filt_ctf:filt_ctf(img, ctf)], where ctf is a CTF object.

  • To put a CTF object into the header of an image, it can be done in two ways:
    1. use function set_ctf(img, p), whether p is a list of parameters [defocus, cs, voltage, apix, bfactor, ampcont].

    2. if the CTF object already exists, one can use img.set_attr("ctf", ctf) directly.

  • To get a CTF object from an image, use function get_ctf(img).

CTF_info (last edited 2017-05-07 11:51:17 by penczek)