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-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).]
.OUTPUT ANGLES DOCUMENT FILE: APMD101
[This is the only output produced by this program.
It contains 6 columns as follows:
1. Number of the most similar reference image.
When this number is negative, the most similar image
is the mirrored image (see note 1).
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. Current experimental image number.
7. Always -1.0.]
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 SD x21,x51,x52,x53 apmdcnv LB1 SD E apmdcnv EN