Literature DB >> 30420522

Barnaba: software for analysis of nucleic acid structures and trajectories.

Sandro Bottaro1,2, Giovanni Bussi2, Giovanni Pinamonti2,3, Sabine Reißer2, Wouter Boomsma4, Kresten Lindorff-Larsen1.   

Abstract

RNA molecules are highly dynamic systems characterized by a complex interplay between sequence, structure, dynamics, and function. Molecular simulations can potentially provide powerful insights into the nature of these relationships. The analysis of structures and molecular trajectories of nucleic acids can be nontrivial because it requires processing very high-dimensional data that are not easy to visualize and interpret. Here we introduce Barnaba, a Python library aimed at facilitating the analysis of nucleic acid structures and molecular simulations. The software consists of a variety of analysis tools that allow the user to (i) calculate distances between three-dimensional structures using different metrics, (ii) back-calculate experimental data from three-dimensional structures, (iii) perform cluster analysis and dimensionality reductions, (iv) search three-dimensional motifs in PDB structures and trajectories, and (v) construct elastic network models for nucleic acids and nucleic acids-protein complexes. In addition, Barnaba makes it possible to calculate torsion angles, pucker conformations, and to detect base-pairing/base-stacking interactions. Barnaba produces graphics that conveniently visualize both extended secondary structure and dynamics for a set of molecular conformations. The software is available as a command-line tool as well as a library, and supports a variety of file formats such as PDB, dcd, and xtc files. Source code, documentation, and examples are freely available at https://github.com/srnas/barnaba under GNU GPLv3 license.
© 2019 Bottaro et al.; Published by Cold Spring Harbor Laboratory Press for the RNA Society.

Keywords:  MD trajectories; RNA 3D structure; molecular dynamics

Mesh:

Substances:

Year:  2018        PMID: 30420522      PMCID: PMC6348988          DOI: 10.1261/rna.067678.118

Source DB:  PubMed          Journal:  RNA        ISSN: 1355-8382            Impact factor:   4.942


INTRODUCTION

Despite their simple four-letter alphabet, RNA molecules can adopt amazingly complex three-dimensional architectures. RNA structure is often described in terms of a few simple degrees of freedom such as backbone torsion angles, sugar puckering, base–base interactions, and helical parameters (Dickerson 1989; Leontis and Westhof 2001; Richardson et al. 2008). Given a known three-dimensional structure, the calculation of these properties can be accurately performed using available tools such as MC-annotate (Gendron et al. 2001), 3DNA (Lu and Olson 2008), fr3D (Sarver et al. 2008), or DSSR (Lu et al. 2015). These software packages allow for a detailed description of experimentally derived RNA structures, but are less suitable for analyzing and comparing large numbers of three-dimensional conformations. The importance of large-scale analysis tools is critical when considering that many RNA molecules are not static, but highly dynamic entities, and multiple conformations are required to describe their properties. In molecular dynamics (MD) simulations (Šponer et al. 2018), for example, it is often necessary to analyze several hundreds of thousands of structures. The analysis and comparison of results from structure–prediction algorithms poses similar challenges (Dawson and Bujnicki 2016; Magnus 2016; Miao et al. 2017). In order to rationalize and generate scientific insights, it is therefore fundamental to use specific analysis and visualization tools that can handle such highly dimensional data. This need has been long recognized in the field of protein simulations, leading to the development of several software packages for the analysis of MD trajectories (Michaud-Agrawal et al. 2011; McGibbon et al. 2015; Tiberti et al. 2015). While these software packages can be in principle used to analyze generic simulations, they do not support the calculation of nucleic acids-specific quantities out of the box. Notable exceptions are CPPTRAJ (Roe and Cheatham 2013) and the driver tool in PLUMED (Tribello et al. 2014), which support the calculation of nucleic acids structural properties, among other features. A limited number of software packages have been developed with the main purpose of analyzing simulations of nucleic acids. Curves+ (Lavery et al. 2009) calculates parameters in DNA/RNA double helices as well as torsion backbone angles. do3 (Kumar and Grubmüller 2015) extends the capability of the 3DNA package to calculate several base pairs/helical parameters and torsion angles from GROMACS (Abraham et al. 2015) trajectories. The detection of hydrogen bonds/stacking in simulations and the identification of motifs such as helices, junctions, loops, and pseudoknots can be performed using the Motif Identifier for Nucleic acids Trajectory (MINT) software (Górska et al. 2015). Here we present Barnaba, a Python library to analyze nucleic acid structures and trajectories. The library contains routines to calculate various structural parameters (e.g., distances, torsion angles, base-pair, and base-stacking detection), to perform dimensionality reduction and clustering, to back-calculate experimental quantities from structures, and to construct elastic network models (ENM). Barnaba utilizes the capabilities of MDTraj (McGibbon et al. 2015) for reading/writing trajectory files, and thus supports many different formats, including PDB, dcd, xtc, and trr. In this paper, we show the capabilities of Barnaba by analyzing a long MD simulation of an RNA stem–loop structure. We first calculate distances from a reference frame. Second, we consider a subset of dihedral angles and compare 3J scalar couplings calculated from simulations with nuclear magnetic resonance (NMR) data. We then perform a cluster analysis of the trajectory, identifying a number of clusters that are visualized using a dynamic secondary structure representation. Finally, we search for structural motifs similar to cluster centroids in the entire protein data bank (PDB) database. In addition, we show how to construct an elastic network model (ENM) of RNA molecules and protein–nucleic acid complexes with Barnaba, and how to use it to estimate RNA local fluctuations. Source code and documentation are freely available at https://github.com/srnas/barnaba under GNU GPLv3 license.

RESULTS

First we provide a list of tools for the analysis of nucleic acid three-dimensional structures supported in Barnaba. All the calculations can be executed from the command-line, as described in Supplemental Material 1. For each functionality, practical examples are provided in Supplemental Material and in the documentation: Calculate the eRMSD (Bottaro et al. 2014) between structures (Supplemental Material 2). Calculate the heavy-atom/backbone-only root mean squared distance (RMSD) after optimal superposition (Kabsch 1976) between structures (Supplemental Material 2). Calculate the relative position and orientations between nucleobases (Supplemental Material 3). Identify base-pairing and base-stacking interactions in structures and trajectories (Supplemental Material 4). Calculate backbone, sugar, and pseudorotation torsion angles (Supplemental Material 5). Back-calculate 3J scalar couplings from structures (Supplemental Material 6). Search for single-stranded and double-stranded three-dimensional motifs within PDB structures or trajectories (Supplemental Material 7, 8). Extract fragments with a given sequence from PDB structures. This can be useful to investigate the conformational variability of RNA at a fixed sequence or to perform a stop-motion modeling (SMM) analysis (Supplemental Material 9; Bottaro et al. 2016b). Perform cluster analysis of RNA structures using the eRMSD (Supplemental Material 10). Generate “dynamic secondary structure” figures that display the extended secondary structure, together with the population of each interaction within a collection of three-dimensional structures (Supplemental Material 11). Construct ENM of RNA molecules and protein–nucleic acid complexes (Supplemental Material 12). Calculate the scoring function eSCORE (Supplemental Material 13; Bottaro et al. 2014; Poblete et al. 2018). In the following, we present the different features of Barnaba by analyzing a 180 µsec long simulation of an RNA 14-mers with sequence GGCACUUCGGUGCC performed by Tan et al. (2018) using a simulated tempering protocol where the temperature is used as a dynamic variable to enhance sampling. Experimentally, this sequence is known to form an A-form stem composed of five consecutive Watson–Crick base pairs, capped by a UUCG tetraloop (Fig. 1A). In order to make the results described in this paper fully reproducible, we provide in Supplemental Material 14 the Jupyter Notebooks to conduct the analyses and to produce the figures described below.
FIGURE 1.

(A) Extended secondary structure representation of the UUCG stem–loop. Watson–Crick base pairs are shown in blue; trans-Sugar-Watson base pair between U6 and G9 is shown in red. (B) RMSD from native over time of the UUCG simulation. The corresponding histogram is shown in the right panel. The dashed line at RMSD = 0.23 nm separates native-like from nonnative-like structures. The colors indicate the presence of native base–base interactions, as shown in the secondary structure representation. Structures where all Watson–Crick interactions in the stem and the trans-Sugar-Watson base pair in loop are formed are shown in red. Blue indicates structures where only the stem is formed. All other conformations are shown in gray. (C) eRMSD from native structure over time. Color scheme is identical to panel B. Dashed line at eRMSD = 0.7 separates native-like from nonnative conformations.

(A) Extended secondary structure representation of the UUCG stem–loop. Watson–Crick base pairs are shown in blue; trans-Sugar-Watson base pair between U6 and G9 is shown in red. (B) RMSD from native over time of the UUCG simulation. The corresponding histogram is shown in the right panel. The dashed line at RMSD = 0.23 nm separates native-like from nonnative-like structures. The colors indicate the presence of native base–base interactions, as shown in the secondary structure representation. Structures where all Watson–Crick interactions in the stem and the trans-Sugar-Watson base pair in loop are formed are shown in red. Blue indicates structures where only the stem is formed. All other conformations are shown in gray. (C) eRMSD from native structure over time. Color scheme is identical to panel B. Dashed line at eRMSD = 0.7 separates native-like from nonnative conformations.

RMSD, eRMSD calculation, and detection of base–base interactions

We start the analysis by calculating the distance of each frame in the simulation from the reference experimental structure (PDB code 2KOC, Nozinovic et al. 2010) and detecting base–base interactions. Figure 1B shows the time series of heavy-atom RMSD after optimal superposition (Kabsch 1976). During this simulation, multiple folding events occur: In line with previous analyses (Tan et al. 2018), we thus observe both structures close to the reference as well as unfolded/misfolded ones. We identify the base–base interactions in each frame using the annotation functionality in Barnaba (see Materials and Methods). Structures where the stem is completely formed together with the native trans-sugar-Watson (tSW) interaction between U6 and G9 in the loop are shown in red. Blue points indicate structures in which all base pairs in the stem, but not in the loop, are present. All the other structures are colored in gray. From the histogram in Figure 1B, it can be seen that RMSD < 0.23 nm roughly corresponds to native-like structures. A second sharp peak around 0.3 nm corresponds to structures in which only the stem is correctly formed. All other conformations have RMSD larger than 0.6 nm. One of the features of Barnaba is the possibility to calculate the eRMSD (Bottaro et al. 2014). The eRMSD only considers the relative arrangements between nucleobases in a molecule, and quantifies the differences in the interaction network between two structures. In this perspective, eRMSD is similar to the Interaction Fidelity Network (Parisien et al. 2009) that quantifies the discrepancy in the set of base-pairs and base-stacking interactions. The eRMSD, however, is a continuous, symmetric, positive definite metric distance that satisfies the triangular inequality. Additionally, it does not require detection of the interactions (annotation) and is hence particularly well suited for analyzing MD trajectories and unstructured RNA molecules. Figure 1C shows the eRMSD from native for the UUCG simulation. We notice that, similarly to the RMSD case, the histogram displays three main peaks. In this case, the correspondence between peaks and structures can be readily identified: when eRMSD < 0.7, native stem and loop are formed; if 0.7 < eRMSD < 1.3, stem is formed but the loop is in a nonnative configuration. Other structures typically have eRMSD > 1.3. We observe that the separation between the two main peaks (native structure, red; native stem, blue) is sharper in Figure 1C, confirming that eRMSD is more suitable than RMSD to distinguish structures with different base-pairings (Bottaro et al. 2014). Note that a significant number of low-RMSD/eRMSD structures lack one or more native base-pair interactions, and are therefore shown in gray. This is because the detection of base–base interactions critically depends on a set of geometrical parameters (e.g., distance, base–base orientation, etc.) that were calibrated on high-resolution structures. The criteria used in Barnaba (as well as the ones used in other annotation tools) may not always be accurate when considering intermediate states and partially formed interactions that are often observed in molecular simulations (Lemieux and Major 2002).

Transition paths

We now analyze the folding/unfolding paths in order to understand what is the nature and order of events leading to folding. In particular, we consider the formation of the native base pairs in the stem and the rotameric state of the χ angle in G9 that is related to the formation of the Sugar-Watson base pair between G9 and U6. Following Lindorff-Larsen et al. (2011), we extract the transition paths (TP) from the simulation, resulting in four folding and four unfolding events. The time evolution for one of the folding events is shown in Figure 2A,B. In the unfolded state, no base pairs are formed and χ freely fluctuates from anti to syn. The three base pairs at the termini form early during the TP, followed by the other two Watson–Crick base pairs. When the native state is reached, all native base pairs are formed, and χ is in syn conformation.
FIGURE 2.

Formation of base pairs and G9-χ angle during RNA folding. (A) Formation of the five WC base pairs over time and of the tSW interaction during one of the folding events. Green indicates that the interaction is formed; gray, not formed. Nonnative interactions are shown in red. (B) Time evolution of the χ angle in G9 for the same folding event shown in panel A. (C) Order of events relative to the formation of the native base pairs and transition to syn. High values correspond to early formation of the corresponding quantity during a folding event. The average over each TP is shown as a gray dot, and the average over the eight TPs is shown as a red bar.

Formation of base pairs and G9-χ angle during RNA folding. (A) Formation of the five WC base pairs over time and of the tSW interaction during one of the folding events. Green indicates that the interaction is formed; gray, not formed. Nonnative interactions are shown in red. (B) Time evolution of the χ angle in G9 for the same folding event shown in panel A. (C) Order of events relative to the formation of the native base pairs and transition to syn. High values correspond to early formation of the corresponding quantity during a folding event. The average over each TP is shown as a gray dot, and the average over the eight TPs is shown as a red bar. The order of the events can be quantified by calculating the average presence of base pair (assuming values of 1 = formed or 0 = not formed) and the normalized distance from syn conformation q = 0.5(1 + cos (χ − 63°)). Quantities that reach a native-like value (i.e., one) early during folding have a high value, and those that form late get a low value (Lindorff-Larsen et al. 2011). In Figure 2C, we can see that the Watson–Crick 1–14, 2–13, 3–12 form very early in folding, followed by 4–11 and 3–10.The transition of the χ angle to syn occurs at a later stage, and folding is finally achieved with the formation of the tSW base pair. The TP analysis is here performed for illustrative purposes. In real applications, it is important to take into consideration a number of aspects, such as the quality of the force-field, the assumption that the simulated tempering trajectory is compatible with the real folding pathway, and the employed criteria defining folded/unfolded states (Lindorff-Larsen et al. 2011). Note also that this type of analysis is carried out to describe the properties on the energy barrier, while we here describe the properties of the intermediate state.

Torsion angle and 3J scalar coupling calculations

Another important class of structural parameters is torsion angles. Similarly to other software, Barnaba contains routines to calculate backbone torsion angles (α, β, γ, ε, ζ), the glycosidic angle χ, and the pseudorotation sugar parameters (Altona and Sundaralingam 1972; Rao et al. 1981). In Figure 3, left panels, we plot the probability distributions of four angles (β, γ, δ, ε) for three different residues: U6, U7, and G9. We can see from the distribution of γ angles that U6 and U7 mainly populate the gauche+ rotameric state (0° < γ ≤ 120°), while G9 significantly populates the trans state as well (120° < γ ≤ 240°). Different rotameric states can also be seen from the distribution of δ angles (C2′/C3′-endo) and ε, which are related to BI/BII states. Here, we consider the same trajectory of the UUCG tetraloops described above and removed all the unfolded structures, i.e., structures with eRMSD from native larger than 1.5 (≈6000 out of 20,000), because we below compare to experiments under conditions where these are absent.
FIGURE 3.

(Left panels) Torsion angle distribution for β, γ, δ, and ε in residues U6, U7, and G9. Right panels show the experimental 3J couplings (crosses) and the calculated value from simulation (dots). The error bars indicate the standard error of the mean calculated over four blocks.

(Left panels) Torsion angle distribution for β, γ, δ, and ε in residues U6, U7, and G9. Right panels show the experimental 3J couplings (crosses) and the calculated value from simulation (dots). The error bars indicate the standard error of the mean calculated over four blocks. In this example, we chose these specific torsion angles because their distribution is related to available 3J couplings experimental data from NMR spectroscopy. The magnitude of 3J coupling depends on the distance between atoms connected by three bonds, and thus on the corresponding dihedral angle distribution. The dependence between angle θ and coupling 3J can be calculated via Karplus equations: where A, B, C are empirical parameters. Couplings corresponding to different angles can be calculated with Barnaba. H1′-H2′, H2′-H3′, H3′-H4′ (sugar conformation), H5′-P, H5″-P, C4-P (β), H4′-H5′, H4′-H5″ (γ), H3-P(+1), C4-P(+1) (ε), H1′-C8/C6, and H1′-C4/C2 (χ). The complete list of Karplus parameters is reported in the Materials and Methods section, and may be changed within Barnaba. Figure 3, right panels, shows the back-calculated average 3J couplings and the corresponding experimental value reported in Nozinovic et al. (2010). Note that in some cases, experiments and simulations do not agree: This is because the simulation was performed at different temperatures using a simulated tempering protocol, and therefore the comparison between simulations and experiments is here made for illustrative purposes only. Significant discrepancies could originate from errors introduced by the Karplus equations that can be as large as 2 Hz (Bottaro et al. 2018).

Cluster analysis

The structures within a trajectory can be grouped into clusters of mutually similar conformations, to understand which different states are visited and how often. For clustering we use the DBSCAN (Ester et al. 1996) algorithm with ε = 0.12 and min samples = 70 (Bottaro and Lindorff-Larsen 2017). As in the previous example, structures with eRMSD > 1.5 from native are discarded. Figure 4A shows the trajectory projected onto the first two components of a principal component analysis done on the collection of G-vectors (Bottaro and Lindorff-Larsen 2017). Circles show the resulting nine clusters, whose radius is proportional to the square root of their size. The 5500 structures (40%) that were not assigned to any cluster are shown as gray dots. For each cluster, we identify its centroid, here defined as the structure with the lowest average distance from all other cluster members.
FIGURE 4.

Example of a cluster analysis on the UUCG stem–loop trajectory. (A) Principal component analysis on the collection of G-vectors (Bottaro and Lindorff-Larsen 2017). Each circle corresponds to a cluster; gray dots show unassigned structures. Circles are centered in the centroid positions, and the radii are proportional to the square root of the population. The percentage of explained variance of the first two components is indicated on the axes. (B) Box-plots reporting eRMSD (top) and RMSD (bottom) from cluster centroids. Lower/upper hinges correspond to the first and third quartiles, while whiskers indicate lowest/highest data within 1.5 interquartile range. Data beyond the end of the whiskers are shown individually. The percentages indicate the cluster population. (C) Dynamic secondary structure representation of the 20 native NMR conformers (PDB 2KOC) and of the first three clusters. The extended secondary structure annotation follows the Leontis–Westhof classification. The color scheme shows the fraction of frames within a cluster for which the interaction is formed.

Example of a cluster analysis on the UUCG stem–loop trajectory. (A) Principal component analysis on the collection of G-vectors (Bottaro and Lindorff-Larsen 2017). Each circle corresponds to a cluster; gray dots show unassigned structures. Circles are centered in the centroid positions, and the radii are proportional to the square root of the population. The percentage of explained variance of the first two components is indicated on the axes. (B) Box-plots reporting eRMSD (top) and RMSD (bottom) from cluster centroids. Lower/upper hinges correspond to the first and third quartiles, while whiskers indicate lowest/highest data within 1.5 interquartile range. Data beyond the end of the whiskers are shown individually. The percentages indicate the cluster population. (C) Dynamic secondary structure representation of the 20 native NMR conformers (PDB 2KOC) and of the first three clusters. The extended secondary structure annotation follows the Leontis–Westhof classification. The color scheme shows the fraction of frames within a cluster for which the interaction is formed. Ideally, clusters should be compact enough so that the centroid can be considered as a representative structure. This information is shown in the box-plot in Figure 4B, which reports the distances (eRMSD and RMSD, as labeled) between centroids and cluster members. At the same time, structures within clusters are not all identical to one another. In order to visualize the intracluster variability, we have found it useful to introduce a “dynamic secondary structure” representation. In essence, we detect base-stacking/base-pair interactions in all structures within a cluster, and calculate the fraction of frames in which each interaction is present. The population of each interaction is shown by coloring the extended secondary structure representation (Fig. 4C). This representation has some analogy with the “dot plot” representation used to display secondary structure ensembles obtained using nearest neighbor models that reports the predicted probability of individual base pairs (Jacobson and Zuker 1993). We can see that the first three clusters correspond to three different tetraloop structures. In cluster 1, the U6-G9 tSW base pair is present, together with the U6-C8 stacking typical of the native UUCG tetraloop structure. In cluster 2, no U6-G9 base pair is present, while in cluster 3 we observe stacking between U6-U7-C8-G9, as also described in the next section. In all clusters, the population of the terminal base pairs and stacking is lower than one, indicating the presence of base fraying. In our experience, cluster analysis is useful to understand and qualitatively visualize the different types of structures in a simulation. In many practical cases, however, the number of clusters and their population may differ depending on the employed clustering algorithm and associated parameters. Clustering may not even be meaningful when considering highly unstructured systems such as long single-stranded nucleic acids lacking secondary structures (Chen et al. 2012).

Motif search

Barnaba can be used to search for structural motifs in a PDB file or trajectory using the eRMSD distance. In the following example, we illustrate this feature by taking the centroids of the first three clusters described above and search for similar structures within the PDB database. In order to focus on the loop structure, rather than on stem variability, we consider the tetraloop and the two closing base pairs for the search (residues 4–11 in Fig. 1A). The search is performed against all RNA-containing structures in the PDB database (retrieved May 4, 2018, resolution 3.5 Å or better). The database considered here consists of 3067 X-ray, 652 NMR, and 177 cryo electron-microscopy (EM) structures. Note that the search is purely based on the geometrical arrangement of nucleobases, without restriction on the sequence, a particular feature that is also enabled by the use of eRMSD. Figure 5 shows the cluster centroids (gray) and the closest motif match, i.e., the lowest eRMSD substructure in the PDB database (orange). The eRMSD between the cluster centroid and the best match are indicated, together with the associated PDB code. Centroid 1 corresponds to the canonical UUCG tetraloop structure, with the signature tSW interaction between U6-G9 and G9 in syn conformation. Note that the eRMSD between centroid and best match is small (0.25), indicating that simulated and experimental structures are highly similar. Cluster 2 corresponds to a structure in which the stem is formed, C8 is stacked on top of U6, and G9 is bulged out. Centroid 3 features four consecutive stackings between U6-U7-C8-G9-G10. Note that this latter structure is remarkably similar to the four-stack loop described in Bottaro and Lindorff-Larsen (2017).
FIGURE 5.

Motif search in PDB database. (Top panels) Centroids of the first three clusters (in gray) superimposed on the closest structures from the PDB database (orange). eRMSD between centroid and the best match are indicated, together with the associated PDB code. (Bottom panels) eRMSD distribution between centroid and substructures from PDB database. Note that different distributions are obtained for different clusters, meaning that the eRMSD threshold varies depending on the motif. Distances larger than eRMSD = 1 are not reported. The eRMSD threshold at 0.7 (centroids 1, 2) and 0.9 (centroid 3) is indicated as a dashed line.

Motif search in PDB database. (Top panels) Centroids of the first three clusters (in gray) superimposed on the closest structures from the PDB database (orange). eRMSD between centroid and the best match are indicated, together with the associated PDB code. (Bottom panels) eRMSD distribution between centroid and substructures from PDB database. Note that different distributions are obtained for different clusters, meaning that the eRMSD threshold varies depending on the motif. Distances larger than eRMSD = 1 are not reported. The eRMSD threshold at 0.7 (centroids 1, 2) and 0.9 (centroid 3) is indicated as a dashed line. As a rule of thumb, we consider as significant matches structures below 0.7 eRMSD, but there are cases in which it is worth considering structures in the 0.7–1.0 eRMSD range as well. More generally, it is useful to consider the histogram of all fragments with eRMSD below 1, as shown in Figure 5, bottom panels. This type of analysis makes it possible to identify a good threshold value, in correspondence to minima in the probability distributions. For example, there are no structures in the PDB with eRMSD lower than 0.7 for centroid 3. In this case, a value of 0.9 should be used instead. In this example, we performed a simple search of a structure from simulation against experimentally derived structures in the PDB database. In Barnaba, any arbitrary motif can be used as a query by providing a coordinate file with at least the position of C2, C4, and C6 atoms for each nucleotide. Searches with more complex motifs composed by two strands (e.g., K-turns, sarcin-ricin motifs, etc.) are also possible (Supplemental Material 8). Additionally, Barnaba allows for inserted bases, thereby identifying structural motifs with one or more bulged-out bases.

Elastic network models

Elastic network models (ENMs) are minimal computational models able to capture the dynamics of macromolecules at a small computational cost. They assume that the system can be represented as a set of beads connected by harmonic springs, each having rest length equal to the distance between the two beads it connects in a reference structure (usually, an experimental structure from the PDB). First introduced to analyze protein dynamics (Tirion 1996), ENMs are also applicable to structured RNA molecules (Bahar and Jernigan 1998; Setny and Zacharias 2013; Zimmermann and Jernigan 2014). Barnaba contains routines to construct ENM of nucleic acids and proteins, and, as a unique feature, makes it possible to calculate fluctuations between consecutive C2–C2 atoms. In a previous work (Pinamonti et al. 2015), we have shown this quantity to correlate with flexibility measurements performed with selective 2-hydroxyl acylation analyzed by primer extension (SHAPE) experiments (Merino et al. 2005). Here, we show an example of ENM analysis on two RNA molecules: the 174-nt sensing domain of the Thermotoga maritima lysine riboswitch (PDB ID: 3DIG), and the Escherichia coli 5S rRNA (PDB ID: 1C2X). We construct an all-atom ENM (AA-ENM), where each heavy atom is a bead, together with a cutoff radius of 7 Å. In Figure 6, we show the flexibility of the RNA molecules as predicted by the ENM (black) that can be qualitatively compared with the measured SHAPE reactivity (Hajdin et al. 2013) (orange).
FIGURE 6.

C2–C2 fluctuations as predicted by the ENM of lysine riboswitch (bottom panel) and 5S rRNA (top panel). SHAPE reactivity data from Hajdin et al. (2013) are shown for comparison. Pearson's correlation coefficient r between SHAPE data and ENM-predicted fluctuations is also indicated.

C2–C2 fluctuations as predicted by the ENM of lysine riboswitch (bottom panel) and 5S rRNA (top panel). SHAPE reactivity data from Hajdin et al. (2013) are shown for comparison. Pearson's correlation coefficient r between SHAPE data and ENM-predicted fluctuations is also indicated. The implementation of the ENM in Barnaba uses the sparse matrix package available in Scipy, which allows for significant speed-ups compared to the dense-matrix implementation. Figure 7 shows the execution time for constructing ENMs of biomolecules with sizes ranging from a few tens to several hundreds of nucleotides. Calculations were performed running Barnaba on a personal computer. This, combined with the significant memory saving granted by sparse matrices representation, makes it possible to easily compute the vibrational modes and the local flexibility of large RNA systems such as ribosomal structures using a limited amount of computer resources.
FIGURE 7.

Execution time for the ENM calculation using sparse matrices (red) or dense matrices (yellow) on a 2.3 GHz Dual-Core Intel Core i5 processor, as a function of the number of residues in the RNA molecule. Results are shown both for sugar-base-phosphate (SBP) ENM (triangles) and all-atom-ENM (AA-ENM) (circles), as defined in Pinamonti et al. (2015). Left panel shows the time for the interaction matrix diagonalization only; right panel shows the total time including the calculation of C2–C2 fluctuations.

Execution time for the ENM calculation using sparse matrices (red) or dense matrices (yellow) on a 2.3 GHz Dual-Core Intel Core i5 processor, as a function of the number of residues in the RNA molecule. Results are shown both for sugar-base-phosphate (SBP) ENM (triangles) and all-atom-ENM (AA-ENM) (circles), as defined in Pinamonti et al. (2015). Left panel shows the time for the interaction matrix diagonalization only; right panel shows the total time including the calculation of C2–C2 fluctuations.

DISCUSSION

Many RNA molecules are highly dynamical entities that undergo conformational rearrangements during function. For this reason, it is becoming increasingly important to develop tools to analyze not only single structures, but also trajectories (ensembles) obtained from molecular simulations. In this paper we introduce software to facilitate the analysis of nucleic acids simulations. The program, called Barnaba, is available both as a Python library as well as a command-line tool. The output of the program is such that it can be easily used to calculate averages and probability distributions, or conveniently used as input to the many existing plotting and analysis libraries (e.g., Matplotlib, SKlearn) available in Python. Barnaba consists of a number of functions, and some of them implement standard calculations (RMSD, torsion angles, base-pairs, and base-stacking detection). A unique feature of Barnaba is the possibility to calculate the eRMSD. This metric has been successfully used in several contexts: for analyzing MD simulations (Kührová et al. 2016), as a biased collective variable in enhanced sampling simulations (Bottaro et al. 2016a; Yang et al. 2017; Poblete et al. 2018), to construct Markov state models (Pinamonti et al. 2017), and to cluster RNA tetraloop structures (Bottaro and Lindorff-Larsen 2017). In this paper we show the usefulness of this metric to monitor simulations over time, to perform cluster analysis, and to search for structural motifs within trajectories/structures. This last feature can be extremely useful to experimental structural biologists, as it makes it possible to efficiently search for arbitrary query motifs within the entire PDB database. For analyzing simulations and clusters, we have found it useful to introduce a dynamic secondary structure representation that recapitulates the variability of base-pair and base-stacking interactions within an ensemble. Another important feature of Barnaba is the possibility to back-calculate 3J scalar couplings from structures. This calculation is per se extremely simple. However, it can be difficult to obtain from the literature the different sets of Karplus parameters, and the calculation of the corresponding dihedral angles is error-prone. Finally, Barnaba contains a routine to construct ENMs of nucleic acid and protein systems and complexes. This is a useful, fast, and computationally cheap tool to predict the local dynamical properties of biomolecules, as well as the chain flexibility of RNA molecules.

MATERIALS AND METHODS

Implementation and availability

Barnaba is a Python library and command-line tool. It requires Python 2.7 or >3.3, Numpy, and Scipy libraries. Additionally, Barnaba requires MDTraj (http://mdtraj.org/) for manipulating structures and trajectories. Source code is freely available at https://github.com/srnas/barnaba under GNU GPLv3 license. The github repository contains documentation as well as a set of examples.

Relative position and orientation of nucleobases

For each nucleotide, a local coordinate system is set up in the center of C2, C4, and C6 atoms (Fig. 8). The x-axis points toward the C2 atom, and the y-axis in the direction of C4 (C/U) or C6 (A/G). The origin of the coordinates of nucleobase j in the reference system constructed on base i is the vector R = {x, y, z}. Note that |R| =|R| but R ≠R. The R is central in the definition of the eRMSD metric and of the annotation strategy described below.
FIGURE 8.

Definition of the local coordinate systems and of the vector R for purines and pyrimidines.

Definition of the local coordinate systems and of the vector R for purines and pyrimidines.

eRMSD

The eRMSD is a contact map-based distance, with the addition of a number of features that make it suitable for the comparison of nucleic acid structures. We briefly describe here the procedure, originally introduced in Bottaro et al. (2014). Given a three-dimensional structure α, one calculates Rα for all pairs of bases in a molecule. The position vectors are then rescaled as follows: with a = 5 Å and b = 3 Å. The rescaling effectively introduces an ellipsoidal anisotropy that is peculiar to base–base interactions. Given two structures, α and β, consisting of N residues, the eRMSD is calculated as G is a nonlinear function of defined as where and Θ is the Heaviside step function. Note that the function G has the following desirable properties: The default cutoff value is set to and can be changed within Barnaba. . . is a continuous function.

Annotation

A pair of bases i and j is considered for annotation only if and .

Stacking

The criteria for base stacking are the following: Here, and θ is the angle between the vectors normal to the planes of the two bases. Similarly to other annotation approaches (Gendron et al. 2001; Sarver et al. 2008; Waleń et al. 2014), we identify four different classes of stacking interactions according to the sign of the z-coordinates: We notice that, with this choice, consecutive base pairs with alternating purines and pyrimidines result in a cross-strand outward stacking (see, e.g., Fig. 1A). upward: (≫ or 3′–5′) if z > 0 and z < 0 downward: (≪ or 5′–3′) if z < 0 and z > 0 outward: (< > or 5′–5′) if z < 0 and z < 0 inward: (> < or 3′–3′) if z > 0 and z > 0

Base-pairing

Base pairs are classified according to the Leontis–Westhof nomenclature (Leontis and Westhof 2001), based on the observation that hydrogen bonding between RNA bases involves three distinct edges: Watson–Crick (W), Hoogsteeen (H), and sugar (S). An additional distinction is made according to the orientation with respect to the glycosidic bonds, in cis (c) or trans (t) orientation. In Barnaba, all nonstacked bases are considered base-paired if |θ| < 60° and there exists at least one hydrogen bond, calculated as the number of donor–acceptor pairs with distance <3.3 Å. Edges are defined according to the value of the angle . Watson-Crick; edge (W): 0.16 < ψ ≤ 2.0 rad Hoogsteen edge (H): 2.0 < ψ ≤ 4.0 rad Sugar edge (S): ψ > 4.0rad, ψ ≤ 0.16 rad These threshold values are obtained by considering the empirical distribution of base–base interactions shown in Supplemental Material 3 and discussed in Figure 2 of Bottaro et al. (2014). Cis/trans orientation is calculated according to the value of the dihedral angle defined by , where N1/N9 is used for pyrimidines and purines, respectively. We note that the annotation provided by Barnaba might fail in detecting some interactions, and sometimes differs from other programs. This is due to the fact that for non-Watson–Crick and stacking interactions it is not trivial to define a set of criteria for a rigorous discrete classification (Waleń et al. 2014). Typically, these criteria are calibrated to work well for high-resolution structures, but they are not always suitable to describe nearly formed interactions often observed in molecular simulations.

Torsion angles and 3J scalar couplings

We use the standard definition of backbone angles, glycosidic χ angle (O4′-C1′-N9-C4 atoms for A/G, O4′-C1′-N1-C2 for C/U), and sugar torsion angles (ν0 · · · ν4) as shown in Figures 9 and 10 (Saenger 2013).
FIGURE 9.

Definition of the backbone/glycosidic angles χ (Frellsen et al. 2009).

FIGURE 10.

Definition of pucker angles ν0 · · · ν4.

Definition of the backbone/glycosidic angles χ (Frellsen et al. 2009). Definition of pucker angles ν0 · · · ν4. Pseudorotation sugar parameters amplitude tm and phase P are calculated as described in Rao et al. (1981): where Optionally, it is also possible to calculate pseudorotation parameters using the Altona–Sundaralingam treatment (Altona and Sundaralingam 1972): 3J Scalar couplings are calculated using the Karplus equations: Karplus parameters relative to the different scalar couplings are reported in Table 1.
TABLE 1.

Karplus parameters used in Barnaba

Karplus parameters used in Barnaba

Elastic network model

In ENMs, a set of N beads connected by pairwise harmonic springs penalize deviations of interbead distances from their reference values. Spring constants are set to a constant value k whenever the reference distance between the two beads is smaller than an interaction cutoff (Rc), and set to zero otherwise. Under these assumptions, the potential energy of the system can be approximated as where is the symmetric 3 N × 3 N interaction matrix, and δr is the deviation of bead i from its position in the reference structure. The user can select different atoms to be used as beads in the construction of the model. The optimal value of the parameter R depends on this choice, as described in Pinamonti et al. (2015). The covariance matrix is computed as where λ and vα are the eigenvalues and the eigenvectors of the interaction matrix , respectively. The sum on α runs over all nonnull modes of the system. Mean square fluctuation (MSF) of residue i is calculated as The variance of the distance between two beads can be directly obtained from the covariance matrix in the linear perturbation regime as where is the µ Cartesian component of the reference distance between beads i and j. For most practical applications of ENMs, only the high-amplitude modes, i.e., those with the smallest eigenvalues, provide interesting dynamical information. The calculation of C2–C2 distance fluctuations using Equation 16 requires the knowledge of all eigenvectors. This can be performed by reducing the system to the “effective interaction matrix” relative to the beads of interest (Zen et al. 2008). where MC2(Mother) is formed by the rows and columns of M relative to the (non) C2 beads, while W represent the interactions between C2 and non-C2 beads. The effective interaction matrix is defined as This can be computed efficiently using sparse matrix-vector multiplication algorithms. The resulting effective matrix has reduced size: 1/3 for sugar-base-phosphate (SBP), ∼1/20 for all-atom (AA), making its pseudo-inversion considerably faster. Note that, in case one is interested in computing the C2–C2 fluctuations for a portion of the molecule only, the algorithm could be further optimized by directly computing the effective interactions matrix associated to the required C2–C2 pairs.

SUPPLEMENTAL MATERIAL

Supplemental material is available for this article.
  46 in total

1.  RNA backbone: consensus all-angle conformers and modular string nomenclature (an RNA Ontology Consortium contribution).

Authors:  Jane S Richardson; Bohdan Schneider; Laura W Murray; Gary J Kapral; Robert M Immormino; Jeffrey J Headd; David C Richardson; Daniela Ham; Eli Hershkovits; Loren Dean Williams; Kevin S Keating; Anna Marie Pyle; David Micallef; John Westbrook; Helen M Berman
Journal:  RNA       Date:  2008-01-11       Impact factor: 4.942

2.  Correspondences between low-energy modes in enzymes: dynamics-based alignment of enzymatic functional families.

Authors:  Andrea Zen; Vincenzo Carnevale; Arthur M Lesk; Cristian Micheletti
Journal:  Protein Sci       Date:  2008-03-27       Impact factor: 6.725

3.  do_x3dna: a tool to analyze structural fluctuations of dsDNA or dsRNA from molecular dynamics simulations.

Authors:  Rajendra Kumar; Helmut Grubmüller
Journal:  Bioinformatics       Date:  2015-04-02       Impact factor: 6.937

4.  Predicting RNA Structures via a Simple van der Waals Correction to an All-Atom Force Field.

Authors:  Changwon Yang; Manho Lim; Eunae Kim; Youngshang Pak
Journal:  J Chem Theory Comput       Date:  2017-01-03       Impact factor: 6.006

5.  Accurate SHAPE-directed RNA secondary structure modeling, including pseudoknots.

Authors:  Christine E Hajdin; Stanislav Bellaousov; Wayne Huggins; Christopher W Leonard; David H Mathews; Kevin M Weeks
Journal:  Proc Natl Acad Sci U S A       Date:  2013-03-15       Impact factor: 11.205

6.  Computer Folding of RNA Tetraloops: Identification of Key Force Field Deficiencies.

Authors:  Petra Kührová; Robert B Best; Sandro Bottaro; Giovanni Bussi; Jiří Šponer; Michal Otyepka; Pavel Banáš
Journal:  J Chem Theory Comput       Date:  2016-08-04       Impact factor: 6.006

7.  MINT: software to identify motifs and short-range interactions in trajectories of nucleic acids.

Authors:  Anna Górska; Maciej Jasiński; Joanna Trylska
Journal:  Nucleic Acids Res       Date:  2015-05-29       Impact factor: 16.971

8.  MDAnalysis: a toolkit for the analysis of molecular dynamics simulations.

Authors:  Naveen Michaud-Agrawal; Elizabeth J Denning; Thomas B Woolf; Oliver Beckstein
Journal:  J Comput Chem       Date:  2011-04-15       Impact factor: 3.376

9.  RNA folding pathways in stop motion.

Authors:  Sandro Bottaro; Alejandro Gil-Ley; Giovanni Bussi
Journal:  Nucleic Acids Res       Date:  2016-04-18       Impact factor: 16.971

10.  A probabilistic model of RNA conformational space.

Authors:  Jes Frellsen; Ida Moltke; Martin Thiim; Kanti V Mardia; Jesper Ferkinghoff-Borg; Thomas Hamelryck
Journal:  PLoS Comput Biol       Date:  2009-06-19       Impact factor: 4.475

View more
  13 in total

1.  rna-tools.online: a Swiss army knife for RNA 3D structure modeling workflow.

Authors:  Marcin Magnus
Journal:  Nucleic Acids Res       Date:  2022-05-17       Impact factor: 19.160

2.  In silico investigation of riboswitches in fungi: structural and dynamical insights into TPP riboswitches in Aspergillus oryzae.

Authors:  Valdemir Vargas-Junior; Deborah Antunes; Ana Carolina Guimarães; Ernesto Caffarena
Journal:  RNA Biol       Date:  2021-12-31       Impact factor: 4.652

3.  Conformational ensembles of an RNA hairpin using molecular dynamics and sparse NMR data.

Authors:  Sabine Reißer; Silvia Zucchelli; Stefano Gustincich; Giovanni Bussi
Journal:  Nucleic Acids Res       Date:  2020-02-20       Impact factor: 16.971

4.  Conformational heterogeneity of UCAAUC RNA oligonucleotide from molecular dynamics simulations, SAXS, and NMR experiments.

Authors:  Christina Bergonzo; Alexander Grishaev; Sandro Bottaro
Journal:  RNA       Date:  2022-04-28       Impact factor: 5.636

5.  Directional translocation resistance of Zika xrRNA.

Authors:  Antonio Suma; Lucia Coronel; Giovanni Bussi; Cristian Micheletti
Journal:  Nat Commun       Date:  2020-07-27       Impact factor: 14.919

6.  Posttranscriptional modifications at the 37th position in the anticodon stem-loop of tRNA: structural insights from MD simulations.

Authors:  Preethi Seelam Prabhakar; Nathania A Takyi; Stacey D Wetmore
Journal:  RNA       Date:  2020-11-19       Impact factor: 4.942

7.  Geneticin shows selective antiviral activity against SARS-CoV-2 by targeting programmed -1 ribosomal frameshifting.

Authors:  Carmine Varricchio; Gregory Mathez; Laurent Kaiser; Caroline Tapparel; Andrea Brancale; Valeria Cagno
Journal:  bioRxiv       Date:  2022-03-08

8.  Evaluation of the stereochemical quality of predicted RNA 3D models in the RNA-Puzzles submissions.

Authors:  Francisco Carrascoza; Maciej Antczak; Zhichao Miao; Eric Westhof; Marta Szachniuk
Journal:  RNA       Date:  2021-11-24       Impact factor: 4.942

9.  Bacterial 2'-Deoxyguanosine Riboswitch Classes as Potential Targets for Antibiotics: A Structure and Dynamics Study.

Authors:  Deborah Antunes; Lucianna H S Santos; Ernesto Raul Caffarena; Ana Carolina Ramos Guimarães
Journal:  Int J Mol Sci       Date:  2022-02-09       Impact factor: 5.923

10.  Refining the RNA Force Field with Small-Angle X-ray Scattering of Helix-Junction-Helix RNA.

Authors:  Weiwei He; Nawavi Naleem; Diego Kleiman; Serdal Kirmizialtin
Journal:  J Phys Chem Lett       Date:  2022-04-11       Impact factor: 6.888

View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.