density-fitness(1)
π density-fitness(1) π
okay bestie, listen up β this is the User Commands girlie density-fitness, and she's here to tell you exactly how good your electron density looks. no cap.
β¨ NAME β¨
density-fitness β calculates per-residue electron density scores: real-space R, real-space correlation coefficient, EDIAm, and OPIA. literally the whole glow-up report card for your structure π₯
πΈ SYNOPSIS πΈ
density-fitness [OPTION] <mtz-file> <coordinates-file> [output]
density-fitness [OPTION] --hklin=<mtz-file> --xyzin=<coordinates-file>
[--output=<output>]
density-fitness [OPTION] --fomap=<fo-map-file> --dfmap=<df-map-file>
--reslo=<low-resolution> --reshi=<high-resolution> --xyzin=<input
[--output=<output>]
(yes the third one ends in --xyzin=<input with no closing bracket, that's just how she is, don't @ me, we keep it verbatim π«Ά)
π¦ DESCRIPTION π¦
So density-fitness calculates electron density metrics β for main-chain atoms (and yes, that includes the CΞ² atom π
) and for side-chain atoms, of individual residues. per-residue. every single one gets its vibe check.
For this calculation, the program uses the structure model in either PDB or mmCIF format, plus the electron density from the 2mFo-DFc and mFo-DFc maps. If those maps aren't readily available, no stress β you can use the MTZ file and model to calculate the maps with clipper. And it's not picky: density-fitness supports both X-ray and electron diffraction data. versatile queen π
Real talk though: this program is essentially a reimplementation of edstats, which is a program available from the CCP4 suite. BUT. The output now contains only the RSR, SRSR and RSCC fields like in edstats, with the addition of EDIAm and OPIA β and it no longer requires pre-calculated map coefficients. so much easier, we love an upgrade β¨
π the metrics, explained (sort of, they're formulas bestie)
The real-space R factor (RSR) is defined (BrΓ€ndΓ©n & Jones, 1990; Jones et al., 1991) as:
RSR = Ξ£ |Οobs - Οcalc| / Ξ£ |Οobs + Οcalc|
The SRSR is the estimated sigma for RSR.
The real-space correlation coefficient (RSCC) is defined as:
RSCC = cov(Οobs,Οcalc) / sqrt(var(Οobs) var(Οcalc))
where cov(.,.) and var(.) are the sample covariance and variance
(i.e. calculated with respect to the sample means of Οobs and
Οcalc).
The EDIAm score is a per-residue score based on the atomic EDIA value, and the OPIA score gives the percentage of atoms in the residue with EDIA score is above 0.8. iconic behavior fr fr.
π OPTIONS π
okay so housekeeping first, the important logistics:
- When using MTZ files, the input and output files do not need the option flag. If no output file is given, the result is printed to
stdout. - When using map files, the resolution must be specified using the
reshiandreslooptions.
now the menu, mwah π
--xyzinβ the coordinates file, in either PDB or mmCIF format. This file may be compressed withgzip. Also covers--fomapand--dfmap: the 2mFo-DFc and mFo-DFc map files respectively. Both are required, and if these are specified, the resolution must also be specified. (they come as a trio, they're a package deal π«Ά)--resloand--reshiβ the low and high resolution for the specified map files.--hklinβ the MTZ file. If this option is specified, the maps will be calculated using the information in this file.--sampling-rateβ the sampling rate to use when creating maps. Default is1.5.--recalcβ by default the maps are read from the MTZ file, but you can also opt to recalculate the maps. use this e.g. when the structure no longer corresponds to the structure used to calculate the maps in the MTZ file. (glow-up era, recalculation era π )--aniso-scalingβ accepted values for this option areobservedandcalculated, ornone. Used when recalculating maps.--no-bulkβ when specified, a bulk solvent mask is not used in recalculating the maps.--components(or--compounds) β specify the path of the CCD filecomponents.cif. By default the one installed by libcifpp is used; use this option to override this default.--extra-compoundsβ a file containing information for residues in this specific target. This file may be in either CCD or CCP4 monomer library format.--mmcif-dictionaryβ specify the path to the mmcif pdbx dictionary file. The default is to use the dictionary installed by libcifpp; use this option to override this default.--no-validateβ omit the validation of the input mmCIF file. This will force output even in case the input file contains errors. β οΈ chaos mode, proceed with intention.--electron-scatteringβ use electron scattering factors instead of X-ray scattering factors.--use-auth-idsβ by default, when reading mmCIF files, thelabel_xxx_idis used in the edstats output. Use this flag to force output with theauth_xxx_ids.--output-formatβ by default a JSON file is written, unless the filename ends with.eds. Use this option to force output inedstatsorjsonformat.--verbose,-Vβ be more verbose, useful to diagnose validation errors. the yapper mode we all needed π£οΈ
π REFERENCES π
the receipts, the citations, the academic royalty:
- Statistical quality indicators for electron-density maps β Tickle, I. J. (2012). Acta Cryst. D68, 454-467. DOI:
10.1107/S0907444911035918 - Estimating Electron Density Support for Individual Atoms and Molecular Fragments in X-ray Structures β Agnes Meyder, Eva Nittinger, Gudrun Lange, Robert Klein, and Matthias Rarey, Journal of Chemical Information and Modeling 2017 57 (10), 2437-2447 DOI:
10.1021/acs.jcim.7b00391
π AUTHOR π
Written by Maarten L. Hekkelman <maarten@hekkelman.com> β king behavior, we stan π«Ά
π REPORTING BUGS π
Report bugs at https://github.com/PDB-REDO/density-fitness/issues
bestie if something's broken, tell the devs, don't suffer in silence. that's the vibe check. π
and that's the whole page, no notes. this was version 1.0.1, dated 2020-11-23, from the density-fitness(1) manual. slay, go calculate those scores, you've got this πβ¨ππ¦πΈπ
π¦ where this page comes from
- debian bookworm: density-fitness 1.0.8-4 Β· BSD-2-Clause
- debian trixie: density-fitness 1.1.3-1 Β· BSD-2-Clause
- ubuntu jammy: density-fitness 1.0.3-1 Β· BSD-2-Clause
- ubuntu noble: density-fitness 1.0.8-4 Β· BSD-2-Clause
- ubuntu questing: density-fitness 1.1.3-1
- ubuntu resolute: density-fitness 1.2.0-2 Β· BSD-2-Clause
- ubuntu stonking: density-fitness 1.2.1-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms