Skip to content

Action: SAXS

Module isdb
Description Usage
Calculates SAXS intensity. used in 1 tutorialsused in 9 eggs

Details and examples

Calculates SAXS intensity.

SAXS intensities are calculated for a set of scattering vectors using QVALUE keywords numbered from 1. Form factors can be assigned either by polynomial expansion of any order by using the PARAMETERS keywords, or automatically matched to atoms using the ATOMISTIC flag by reading a PDB file. Alternatively to the atomistic representation, two types of coarse-grained mapping are available: - MARTINI. - ONEBEAD.

Whether for PARAMETERS, ATOMISTIC, and ONEBEAD the user must provide an all-atom PDB file via MOLINFO before the SAXS instruction. MARTINI requires a mapping scheme consisting of a PDB file that contains both the all-atom and MARTINI representations, and a bead position file (e.g., bead1: CENTER ATOMS=1,5,7,11,12 WEIGHTS=14,12,12, 12,16).

ONEBEAD scheme consists in a single-bead per amino acid residue or three-bead for nucleic acid residue (one for the phosphate group, one for the pentose sugar, one for the nucleobase). PLUMED creates a virtual bead on which the SAXS calculations are performed, centred on the COM of all atoms belonging to the bead. It is possible to account for the contribution of the solvation layer to the SAXS intensity by adding a correction term for the solvent accessible beads only: the form factors of the amino acids / phosphate groups / pentose sugars / nucleobases with a SASA (computed via LCPO algorithm) greater than a threshold are corrected according to an electron density term. Both the surface cut-off threshold and the electron density term can be set by the user with the SASA_CUTOFF and SOLVATION_CORRECTION keywords. Moreover, SASA stride calculation can be modified using SOLVATION_STRIDE, which is set to 10 steps by default. ONEBEAD requires an additional PDB file to perform mapping conversion, which must be provided via TEMPLATE keyword. This PDB file should only include the atoms for which the SAXS intensity will be computed. The AMBER OL3 (RNA) and OL15 (DNA) naming is required for nucleic acids. Three additional bead types are available for DNA and RNA besides phosphate group, pentose sugar, and nucleobase: - 5'-end pentose sugar capped with an hydroxyl moiety at C5' (the residue name in the PDB must be followed by "5", e.g., DC5 or C5 for cytosine in DNA and RNA, respectively); - 5'-phosphorylated end with an additional hydroxyl moiety at P (the residue name in the PDB must be followed by "T", e.g., DCT or CT for cytosine in DNA and RNA, respectively); - 3'-end pentose sugar capped with an hydroxyl moiety at C3' (the residue name in the PDB must be followed by "3", e.g., DC3 or C3 for cytosine in DNA and RNA, respectively). An additional bead type is available for proteins: - Cysteine residue involved in disulfide bridge (the residue in the PDB must be named CYX).

Experimental reference intensities can be added using the EXPINT keywords. All these values must be normalised to the SAXS intensity at q = 0. To facilitate this operation, the SCALE_EXPINT keyword can be used to provide the intensity at q = 0. Each EXPINT is divided by SCALE_EXPINT. The maximum QVALUE for ONEBEAD is set to 0.3 inverse angstroms. The solvent density, that by default is set to 0.334 electrons per cubic angstrom (bulk water), can be modified using the SOLVDENS keyword.

The ABSOLUTE flag can be used in order to calculate intensities in the absolute scale. It is only available for the ATOMISTIC scheme and cannot be used with SCALE_EXPINT.

By default SAXS is calculated using Debye on CPU, by adding the GPU flag it is possible to solve the equation on a GPU if the ARRAYFIRE libraries are installed and correctly linked. METAINFERENCE can be activated using DOSCORE and the other relevant keywords.

Examples

in the following example the SAXS intensities are calculated using single-bead per residue approximation, with a SASA threshold of 1 square nanometer and a solvation term of 0.04. Each experimental intensity is divided by 1.4002, which is the corresponding theoretical intensity value at q = 0. The form factors are selected according to the PDB file specified by TEMPLATE keyword.

Click on the labels of the actions for more information on what each action computes
tested on2.11
MOLINFOThis command is used to provide information on the molecules that are present in your system. More details STRUCTUREa file in pdb format containing a reference structure=template_AA.pdb

SAXSCalculates SAXS intensity. More details ...
LABELa label for the action so that its output can be referenced in the input to other actions=SAXS
ATOMSThe atoms to be included in the calculation, e=1-355
ONEBEAD calculate SAXS for a single bead model
TEMPLATE A PDB file is required for ONEBEAD mapping=template_AA.pdb
SOLVDENS Density of the solvent to be used for the correction of atomistic form factors=0.334
SOLVATION_CORRECTION Solvation layer electron density correction (ONEBEAD only)=0.04
SOLVATION_STRIDE Number of steps between every new residues solvation estimation via LCPO (ONEBEAD only)=1
SASA_CUTOFF SASA value to consider a residue as exposed to the solvent (ONEBEAD only)=1.0
SCALE_EXPINT Scaling value for experimental data normalization=1.4002
QVALUE1Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.03 EXPINT1Add an experimental value for each q value=1.0902
QVALUE2Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.06 EXPINT2Add an experimental value for each q value=0.790632
QVALUE3Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.09 EXPINT3Add an experimental value for each q value=0.453808
QVALUE4Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.12 EXPINT4Add an experimental value for each q value=0.254737
QVALUE5Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.15 EXPINT5Add an experimental value for each q value=0.154928
QVALUE6Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.18 EXPINT6Add an experimental value for each q value=0.0921503
QVALUE7Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.21 EXPINT7Add an experimental value for each q value=0.052633
QVALUE8Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.24 EXPINT8Add an experimental value for each q value=0.0276557
QVALUE9Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.27 EXPINT9Add an experimental value for each q value=0.0122775
QVALUE10Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2, =0.30 EXPINT10Add an experimental value for each q value=0.00880634
... SAXS

PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=(SAXS\.q-.*),(SAXS\.exp-.*) FILEthe name of the file on which to output these quantities=saxsdata STRIDE the frequency with which the quantities of interest should be output=1

Input

The arguments and atoms that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
ARG scalar the labels of the values from which the function is calculated
ATOMS atoms The atoms to be included in the calculation, e

Output components

This action can calculate the values in the following table when the associated keyword is included in the input for the action. These values can be referenced elsewhere in the input by using this Action's label followed by a dot and the name of the value required from the list below.

Name Type Keyword Description
score scalar default the Metainference score
sigma scalar default uncertainty parameter
sigmaMean scalar default uncertainty in the mean estimate
neff scalar default effective number of replicas
acceptSigma scalar default MC acceptance for sigma values
acceptScale scalar SCALEDATA MC acceptance for scale value
acceptFT scalar GENERIC MC acceptance for general metainference f tilde value
weight scalar REWEIGHT weights of the weighted average
biasDer scalar REWEIGHT derivatives with respect to the bias
scale scalar SCALEDATA scale parameter
offset scalar ADDOFFSET offset parameter
ftilde scalar GENERIC ensemble average estimator
q scalar default The # SAXS of q
exp scalar EXPINT The # experimental intensity

Full list of keywords

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ARGThis keyword do not have examples input none the labels of the values from which the function is calculated
ATOMS input none The atoms to be included in the calculation, e
NOISETYPEThis keyword do not have examples compulsory MGAUSS functional form of the noise (GAUSS,MGAUSS,OUTLIERS,MOUTLIERS,GENERIC)
LIKELIHOODThis keyword do not have examples compulsory GAUSS the likelihood for the GENERIC metainference model, GAUSS or LOGN
DFTILDEThis keyword do not have examples compulsory 0.1 fraction of sigma_mean used to evolve ftilde
SCALE0This keyword do not have examples compulsory 1.0 initial value of the scaling factor
SCALE_PRIORThis keyword do not have examples compulsory FLAT either FLAT or GAUSSIAN
OFFSET0This keyword do not have examples compulsory 0.0 initial value of the offset
OFFSET_PRIORThis keyword do not have examples compulsory FLAT either FLAT or GAUSSIAN
SIGMA0This keyword do not have examples compulsory 1.0 initial value of the uncertainty parameter
SIGMA_MINThis keyword do not have examples compulsory 0.0 minimum value of the uncertainty parameter
SIGMA_MAXThis keyword do not have examples compulsory 10. maximum value of the uncertainty parameter
OPTSIGMAMEANThis keyword do not have examples compulsory NONE Set to NONE/SEM to manually set sigma mean, or to estimate it on the fly
WRITE_STRIDEThis keyword do not have examples compulsory 10000 write the status to a file every N steps, this can be used for restart/continuation
DEVICEIDThis keyword do not have examples compulsory -1 Identifier of the GPU to be used
TEMPLATE compulsory template.pdb A PDB file is required for ONEBEAD mapping
DEUTER_CONCThis keyword do not have examples compulsory 0. Fraction of deuterated solvent
SOLVDENS compulsory 0.334 Density of the solvent to be used for the correction of atomistic form factors
SOLVATION_CORRECTION compulsory 0.0 Solvation layer electron density correction (ONEBEAD only)
SASA_CUTOFF compulsory 1.0 SASA value to consider a residue as exposed to the solvent (ONEBEAD only)
NThis keyword do not have examples compulsory 10 Number of points in the resolution function integral
SOLVATION_STRIDE compulsory 10 Number of steps between every new residues solvation estimation via LCPO (ONEBEAD only)
SCALE_EXPINT compulsory 1.0 Scaling value for experimental data normalization
NUMERICAL_DERIVATIVESThis keyword do not have examples optional false calculate the derivatives for these quantities numerically
DOSCOREThis keyword do not have examples optional false activate metainference
NOENSEMBLEThis keyword do not have examples optional false don't perform any replica-averaging
REWEIGHTThis keyword do not have examples optional false simple REWEIGHT using the ARG as energy
AVERAGINGThis keyword do not have examples optional not used Stride for calculation of averaged weights and sigma_mean
SCALEDATAThis keyword do not have examples optional false Set to TRUE if you want to sample a scaling factor common to all values and replicas
SCALE_MINThis keyword do not have examples optional not used minimum value of the scaling factor
SCALE_MAXThis keyword do not have examples optional not used maximum value of the scaling factor
DSCALEThis keyword do not have examples optional not used maximum MC move of the scaling factor
ADDOFFSETThis keyword do not have examples optional false Set to TRUE if you want to sample an offset common to all values and replicas
OFFSET_MINThis keyword do not have examples optional not used minimum value of the offset
OFFSET_MAXThis keyword do not have examples optional not used maximum value of the offset
DOFFSETThis keyword do not have examples optional not used maximum MC move of the offset
REGRES_ZEROThis keyword do not have examples optional not used stride for regression with zero offset
DSIGMAThis keyword do not have examples optional not used maximum MC move of the uncertainty parameter
SIGMA_MEAN0This keyword do not have examples optional not used starting value for the uncertainty in the mean estimate
SIGMA_MAX_STEPSThis keyword do not have examples optional not used Number of steps used to optimise SIGMA_MAX, before that the SIGMA_MAX value is used
TEMPThis keyword do not have examples optional not used the system temperature - this is only needed if code doesn't pass the temperature to plumed
MC_STEPSThis keyword do not have examples optional not used number of MC steps
MC_CHUNKSIZEThis keyword do not have examples optional not used MC chunksize
STATUS_FILEThis keyword do not have examples optional not used write a file with all the data useful for restart/continuation of Metainference
FMTThis keyword do not have examples optional not used specify format for HILLS files (useful for decrease the number of digits in regtests)
SELECTORThis keyword do not have examples optional not used name of selector
NSELECTThis keyword do not have examples optional not used range of values for selector [0, N-1]
RESTARTThis keyword do not have examples optional not used allows per-action setting of restart (YES/NO/AUTO)
NOPBCThis keyword do not have examples optional false Ignore the periodic boundary conditions when calculating distances
SERIALThis keyword do not have examples optional false Perform the calculation in serial - for debug purpose
GPUThis keyword do not have examples optional false Calculate SAXS using ARRAYFIRE on an accelerator device
ABSOLUTEThis keyword do not have examples optional false Absolute intensity: the intensities for each q-value are not normalised for the intensity at q=0
ATOMISTICThis keyword do not have examples optional false Calculate SAXS for an atomistic model
MARTINIThis keyword do not have examples optional false Calculate SAXS for a Martini model
ONEBEAD optional false calculate SAXS for a single bead model
QVALUE optional not used Selected scattering lengths in inverse angstroms are given as QVALUE1, QVALUE2,
PARAMETERSThis keyword do not have examples optional not used Used parameter Keywords like PARAMETERS1, PARAMETERS2
PARAMETERSFILEThis keyword do not have examples optional not used Read the PARAMETERS from a file
EXPINT optional not used Add an experimental value for each q value
SIGMARESThis keyword do not have examples optional not used Variance of Gaussian distribution describing the deviation in the scattering angle for each q value