The files generated by XDS are either ASCII type files that can be inspected and modified by using a text editor, or binary, compressed image files that can be looked at using the VIEW program.
All files have a fixed name defined by XDS, which makes it mandatory to process each data set in a newly created directory to avoid name clashes. Clearly, one should not run more than one XDS-job simultaneously in any given directory.
Rotation data images are processed in 8 steps which are called in succession by XDS. Results and diagnostics from each step are documented in files with the name extension .LP for inspection by the user. Information between the steps is exchanged by files, which allows repetition of selected steps with a different set of input parameters without rerunning the whole program. Note, that by rerunning a processing step the earlier version of the output files from this step will be overwritten. Thus, these older files should first be given another name if their original contents are meant to be saved.
| xds step | input files | output files |
| XYCORR | XDS.INP | XYCORR.LP |
| X-CORRECTIONS.pck | ||
| Y-CORRECTIONS.pck | ||
| INIT | XDS.INP | INIT.LP |
| X-CORRECTIONS.pck | BKGINIT.pck | |
| Y-CORRECTIONS.pck | BLANK.pck | |
| GAIN.pck | ||
| COLSPOT | XDS.INP | COLSPOT.LP |
| X-CORRECTIONS.pck | SPOT.XDS | |
| Y-CORRECTIONS.pck | ||
| BLANK.pck | ||
| BKGINIT.pck | ||
| GAIN.pck | ||
| IDXREF | XDS.INP | IDXREF.LP |
| SPOT.XDS | SPOT.XDS | |
| XPARM.XDS | ||
| DEFPIX | XDS.INP | DEFPIX.LP |
| X-CORRECTIONS.pck | BKGPIX.pck | |
| Y-CORRECTIONS.pck | ABS.pck | |
| BKGINIT.pck | ||
| XPARM.XDS | ||
| XPLAN | XDS.INP | XPLAN.LP |
| BKGPIX.pck | ||
| XPARM.XDS | ||
| INTEGRATE | XDS.INP | INTEGRATE.LP |
| X-CORRECTIONS.pck | INTEGRATE.HKL | |
| Y-CORRECTIONS.pck | FRAME.pck | |
| BLANK.pck | ||
| BKGPIX.pck | ||
| GAIN.pck | ||
| XPARM.XDS | ||
| CORRECT | XDS.INP | CORRECT.LP |
| INTEGRATE.HKL | XDS_ASCII.HKL | |
| REMOVE.HKL | GXPARM.XDS |
This file contains the input parameters you have to provide to run XDS.
Each parameter name consists of a string of characters without intervening blanks or exclamation marks and includes an equal sign as its last character. The parameter value follows on the same line. The parameter names cannot be abbreviated; they are case sensitive, too. The parameters may be given in arbitrary order. Characters in a line to the right of an exclamation mark are comment.
The file XDS_ASCII.HKL contains the result of data processing by XDS, namely the corrected intensities of all reflections recorded in the data images.
Output files generated by xscale adopt a similar layout but are named as defined by the user.
The file consists of a header, reflection data records, and a line marking the end of the data. Each line is at most 132 characters in length. The data records consist of a fixed number of numerical items that are separated by at least one blank. Header lines and the terminator line are distinguished from the reflection data records by the presence of the exclamation mark symbol '!'.
The last line of the header is identified by !END_OF_HEADER
The file contains a list of strong observed diffraction spots. The spot centroids are located by "COLSPOT" and saved as ASCII records x,y,z,Intensity using FORMAT(3F10.2,F10.0).
The spot positions x,y (pixels) in the detector plane are already corrected for spatial distortion. z is the centroid of image numbers that contribute to the spot. The file is read subsequently by "IDXREF" and indices are attached to each spot. Indices 0 0 0 are used to indicate a spot that could not be indexed. On return, the original file contents is replaced by records
x,y,z,Intensity,h,k,l using FORMAT(3F10.2,F10.0,3I8)
for each spot, and h,k,l are the reflection indices.
Each file contains all diffraction parameters necessary for computing the locations of all reflections occuring in the data images.
An initial set of parameters is determined by "IDXREF" and saved on file XPARM.XDS. A final set of parameters is computed by "CORRECT" and saved on file GXPARM.XDS. Both files are of identical format, the meaning of the parameters is as described below. In case a better solution has been obtained from the refinements in the "CORRECT" step, one could replace XPARM.XDS by GXPARM.XDS and rerun "INTEGRATE" and "CORRECT". Usually this is not necessary, but this possibility may be useful in certain critical cases.
The file comprises 11 lines of data values that code for
This file contains the results from the INTEGRATE step. The file begins with a self-explaining header. Each header record starts with a '!'. The last header record is indicated by !END_OF_HEADER; the reflection records follow immediately. A terminator record, !END_OF_DATA, follows the last reflection record.
Each reflection record consists of 19 data items
h, k, l, IOBS, SIGMA, XCAL, YCAL, ZCAL, RLP, PEAK, CORR, MAXC, XOBS, YOBS, ZOBS, ALF0, BET0, ALF1, BET1
The items are separated by a blank and can be read in free-format.
In the CORRECT step, XDS checks for the presence of a file named REMOVE.HKL in the current directory. A file of this name can be provided by the user to specify the indices of reflections that should be excluded from the final output file XDS_ASCII.HKL. Each reflection record of this file consists of the reflection indices h, k, l and possibly other information that will be ignored. Up to 10000 reflections can be specified.
Reflections that do not obey Wilson's statistic often arise from ice rings in the data images. These outliers are reported near the end of the file CORRECT.LP. To suppress the unwanted reflections from the final output file XDS_ASCII.HKL, the user copies them to a file named REMOVE.HKL in the current directory and repeats the CORRECT step.
These two files contain look-up tables to correct the X and Y pixel positions on the detector for spatial distortions. The spatial corrections for a pixel at IX,IY (0<IX<=NX, 0<IY<=NY) are found in the tables at address IA4=IX4+NXBY4*(IY4-1) where IX4=1+(IX-2)/4, IY4=1+(IY-2)/4, and NXBY4= 1+(NX-2)/4, such that the corrected pixel-coordinates are
IX("CORRECTED")=IX+I2XCOR(IA4)/10
IY("CORRECTED")=IY+I2YCOR(IA4)/10.
BLANK.pck contains the dark current (non-Xray) background. The dark current for a pixel at IX,IY (0<IX<=NX, 0<IY<=NY) is found at address IA4=IX4+NXBY4*(IY4-1) in the table, where
IX4=1+(IX-2)/4, IY4=1+(IY-2)/4, and NXBY4= 1+(NX-2)/4.
GAIN.pck contains the ratio between variance and mean of the pixel contents in the neighbourhood of each image pixel. The table is used for classifying data image pixels into background or spot.
These files contain an image of the INTEGER*2 array IBKG(NX*NY) such that IBKG(IX+NX*(IY-1)) is the background value at pixel position IX,IY (0<IX<=NX,0<IY<=NY). NX,NY are the number of pixels along the detector X- and Y-axis. (IX is the fast index.) The pixel contents are given in XDS internal number representation:
If I16=IBKG(IX+NX*(IY-1)), the true value I32 is found by the code
I32=I16; IF (I32.LT.-4095)I32=-8*I32;
the value range -4095 ... -1 is used to mark the pixel. Untrusted pixels are marked by -3.
BKGINIT.pck is generated in the INIT step and serves as input of the DEFPIX step. DEFPIX recognizes shaded regions in the background table BKGINIT.pck and removes them from the set of trusted pixels.
BKGPIX.pck is the background table resulting from the DEFPIX step. It serves as starting background table for the INTEGRATE step.
This file contains an image of the INTEGER*2 array I2ABS(NX*NY) such that I2ABS(IX+NX*(IY-1)) is the ratio between the background at IX, IY and the mean background for all pixels of the same resolution, multiplied by 10000. NX,NY are the number of pixels along the detector X- and Y-axis. (IX is the fast index.) This file is generated in the DEFPIX step of XDS and should be inspected by the user with the VIEW program. The image clearly shows shaded regions of the detector that should be removed from the trusted detector area. Pixels in the shaded region have a value below 10000, and in case the default setting was unsatisfactory, the user may change the input parameter VALUE_RANGE_FOR_TRUSTED_DETECTOR_PIXELS= and repeat the DEFPIX step. As a result from the DEFPIX step the initial pixel background table BKGPIX.pck will be obtained with untrusted pixels marked by -3.
Wolfgang Kabsch
page last updated: December 6, 2002