Processing AlphaFold2, RoseTTAFold and other predicted models
Author(s)
- process_predicted_model: Tom Terwilliger, Claudia Millan Nebot, Tristan Croll
Purpose
Process model files produced by AlphaFold, RoseTTAFold and other prediction
software, replacing information these programs put in the B-factor field
with pseudo-B values and optionally breaking the model into compact domains.
Background
As described in AlphaFold and Phenix,
structure prediction software is now capable of generating models that are
highly accurate over some or all parts of the models. Importantly,
these predictions often come with reliable residue-by-residue estimates of
uncertainty. The process_predicted_model tool is designed to help you
remove low-confidence residues and break the model into domains for
docking or molecular replacement.
How process_predicted_model works:
The process_predicted_model tool uses estimates of uncertainty supplied
by structure prediction tools in the B-value (atomic displacement parameters)
field of a model to create new pseudo-B values, to remove uncertain parts
of the model, and to break up the model into domains.
If you used the Phenix server to get an AlphaFold prediction
(See phenix.predict_model), the
uncertainty estimate will be pLDDT (see section below for details of this
metric).
The B-value field in most predicted models represents one of three possible
values:
An actual B-value (atomic displacement parameter)
An estimate of error in A (rmsd)
A confidence (LDDT) on a scale of either 0 to 1 or 0 to 100.
In process_predicted_model, error estimates in A or confidence values are
first converted to B-values. Then residues with high B-values are removed. Then
the remaining residues are grouped (optionally) into domains.
Conversion of error estimates to B-values
Error estimates in A are converted to B-values using the standard formula
for the relationshiop between rms positional variation and B-values:
B = rmsd**2 * ((8 * (pi**2)) / 3.0)
Conversion of LDDT values to error estimates
LDDT values are
LDDT values are first converted to a scale of 0 to 1. You can specify
whether the LDDT values in your model are from 0 to 1 (fractional) or
from 0 to 100. If you don't specify, a model with all LDDT values between
0 and 1 is assumed to contain fractional LDDT values.
Then LDDT values on a scale of 0 to 1 are converted to error estimates using
an empirical formula from
- ::
- Hiranuma, N., Park, H., Baek, M. et al. Improved protein structure
- refinement guided by deep learning based accuracy estimation.
Nat Commun 12, 1340 (2021).
https://doi.org/10.1038/s41467-021-21511-x
This empirical formula is:
RMSD = 1.5 * exp(4*(0.7-LDDT))
Trimming away low-confidence regions from predicted models
Normally it is a good idea to remove low-confidence regions from a predicted
model before using them as a starting point for experimental
structure determination. For AlphaFold2 models, low-confidence corresponds
approximately to an LDDT value of about 0.7 (on a scale of 0 to 1, or
70 on a scale of 0 to 100), or to an RMSD value of about 1.5, or to
a B-value of about 60. For other types of models these values might vary,
so you might need to experiment or use values that others have found
useful.
After trimming low-confidence residues, you will usually be left with a
model that has some complete parts of various sizes and some small pieces.
Splitting a trimmed model into domains
It can be helpful to group the pieces from your trimmed model into
compact domains, or even to split some pieces into compact domains.
The process_predicted_model tool allows you to choose a typical domain
size, and if you want, a maximum number of domains, and then it will
try to split your model into compact domains.
There are two methods available. One is based finding compact domains, the
other is based on using the predicted alignment error matrix (AlphaFold2 only).
Finding domains from a low-resolution model representation
The method used is to calculate a low-resolution map based on the input model,
then to identify large blobs corresponding to domains. All the residues in
the structure are assigned to an initial domain.Then the residues are
regrouped in order to have as few cases where small parts of the model are
part of one domain but neighboring parts are part of another as possible.
When using this method, you can easily adjust the number of domains you get
by adjusting the target domain size (in A). You can also just restrict the
number using the maximum_domains keyword (less good).
Finding domains using the predicted alignment error matrix
This method analyzes the predicted alignment error matrix (PAE) provided by
AlphaFold2 and finds groupings of residues that have small mutual alignment
error. This often corresponds to domains.
When using this method you can adjust the number of domains by changing the
value of pae_power (the exponent applied to pae before using it in finding
domains). You can also just restrict the number using the maximum_domains
keyword (less good).
The pLDDT confidence measure
AlphaFold provides residue-level estimates of model accuracy in the form of
predicted values of the LDDT (Local Difference Distance Test, Mariani et al., 2013).
These predicted
values are referred to as pLDDT values (predicted Local Difference Distance Test).
The LDDT measure is a number from zero to one that reflects the similarity of
CA positions in two structures.
The LDDT is not a simple measure of accuracy, but rather a composite that is based on
the CA distances between all pairs of CA atoms in one model and how similar these
inter-atomic distances are to those in the other model. It is a local test, where
only inter-atomic distances that are less than 15 Å are considered.
The LDDT is a composite that is generated from
the fraction of CA-CA distances that are very accurate (less than 0.5 Å off), the fraction
that are quite accurate (less than 1 Å off), moderately accurate (less than 2 Å off),
and somewhat accurate (less than 4 Å off). If all CA-CA distances are within 0.5 Å,
the resulting score will be 1, if all are more than 4 Å off, the score is zero.
Note that the LDDT is related to RMSD, but not in a simple way.
The pLDDT values (predicted Local Difference Distance Test) provided by AlphaFold are
estimates of the LDDT values. The pLDDT values are essentially unbiased (just as likely
to be too low as too high), and reasonably accurate. The correlation between pLDDT values
and actual LDDT values calculated using AlphaFold models and models in the PDB
is about 0.7 - 0.75, which means that the values of pLDDT you get are useful indicators
of model quality but also that sometimes AlphaFold will have high confidence in
an incorrect prediction or low confidence in a correct prediction.
Examples
Standard run of process_predicted_model:
Running process_predicted_model is easy. From the command-line you can type:
phenix.process_predicted_model my_model.pdb b_value_field_is=lddt
This will convert the B-value field in my_model.pdb based from LDDT to B-values,
trim residues with LDDT less than 0.7, and write out a new model with
individual chains (separate chain ID values) corresponding to
compact domains.
Possible Problems
Specific limitations and problems:
Literature
- Highly accurate protein structure prediction with AlphaFold. J. Jumper, R. Evans, A. Pritzel, T. Green, M. Figurnov, O. Ronneberger, K. Tunyasuvunakool, R. Bates, A. Žídek, A. Potapenko, A. Bridgland, C. Meyer, S.A.A. Kohl, A.J. Ballard, A. Cowie, B. Romera-Paredes, S. Nikolov, R. Jain, J. Adler, T. Back, S. Petersen, D. Reiman, E. Clancy, M. Zielinski, M. Steinegger, M. Pacholska, T. Berghammer, S. Bodenstein, D. Silver, O. Vinyals, A.W. Senior, K. Kavukcuoglu, P. Kohli, and D. Hassabis. Nature 596, 583-589 (2021).
- lDDT: a local superposition-free score for comparing protein structures and models using distance difference tests. V. Mariani, M. Biasini, A. Barbato, and T.. Schwede. Bioinformatics 29, 2722-2728 (2013).
Additional information
List of all available keywords
- job_title = None Job title in PHENIX GUI, not used on command line
- input_files
- chain_id = None If specified, find domains in this chain only. NOTE: only one chain can be used for finding domains at a time.
- selection = None If specified, use only selected part of model
- pae_file = None Optional input json file with matrix of inter-residue estimated errors (pae file)
- distance_model_file = None Distance_model_file. A PDB or mmCIF file containing the model corresponding to the PAE matrix. Only needed if weight_by_ca_ca_distances is True and you want to specify a file other than your model file. (Default is to use the model file)
- model = None Input predicted model (e.g., AlphaFold model). Assumed to have LDDT values in B-value field (or RMSD values).
- output_files
- target_output_format = *None pdb mmcif Desired output format (if possible). Choices are None ( try to use input format), pdb, mmcif. If output model does not fit in pdb format, mmcif will be used. Default is pdb.
- processed_model_prefix = None Output file with processed models will begin with this prefix. If not specified, the input model file name will be used with the suffix _processed.
- remainder_seq_file_prefix = None Output file with sequences of deleted parts of model will begin with this prefix
- maximum_output_b = 999. Limit output B values (so that they fit in old-style PDB format). Note that this limit is applied just before writing output model files, it does not affect anything else. Also if output model is trimmed normally, high-B value residues are already removed, so in most cases this keyword has no effect.
- remove_hydrogen = True Remove hydrogen atoms from model on input
- single_letter_chain_ids = False Write output files with all chain IDS as single characters. Default is to use original chain ID and to add digits (1-9) for domains.
- process_predicted_model
- remove_low_confidence_residues = True Remove low-confidence residues (based on minimum plddt or maximum_rmsd, whichever is specified)
- continuous_chain = False When removing low-confidence residues, only trim from ends
- split_model_by_compact_regions = True Split model into compact regions after removing low-confidence residues.
- maximum_domains = 3 Maximum domains to obtain. You can use this to merge the closest domains at the end of splitting the model. Make it bigger (and optionally make domain_size smaller) to get more domains. If model is processed in chunks, maximum_domains will apply to each chunk.
- domain_size = 15 Approximate size of domains to be found (A units). This is the resolution that will be used to make a domain map. If you are getting too many domains, try making domain_size bigger (maximum is 70 A).
- adjust_domain_size = True If more that maximum_domains are initially found, increase domain_size in increments of 5 A and take the value that gives the smallest number of domains, but at least maximum_domains.
- minimum_domain_length = 10 Minimum length of a domain to keep (reject at end if smaller).
- maximum_fraction_close = 0.3 Maximum fraction of CA in one domain close to one in another before merging them
- minimum_sequential_residues = 5 Minimum length of a short segment to keep (reject at end ).
- minimum_remainder_sequence_length = 15 used to choose whether the sequence of a removed segment is written to the remainder sequence file.
- b_value_field_is = *plddt rmsd b_value The B-factor field in predicted models can be pLDDT (confidence, 0-1 or 0-100) or rmsd (A) or a B-factor
- input_plddt_is_fractional = None You can specify if the input plddt values (in B-factor field) are fractional (0-1) or not (0-100). By default if all values are between 0 and 1 it is fractional.
- minimum_plddt = None If low-confidence residues are removed, the cutoff is defined by minimum_plddt or maximum_rmsd, whichever is defined (you cannot define both). A minimum plddt of 0.70 corresponds to a maximum rmsd of 1.5. Minimum plddt values are fractional or not depending on the value of input_plddt_is_fractional.
- maximum_rmsd = 1.5 If low-confidence residues are removed, the cutoff is defined by minimum_plddt or maximum_rmsd, whichever is defined (you cannot define both). A minimum plddt of 0.70 corresponds to a maximum rmsd of 1.5. Minimum plddt values are fractional or not depending on the value of input_plddt_is_fractional.
- default_maximum_rmsd = 1.5 Default value of maximum_rmsd, used if maximum_rmsd is not set
- subtract_minimum_b = False If set, subtract the lowest B-value from all B-values just before writing out the final files. Does not affect the cutoff for removing low- confidence residues.
- pae_power = 1 If PAE matrix (predicted alignment error matrix) is supplied, each edge in the graph will be weighted proportional to (1/pae**pae_power). Use this to try and get the number of domains that you want (try 1, 0.5, 1.5, 2)
- pae_cutoff = 5 If PAE matrix (predicted alignment error matrix) is supplied, graph edges will only be created for residue pairs with pae<pae_cutoff
- pae_graph_resolution = 0.5 If PAE matrix (predicted alignment error matrix) is supplied, pae_graph_resolution regulates how aggressively the clustering algorithm is. Smaller values lead to larger clusters. Value should be larger than zero, and values larger than 5 are unlikely to be useful
- weight_by_ca_ca_distance = False Adjust the edge weighting for each residue pair according to the distance between CA residues. If this is True, then distance_model can be provided, otherwise supplied model will be used. See also distance_power
- distance_power = 1 If weight_by_ca_ca_distance is True, then edge weights will be multiplied by 1/distance**distance_power.
- stop_if_no_residues_obtained = True Raise Sorry and stop if processing yields no residues
- keep_all_if_no_residues_obtained = False Keep everything if processing yields no residues
- vrms_from_rmsd_intercept = 0.25 Estimate of vrms (error in model) from pLDDT will be based on vrms_from_rmsd_intercept + vrms_from_rmsd_slope * pLDDT where mean pLDDT of non-low_confidence_residues is used.
- vrms_from_rmsd_slope = 1.0 Estimate of vrms (error in model) from pLDDT will be based on vrms_from_rmsd_intercept + vrms_from_rmsd_slope * pLDDT where mean pLDDT of non-low_confidence_residues is used.
- break_into_chunks_if_length_is = 1500 If a sequence is at least break_into_chunks_if_length_is, break it into chunks of length chunk_size with overlap of overlap_size for domain identification using split_model_by_compact_regions without a pae matrix
- chunk_size = 600 If a sequence is at least break_into_chunks_if_length_is, break it into chunks of length chunk_size with overlap of overlap_size for domain identification using split_model_by_compact_regions without a pae_matrix
- overlap_size = 200 If a sequence is at least break_into_chunks_if_length_is, break it into chunks of length chunk_size with overlap of overlap_size for domain identification using split_model_by_compact_regions without a pae_matrix
- control
- write_files = True Write output files
- guiGUI-specific parameter required for output directory