<i>TEMPy</i>2: a Python library with improved 3D electron microscopy density-fitting and validation workflows
필름·전자재료 · (16) CPI(투명 폴리이미드)
기본 정보
- 저자
- DOI
- 10.1107/s2059798320014928
- 저널
- Acta Crystallographica Section D Structural Biology
- 발행년도
- 2020
- 발행기관
- –
- 피인용수
- 39
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1107/s2059798320014928
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W3115450007
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (16) CPI(투명 폴리이미드)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 18,630자
본문 펼치기
섹션 본문 46문단 · 17,665자
(제목 없음)
1Structural determination of molecular complexes by cryo-EM requires large, often complex processing of the image data that are initially obtained. Here, TEMPy2, an update of the TEMPy package to process, optimize and assess cryo-EM maps and the structures fitted to them, is described. New optimization routines, comprehensive automated checks and workflows to perform these tasks are described.
Introduction
2Structural determination of biological assemblies is paramount to understanding their function. Cryo-EM is experiencing an exponential growth in popularity, in particular owing to its ability to resolve large assemblies in an aqueous environment without the need for crystallization. This has allowed large structures to be resolved quickly, with the recent coronavirus spike-protein structure determinations being a salient example (Wrapp et al., 2020).
3Pharmaceutical applications are also becoming more common, as cryo-EM can be used to not only determine alternate conformations (e.g. with and without ligand), but also to determine the position and mechanism of ligand binding (Atherton et al., 2017). Although the applications of cryo-EM are widespread, the data-processing step is paramount to obtain good and reliable structural information (Vinothkumar & Henderson, 2016;DiMaio et al., 2013).
4Despite the so-called 'resolution revolution' (Kü hlbrandt, 2014), many of the recently solved structures of biological assemblies still suffer from having a resolution that is far from near-atomic, especially in peripheral and flexible regions of the structure, where it may be difficult to unambiguously place side chains, backbone or even entire subunits. This is particularly salient for large biological complexes, where the assembly may be dynamic, rendering the placement of subunits ambiguous (Kim et al., 2018;Zhou et al., 2019).
5The refinement of an initial model may also leave regions that poorly match the density, which may not be readily captured by global scoring methods. Overfitting is also a common, but hard to detect, issue during model reconstruction (Chen et al., 2013).
6As cryo-EM becomes ever more popular, a modern toolkit that allows users to compare and optimize maps and the structures fitted to them is of great importance (de la Rosa-Trevín et al., 2016; Burnley et al., 2017). We present an update of TEMPy, a Python-based package that allows users to process cryo-EM maps and the structures associated with them (Farabella et al., 2015). We have developed a new version of the package, and present herein the improvements built into it. As ever more complex tasks are automated in packages such as TEMPy2, quality control upon code changes becomes critical to ensure the reproducibility and correctness of the results (Wilson et al., 2017). We present the improvements that are now built into the TEMPy2 codebase to reach this goal. After going over the package organization and its content, we will show examples of workflows for common tasks performed on EM data sets using the package.
Package organization
7The TEMPy2 code can be found at http://tempy.ismb.lon.ac.uk and in the PyPI package repository at https://test.pypi.org/ project/BioTEMPy.
8The code is divided into subpackages, each targeted towards common tasks performed on EM maps and related structures:
9(i) the maps subpackage handles the creation and manipulation of maps;
10(ii) the protein subpackage handles the manipulation of structural data and its comparison to maps;
11(iii) the math subpackage handles operations such as geometric transforms used on atomic structures as well as maps;
12(iv) the assembly subpackage deals with the optimization of multiple structures within a map;
13(v) the graphics module contains routines to generate plots from the data produced by various analyses. Fig. 1 provides a visual representation of the package organization.
14Several tools built on TEMPy2 routines with command-line interfaces are present that make use of these routines. These include -TEMPy, 'local fit optimizer' and 'local fit quality estimation', among others.
152.1. Scoring functions 2.1.1. Global scoring. Several scoring functions are implemented, as well as routines to transform the data as required. Cross-correlation coefficient calculations, for example, can be performed either between two maps or between a map and a structure blurred to a given resolution level.
16There are different global scores available in TEMPy2 (Table 1) that include cross-correlation coefficient (CCC; Roseman, 2000), mutual information (MI; Vasishtan & Topf, 2011), least-squares fit (LSF; Vasishtan & Topf, 2011), normal vector scores (NV; Vasishtan & Topf, 2011) and envelope score (ENV; Vasishtan & Topf, 2011). Fig. 2 provides an estimate of the correlation between the scores, which has been computed across a data set of 155 structures for the same CASP target T0984 (qualitatively similar results are obtained on other data sets).
17While CCC is the standard measure, MI may be a better measure at lower resolution and when the noise level is higher (Vasishtan & Topf, 2011;Joseph et al., 2017). Depiction of the package organization.
Figure 2
18Correlation of scores available within TEMPy2. The low correlation between some of the scores indicates that they rank the quality of fit between two maps or a map and structure in qualitatively different ways.
Local scoring
19Local scores have been developed to provide a measure of the quality of fit for different parts of a model. While model building and refining a fitted model to a map, the quality of the fit is rarely homogeneous: certain regions are better fitted to the map, and the map itself may not resolve all features with the same resolution (Cardone et al., 2013). Local scores are therefore paramount to discover and understand which regions should be the focus of further refinement. We present below two local scores present in TEMPy2.
20The segment-based cross-correlation coefficient (SCCC) is a local measure that can be applied at any level, for example domain, subdomain and secondary-structure element. The segment-based Mander's overlap coefficient (SMOC), on the other hand, is a correlation measure at the residue level only. SCCC may provide better results at lower resolution or for maps that are significantly different, while SMOC may be better for higher resolution maps or to compare similar maps .
21A correlation matrix of the different local scores has been obtained for structure and models generated during the CASP13 competition, including SCCC, SMOC, EMRinger and other existing local scores (see Fig. 3 of Kryshtafovych et al., 2019).
Segment-based cross-correlation coefficient (SCCC).
22The SCCC provides a measure of the quality of fit of different segments (Pandurangan et al., 2014).
23This can be useful to identify segments that require better fitting in the density and could be refined using flexible fitting approaches (Joseph et al., 2016).
Segment-based Mander's overlap coefficient
24(SMOC). The SMOC score gives a sequence-based local estimate of the fit quality of an atomic model to a map (Joseph et al., 2016). The algorithm computes Mander's overlap coefficient over the local region around each residue.
25Two variants are available.
26(i) In SMOC f the local region encompasses all voxels covered by residues in a sequence window centred at the residue of interest. The size of the window can be adjusted based on the map resolution.
27(ii) In SMOC d the local region covers voxels within a distance from atoms of a residue. The distance is automatically adjusted based on the map resolution. This recently introduced variant is included in the current update.
Unit tests
28For any evolving scientific package that is designed to handle and analyse data, it is important to ensure the correctness and self-consistency of the produced results as code improvements and new functionalities are introduced. We have introduced thorough automated checks in our code base, in the form of unit tests for most routines, as well as more complex, full-fledged practical tests using input data. 16 of the 36 modules have full coverage and 28 have partial coverage, with a per-function coverage of 34%.
Python version change
29As Python version 2 has now been deprecated (https:// www.python.org/doc/sunset-python-2/), it is important to ensure that newer code can be developed that still makes use of TEMPy2. Therefore, we have moved the code base to Python version 3. While the syntaxes of both are highly similar, subtle changes may cascade, causing errors in the data handling. The unit tests we have incorporated have allowed us to check and adjust the code accordingly, and ensure consistent handling across version changes, for example by making sure that an optimization in the CCC calculation does not change the values returned, or that a change in map loading results in the same voxel values as before.
Input data
30The Protein Data Bank (PDB; Burley et al., 2019) has issued recommendations to move to the newer, less ambiguous mmCIF format to store and manipulate structural data A generic pipeline that makes use of TEMPy2 routines from most modules. Not shown are the initial loading of the map and structure object from the protein and maps modules, as well as the internal use of the math module.
Figure 4
31Change in CCC during a global optimization run. The blue line shows the highest CCC conformation found, with the orange dots showing the CCC of the trial conformation sampled during the run. (Adams et al., 2019). The current version of TEMPy2 now handles both the legacy PDB format as well as the newer CIF data.
32Similarly, thorough checking has been conducted to ensure near-complete compliance with the 2014 norm for the MRC format produced by CCP-EM (Cheng et al., 2015).
332.5.1. Compression. The map data used in cryo-EM can occupy a large amount of disk space and are often stored and provided in a compressed format. To make it more practical to handle these data, TEMPy2 has been rewritten to natively handle gzip compression and decompression, allowing those files to be manipulated without prior manual decompression or requiring recompression after manipulation with TEMPy2.
Workflow examples
34The different routines within TEMPy2 are mostly independent and can be combined in any user-defined way, although they tend to generate and manipulate objects that are most easily created by the input/output routines from within TEMPy2 (Fig. 3). To further motivate and clarify the potential uses for these routines, we now provide detailed, concrete examples.
Map-to-map alignment
35Optimizing the alignment between two maps is an important task, although often hidden within a larger pipeline. The optimization is usually carried out with respect to a given scoring function, such as those described previously.
36TEMPy2 contains both local and global optimization routines. A local optimization routine iteratively improves upon a given initial state until no further improvement can be made. This is usually relatively quick (for example, the optimization of the position and orientation of a 36 Â 27 Â 22 voxel map with respect to a reference map takes 16.3 s for 100 steps on a single core of a 2.9 GHz Intel i9 processor; this can be invoked with the local_align.py script and two maps). Two new local optimization routines have been implemented in TEMPy2: a Monte Carlo search, with a small step size, and an expectationmaximization search. Global optimization will usually involve testing a (large) number of starting points, potentially running a local optimization and then returning the best found solution. For global optimization two options are available: the previously implemented genetic algorithm, -TEMPy , which is presented further in detail below, and a new quasi-Monte Carlo scheme that generates samples across the entire search space without producing repeated points. While similar to a grid search, it does not require a grid level to be provided. The global optimization process can be slower than a local optimization, although it is less reliant on a good initial starting point. Both types of searches and combinations of them are possible with TEMPy2. By default, we run a fast initial global search and then perform a local search afterwards. Fig. 4 provides an example of the change in CCC during a global search.
37The local Monte Carlo optimization routine is based on a standard Metropolis criterion (Metropolis et al., 1953), by default using CCC. Starting from an initial position, the CCC with respect to the reference map is computed and optimized according to this criterion (Cragnolini et al., in preparation).
38The expectation-maximization scheme proceeds by iteratively computing the most likely position of the map centre, Evolution of the C r.m.s.d. of the trial conformations in the population. The C r.m.s.d. is computed against the correct conformation, which is not available during the optimization run. The fit quality during optimization is evaluated using the CCC.
39assuming the map to be optimized as an estimate of the reference map (Kawabata, 2008).
Difference map
40When two proteins have been resolved, for example with or without a ligand present, it is useful to characterize the difference in density resulting from the change. To do this, a method is needed to compute this difference between maps. This is usually performed after map-to-map fitting as described above. The maps are first scaled based on their resolution-dependent amplitude falloffs and the difference is then calculated (Joseph et al., 2020). Fig. 5 shows a difference-mapping example generated from PDB entry 6kle with and without the presence of a ligand. The difference between the two maps helps to identify the position and shape of a ligand and its interaction pattern (Locke et al., 2017;Peñ a et al., 2020). The difference-map protocol can identify larger differences between structures, such as conformational changes.
Map-structure fit optimization
41To better understand the biochemical nature of a system of interest, a known or pre-calculated atomistic model is often fitted within a cryo-EM density map (unless the atomic positions can be determined directly from the density). The fitting task is important to ensure that the model properly matches the features of the map. TEMPy2 incorporates several routines that can be used together to compute and optimize the fit between such a map and model. Firstly, a map is obtained from the model by computing the sum of intensities of Gaussian functions centred on each atom in the model, with an appropriate spread (a combined effect of the B factor, sigma factor and resolution) and maximum intensity (corresponding to the electronic number of the atom). The optimization then proceeds with the same protocol as outlined for a map-to-map optimization.
c-TEMPy
42-TEMPy is an optimization method designed to produce assemblies of multi-component protein systems that best fit to a given map. A genetic algorithm is used to refine the search and eventually produce well fitted models . The gammatempy.py script can be invoked to run a similar fitting procedure starting from a given map and structure.
43An example of the change in the C r.m.s.d. of the fitted components during optimization with respect to the corresponding crystal structure (PDB entry 1cs4) is shown in Fig. 6. An iterative improvement of the fit of the generated models with respect to the map is apparent, with worse models being eliminated and better models being kept and improved in each generation.
Model assessment
44Assuming that we have a model fitted within a map (for example using the routines presented above or given as an input from another source), we may be interested in quantifying not only the global fit (Fig. 6) but also its local (a) SMOC f profile computed for chain C of RNA polymerase III (PDB entry 5fj8) against the experimentally determined map (EMDB entry EMD-3178) (Hoffmann et al., 2015) before (blue) and after (orange) optimization. Regions of significant changes are shaded and numbered. (b, c) Deposited (left) and optimized (right) structures of chain O, aligned with the map, coloured by SMOC score. Blue represents higher scores; red represents lower scores. The circled regions correspond to those in (a). quality. Fig. 7 illustrates the quality of fit of two conformations (the deposited structure and an optimized structure refined with Flex-EM; Topf et al., 2008) computed with SMOC f on chain O of RNA polymerase III (PDB entry 5fj8) against the experimentally determined map (EMDB entry EMD-3178) (Hoffmann et al., 2015). The sequence-based score shows how the fit quality has changed across different regions of the chain before (blue) and after (orange) optimization. A similar profile could be obtained with SCCC rather than SMOC. The score_smoc.py script can be invoked to run a similar analysis on a structure and map, or the SMOC method of the scoring module can be used to the same effect programmatically in Python.
Integration
45CCP-EM (Burnley et al., 2017) provides a software suite integrating many popular cryo-EM tools in a common interface. The following TEMPy2 routines are available through the suite: CCC, MI, SCCC, SMOC d , SMOC f and difference maps.
Conclusion
46In this manuscript, we have presented recent advances in the TEMPy2 package and workflows illustrating its use. TEMPy2 allows a user to easily load maps and structures, and perform a variety of map and model processing, optimization and validation tasks that can be entirely customized. The Python package and class structure can be further extended to develop code on top of the core routines of TEMPy2, or higher level functions can be used for more routine tasks. The new version of the software provides stronger testing to ensure consistency of results, as well as methodological developments to improve and assess the quality of the fit of structure to maps. Documentation and code are available to download at http://tempy.ismb.lon.ac.uk and include a set of examples.
참고문헌 30건
- <i>TEMPy</i>: a Python library for assessment of three-dimensional electron microscopy density fits Journal of Applied Crystallography · Wiley · 2015 10.1107/s1600576715010092
- Combined approaches to flexible fitting and assessment in virus capsids undergoing conformational change Journal of Structural Biology · Elsevier BV · 2013 10.1016/j.jsb.2013.12.003
- Scoring functions for cryoEM density fitting Journal of Structural Biology · Elsevier BV · 2011 10.1016/j.jsb.2011.01.012
- One number does not fit all: Mapping local variations in resolution in cryo-EM reconstructions Journal of Structural Biology · Elsevier BV · 2013 10.1016/j.jsb.2013.08.002
- Multiple Subunit Fitting into a Low-Resolution Density Map of a Macromolecular Complex Using a Gaussian Mixture Model Biophysical Journal · Elsevier BV · 2008 10.1529/biophysj.108.137125
- The Resolution Revolution Science · American Association for the Advancement of Science · 2014 10.1126/science.1251652
- High-resolution noise substitution to measure overfitting and validate resolution in 3D structure determination by single particle electron cryomicroscopy Ultramicroscopy · Elsevier BV · 2013 10.1016/j.ultramic.2013.06.004
- Equation of State Calculations by Fast Computing Machines The Journal of Chemical Physics · American Institute of Physics · 1953 10.1063/1.1699114
- MRC2014: Extensions to the MRC format header for electron cryo-microscopy and tomography Journal of Structural Biology · Elsevier BV · 2015 10.1016/j.jsb.2015.04.002
- Protein Structure Fitting and Refinement Guided by Cryo-EM Density Structure · Elsevier BV · 2008 10.1016/j.str.2007.11.016
- Docking structures of domains into maps from cryo-electron microscopy using local correlation Acta Crystallographica Section D Biological Crystallography · Wiley · 2000 10.1107/s0907444900010908
- Cryo‐EM model validation using independent map reconstructions Protein Science · Wiley · 2013 10.1002/pro.2267
- γ-TEMPy: Simultaneous Fitting of Components in 3D-EM Maps of Their Assembly Using a Genetic Algorithm Structure · Elsevier BV · 2015 10.1016/j.str.2015.10.013
- Molecular structures of unbound and transcribing RNA polymerase III Nature · Nature Portfolio · 2015 10.1038/nature16143
- Refinement of atomic models in high resolution EM reconstructions using Flex-EM and local assessment Methods · Elsevier BV · 2016 10.1016/j.ymeth.2016.03.007
- Scipion: A software framework toward integration, reproducibility and validation in 3D electron microscopy Journal of Structural Biology · Elsevier BV · 2016 10.1016/j.jsb.2016.04.010
- Single particle electron cryomicroscopy: trends, issues and future perspective Quarterly Reviews of Biophysics · Cambridge University Press · 2016 10.1017/s0033583516000068
- Improved metrics for comparing structures of macromolecular assemblies determined by 3D electron-microscopy Journal of Structural Biology · Elsevier BV · 2017 10.1016/j.jsb.2017.05.007
- Recent developments in the<i>CCP-EM</i>software suite Acta Crystallographica Section D Structural Biology · 2017 10.1107/s2059798317007859
- A structural model for microtubule minus-end recognition and protection by CAMSAP proteins Nature Structural & Molecular Biology · Nature Portfolio · 2017 10.1038/nsmb.3483
- Structural basis of human kinesin-8 function and inhibition Proceedings of the National Academy of Sciences · National Academy of Sciences · 2017 10.1073/pnas.1712169114
- Cryo-EM structure of an early precursor of large ribosomal subunit reveals a half-assembled intermediate Protein & Cell · Springer Science+Business Media · 2018 10.1007/s13238-018-0526-7
- Integrative structure and functional anatomy of a nuclear pore complex Nature · Nature Portfolio · 2018 10.1038/nature26003
- RCSB Protein Data Bank: biological macromolecular structures enabling research and education in fundamental biology, biomedicine, biotechnology and energy Nucleic Acids Research · Oxford University Press · 2018 10.1093/nar/gky1004
- Announcing mandatory submission of PDBx/mmCIF format files for crystallographic depositions to the Protein Data Bank (PDB) Acta Crystallographica Section D Structural Biology · 2019 10.1107/s2059798319004522
- Good enough practices in scientific computing PLoS Computational Biology · Public Library of Science · 2017 10.1371/journal.pcbi.1005510
- Cryo‐electron microscopy targets in CASP13: Overview and evaluation of results Proteins Structure Function and Bioinformatics · Wiley · 2019 10.1002/prot.25817
- Comparing Cryo-EM Reconstructions and Validating Atomic Model Fit Using Difference Maps Journal of Chemical Information and Modeling · American Chemical Society · 2020 10.1021/acs.jcim.9b01103
- Structure of Microtubule-Trapped Human Kinesin-5 and Its Mechanism of Inhibition Revealed Using Cryoelectron Microscopy Structure · Elsevier BV · 2020 10.1016/j.str.2020.01.013
- Cryo-EM structure of the 2019-nCoV spike in the prefusion conformation Science · American Association for the Advancement of Science · 2020 10.1126/science.abb2507