COMPARE_HKL(1)
๐ compare_hkl โ like, the whole vibe
Hey bestie, welcome to COMPARE_HKL(1), from the General Commands Manual era of Unix docs (yes she's that girl). Buckle up, we're comparing reflection data and it's gonna slay. ๐ฆ
โจ NAME โจ
compare_hkl โ compare reflection data. That's it, that's the whole job. ๐
๐ SYNOPSIS ๐
compare_hkl [options] ... file1.hkl file2.hkl -p cell.pdb
compare_hkl --help
Literally just hand her two .hkl files, tell her about the unit cell, and she'll pop out figures of merit. Iconic behavior, ngl. โจ
๐ธ DESCRIPTION ๐ธ
So. compare_hkl takes two sets of reflection data and compares them, calculating figures of merit like R-factors. ๐ซถ
Two reflections count as equivalent based on whichever point group you pick โ so choose wisely, bestie. Which means you have to give her a unit cell, either as a PDB file or as a CrystFEL unit cell file. No cell, no compariโ well, you get it. ๐ญ
๐ OPTIONS ๐
-ypointgroup,--symmetry=pointgroup โ tells her the symmetry of the reflections. Both reflection lists have to use the same symmetry, that's the rule fr fr. Default:1(aka no symmetry at all, we love a low-maintenance queen).-punitcell.cell,-punitcell.pdb,--pdb=unitcell.pdb โ the name of the file with the unit cell info, either in PDB or CrystFEL format. She needs this, periodt.--fom=FoM โ calculate figure of merit FoM. The possible figures of merit are, and I quote:Rsplitโ2^(-0.5) * sum(|I1-kI2|) / [ 0.5*sum(I1+kI2) ]R1fโsum(sqrt(I1)-sqrt(kI2)) / sum(sqrt(I1))R1iโsum(|I1-kI2|) / sum(I1)R2โsqrt(sum[(I1-kI2)^2] / sum(I1^2))CC(CChalf) โ the Pearson correlation coefficient. ๐CC*(CCstar) โ see Karplus and Diederichs, Science 336 (2012) p1030.CCanoโ the correlation coefficient of the Bijvoet differences of acentric reflections.CRDanoโ RMS anomalous correlation ratio: the anomalous differences from each data set get plotted in a scatter graph, and the variance along both diagonals is measured. See Evans, Acta Crystallographica D62 (2006) p72.Ranoโsum(|I+ - I-|) / 0.5*sum(I+ + I-)
Heads up bestie ๐จ โ this figure of merit compares measurements within one data set, so it isn't really a "comparison" operation in the sense of "compare_hkl". She's still incompare_hklanyway so that the ratioRano/Rsplitcan be calculated (see just below).I+gets taken as the mean of theI+values from both data sets, and likewise forI-.
Rano/Rsplitโ the ratio ofRanotoRsplit, as defined above. Math girlie behavior. ๐งฎd1sigandd2sigโ the fraction of differences between intensities which are within one times (ford1sig) and two times (ford2sig) the combination of the correspondingsigma(I)values.
Okay so: I1 and I2 are the intensities of the same reflection in both reflection lists. The two sets of reflections get put on a common scale (linear and Debye-Waller terms) โ unless you use -u, in which case they do not. ๐
--nshells=n โ use n resolution shells. Default:10.-uโ fix scale factors to unity. That's it. Simple queen.--shell-file=filename โ write the figure of merit in resolution shells to filename. Default:"shells.dat".--ignore-negsโ ignore reflections with negative intensities. ๐--zero-negsโ set to zero the intensities of reflections with negative intensities.--sigma-cutoff=n โ discard reflections withI/sigma(I) < n. Default:-infinity(no cutoff, everyone's invited).--rmin=1/dโ low resolution cutoff, as1/din m<sup>-1</sup>. Use this or--lowres, but not both. Pick a lane bestie. ๐--lowres=d โ low resolution cutoff in Angstroms. Use this or--rmin, but not both.--rmax=1/dโ high resolution cutoff, as1/din m<sup>-1</sup>. Use this or--highres, but not both.--highres=d โ high resolution cutoff in Angstroms. Use this or--rmax, but not both.
๐ AUTHOR ๐
This page was written by Thomas White. Shoutout to the founder, we stan. ๐ซถ
๐ REPORTING BUGS ๐
Report bugs to <taw@physics.org>, or visit <http://www.desy.de/~twhite/crystfel>. She wants to hear from you, fr fr. ๐
๐ COPYRIGHT AND DISCLAIMER ๐
Copyright ยฉ 2012-2021 Deutsches Elektronen-Synchrotron DESY, a research centre of the Helmholtz Association.
compare_hkl, and this manual, are part of CrystFEL.
CrystFEL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
CrystFEL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with CrystFEL. If not, see <http://www.gnu.org/licenses/>.
No cap: that warranty bit is not a joke, it's literally all caps in the original, so respect the drama. ๐จ
โญ SEE ALSO โญ
crystfel(7), check_hkl(1), render_hkl(1) โ go read the whole friend group, iykyk. ๐
Okay that's the whole page bestie! ๐ฆ This was COMPARE_HKL(1) from the General Commands Manual, ยฉ 2012-2021 DESY, Helmholtz Association โ mwah, go compare some reflections, ily! ๐โจ
๐ฆ where this page comes from
- nixos 26.05: crystfel 0.12.0
- nixpkgs unstable: crystfel 0.13.0
- Copyright ยฉ 2012-2021 Deutsches Elektronen-Synchrotron DESY
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms