AP SA | [Alignment - reference free, Shift ||] |
AP SR | [Alignment - reference free, Shift & Rotation ||] |
AP REF | [Alignment - multi-reference, rotation & shift ||*] |
.FILE NUMBERS OR SELECTION DOC. FILE NAME: SELECTREF
[Enter numbers of reference files. The file numbers can also
be read from a selection document file where file numbers are contained in the
first register (not the keys).]
.FIRST, LAST RING & SKIP: 5,15,1
[Only rings with radii in the range 5-15 will be analyzed.
If skip=0 or 1, then every ring between 5 and 15 will be taken;
for skip=2, every second ring; etc.]
.REFERENCE IMAGES ANGLES DOCUMENT FILE: Refangles
[Enter the name of the angular document file containing Eulerian
angles of reference images (projections): psi, theta, phi.]
.REFERENCE-RINGS FILE: REF001
[Give name of reference-rings file. If the file
exists, SPIDER will read the reference-rings data from this
file and will not read the reference image file series. If
this file does not exist, SPIDER will create/store the
reference-rings data in incore memory. If
SPIDER is unable to allocate sufficient memory for the
reference-rings data then the reference-rings file must
exist. In that case, use operation 'AP I' to create
the reference-rings file. More than one
SPIDER run can use the same reference-rings file.
Note that old responses 'W', 'Y', & 'N' are now obsolete.
.TEMPLATE FOR IMAGE SERIES TO BE ALIGNED: DAT***
[Give the template name of the existing file series of
experimental images. These images will be checked for
alignment versus the reference images.]
.FILE NUMBERS OR SELECTION DOC. FILE NAME:1-21
[Enter numbers of experimental files. The file numbers can also
be read from a selection document file where file numbers are contained in the
first register (not the keys).]
.EXPERIMENTAL IMAGES ANGLES DOCUMENT FILE: angles001
[Enter the name of the angular document file containing Eulerian
angles of experimental images (projections: psi, theta, phi.
Experimental images will be compared with only these
reference images whose normal is within a specified range from
this angular value.]
.RANGE OF ANGULAR SEARCH: 20.0
[Experimental images will be compared with only these
reference images whose normal is within 20 degrees range.]
.OUTPUT ANGLES DOCUMENT FILE: APMD101
[This is the only output produced by this program.
It contains 7 register columns:
1.Number of the most similar reference image.
When this number is negative, the most similar is the
mirrored projection (see note 1).
When no matching projection was found within
the angular range specified, this column will contain 0.
2.Not-normalized correlation coefficient.
Can be used as a similarity measure.
3. "-psi" angle.
In-plane rotation angle determined. To use in 3D
reconstruction programs invert the sign.
4. Always 0.0
5. Always 0.0
6. Experimental projection number.
7. Angular change for projection.]
NOTES
The following example demonstrates how to apply parameters found (in-plane rotation and mirror operation) to the input images: ; x91 - number of images x91=500 DO LB1 x21=1,x91 x21=x0 UD IC,x21,x51,x52,x53,x61,x61,x81 apmd500 x53=-x53 ; IF(x51.LT.0) THEN MR avs{***x81} _1 Y RT SQ _1 avt{***x81} x53 (0,0) x51=-x51 x53=x53+180 IF(x53.LT.360.0) GOTO LB2 x53=x53-360.0 GOTO LB2 ENDIF IF(x51.GT.0) THEN RT SQ avs{***x81} avt{***x81} -x53 (0,0) ENDIF LB2 ; skip images that do not have reference image IF(x51.NE.0) THEN SD x21,x51,x52,x53 apmdcnv ENDIF LB1 SD E apmdcnv EN