Non-coding RNAs (ncRNA) are essential for all life, and their functions often depend on their secondary (2D) and tertiary structure. Despite the abundance of software for the visualisation of ncRNAs, few automatically generate consistent and recognisable 2D layouts, which makes it challenging for users to construct, compare and analyse structures. Here, we present R2DT, a method for predicting and visualising a wide range of RNA structures in standardised layouts. R2DT is based on a library of 3,647 templates representing the majority of known structured RNAs. R2DT has been applied to ncRNA sequences from the RNAcentral database and produced >13 million diagrams, creating the world’s largest RNA 2D structure dataset. The software is amenable to community expansion, and is freely available at https://github.com/rnacentral/R2DT and a web server is found at https://rnacentral.org/r2dt.
RNA molecules are key components of a wide range of biological processes, such as translation, splicing, and transcription. For many RNAs, the 3D structure is essential for biological function. For example, ribosomal RNA (rRNA) and transfer RNA (tRNA) adopt very specific, evolutionarily conserved 3D conformations in order to perform translation, and RNA aptamers can specifically recognise small molecules and other ligands by virtue of their 3D structures. The architecture of a structured RNA molecule is hierarchical, whereby the RNA sequence (primary structure) folds into local elements that, in turn, interact with each other to form the 3D structure1. The majority of intramolecular contacts in most ncRNAs can be represented in the form of 2D structure diagrams, which are far more accessible and can present a broader variety of information than the corresponding 3D structures.
Many RNAs are visualised following standard, community-accepted conventions. For example, the 2D diagrams from the Comparative RNA Web Site2 (CRW) have been used for decades and are widely accepted as standard for rRNA visualisation. Similarly, tRNAs are traditionally displayed in a cloverleaf layout with the 5′- and 3′- ends located at the top, the anticodon loop pointing towards the bottom, and the D- and T- loops facing left and right, respectively3. Both of these representations capture important structural and functional features, providing valuable insights into the RNA structure and function. However, the construction of RNA secondary structures requires manual curation, which does not scale with the large numbers of sequences being generated by modern molecular biology techniques.
There are many automated approaches for visualising RNA 2D structure that can be broadly categorised into one or more of the following groups based upon the type of visualisation and the algorithm used to generate it. Visualisations may (1) Use dot plots where the X and Y axes represent the RNA sequence and the base pairs are shown as dots in Cartesian space (for example iDotter4); or (2) Arc plots5 which represent the RNA as a line and interactions as arcs connecting paired nucleotides (for example R-Chie6); and finally (3) Circular diagrams, which are effectively arc diagrams folded into a circle (for example VARNA7). Algorithmically, the approaches may use (1) Force-directed layouts where nucleotides represent the nodes of a graph and base pairs as well as other interactions are shown as lines connecting the nodes. These layouts are governed by the attraction and repulsion between the nucleotides and interactions (for example Forna8); or (2) Rule-based methods9, such as RNAView10, 3DNA11, PseudoViewer12, R2R13, RNA2Drawer14, jViz15, RNApuzzler16 and many others, for a more comprehensive review see17,18. However, none of these methods achieves all five properties of ideal RNA 2D structure diagrams18,19: they should be modular to reflect functional domains, appear similar for related structures despite sequence or minor structural changes to allow for easy comparison, avoid overlaps and ensure visual clarity, be a realistic representation of the 3D structure (if known), and finally be aesthetically pleasing18,19.
In general, existing tools do not produce diagrams in widely accepted layouts, and in some cases, homologous or even identical sequences are displayed in different layouts that can be hard to analyse and compare17. Specifically, while dot plots are useful for comparative analysis in the hands of expert users20, they are difficult for users to interpret; arc plots, which show sequence conservation and base pairs, can be prohibitively large and make it difficult to examine small structural changes; circular diagrams can be uninformative and can make small structural changes hard to analyse; while force-directed layouts are not always robust against changes in the sequence or structure, making a comparison across related structures difficult. The rule-based methods can reliably produce diagrams even for large RNA structures16, but they do not take advantage of the community-accepted layouts. In addition, some methods can show other issues such as overlaps and a lack of visual clarity (Fig. 1). Some packages, like the SSU-ALIGN21 can generate 2D structure diagrams of SSU rRNA following the CRW layout but display only a fixed number of consensus positions.
The lack of tools for visualising RNAs in consistent, reproducible, and recognisable layouts, makes comparing RNA structures difficult for RNA biologists and essentially impossible for non-specialists.
Here we fill a fundamental gap in visualising structured RNAs by introducing R2DT (RNA 2D Templates). R2DT encapsulates a comprehensive pipeline for template-based RNA 2D visualisation, generating diagramatic 2D representations of RNA structures based on a representative library of templates, and is implemented as both a standalone application (https://github.com/rnacentral/R2DT) and a web server (https://rnacentral.org/r2dt). The framework can be easily updated and extended with additional templates, and it has been extensively tested on > 13 million sequences from RNAcentral22, a comprehensive database of ncRNA sequences (see Validation for more information).
Automatic pipeline for template selection and 2D structure visualisation
We developed a computational pipeline that uses a template library to define standard layouts for different types of RNA. A minimal template contains a reference sequence, as well as cartesian coordinates for each nucleotide, and a 2D representation of the structure in dot-bracket notation that encapsulates the canonical Watson-Crick base pairs. Some templates also contain the wobble GU base pairs, but non-canonical base pairs are not currently included in the templates (see the next section for the detailed description of the template library).
To enable automatic template selection, for each template a covariance model is generated using Infernal23 based on the reference sequence and its 2D structure. The R2DT pipeline includes the following steps:
For each input sequence, the top scoring covariance model is selected using the ribotyper.pl programme in the Ribovore software package (version 0.40) (https://github.com/ncbi/ribovore). For model selection, ribotyper.pl runs the Infernal23 cmsearch programme and uses a profile HMM derived from the covariance model that scores sequence only and ignores secondary structure to limit running time. If Ribovore does not find any matches, tRNAscan-SE 2.024 is used to search query sequences against the tRNA models. To speed up template selection, the library is divided into several subsets which are processed separately (Rfam, LSU and SSU RiboVision rRNAs, CRW, and tRNA templates). If a sequence is classified to a template model in one of the subsets (defined as being designated “PASS” by ribotyper.pl without a “MultipleHits” flag) then the remaining subsets are not searched. In cases where both a 3D-based and a covariation-based template are available for the same RNA, the 3D-based template is preferentially selected. The Ribovore software is used to search against all models except for tRNA. If no hits are detected, tRNAscan-SE 2.0 is then used to compare the sequences against the bacterial, archaeal, and eukaryotic domain-specific tRNA models. Once a top scoring domain-specific tRNA model is chosen, the sequence is compared with the isotype-specific tRNA models for that domain. It is also possible to specify a template and bypass the classification step. If the sequence does not match any templates, the following steps are skipped and no output files are generated.
The input sequence is folded with the Infernal cmalign programme using the top scoring covariance model. This ensures that the predicted 2D structure is compatible with the template 2D structure. It is important to note that R2DT does not attempt to fold the unstructured regions found in some templates or predict the structure of the insertions relative to the template.
The 2D structure of the input sequence is predicted using Infernal based on the template covariance model, so the template serves both as a source of coordinates for nucleotides when positioned on the diagram and a source of base pairing information. The input sequence is not required to closely match the template, as insertions and deletions can be accommodated, and nucleotides can be repositioned depending on the structural context by the Traveler software25.
For each sequence, the pipeline produces a text file with the 2D structure in dot-bracket notation and a 2D diagram in SVG format. The diagrams are coloured depending on the identity of the individual nucleotides in the input sequence relative to the template. Identical nucleotides are shown in black, while inserted nucleotides are displayed in magenta. If a nucleotide is modified compared to the template reference sequence, it is shown in green. If the location of the nucleotides was automatically repositioned relative to its corresponding position in the template, the nucleotide is coloured blue.
Comprehensive 2D structure template library
We compiled a library of 3647 templates aggregating RNA 2D structure layouts from different sources (Table 1) in order to represent the diversity of RNA structures ranging from <100 nucleotides (tRNA) to >5000 nucleotides (human large subunit rRNA). Templates can be annotated with additional metadata about the RNAs, such as a taxonomic distribution or subcellular localisation, as well as per-nucleotide annotations that can be transferred to the corresponding nucleotides of the input sequence (for example, tRNA nucleotide numbering using the Sprinzl scheme26).
While the majority of the 3647 templates were integrated from the existing sources (Table 1), 103 templates have been manually curated specifically for this project, as described below (also see Supplementary Table 1).
The availability of the experimentally determined ribosomal 3D structures enabled us to improve the traditional rRNA diagrams available from the CRW2,27. Specifically, the 3D structural data assessed the accuracy of the covariation-based 16S and 23S rRNA secondary structures, removed the few incorrect base pairs, added missing base pairs with both Watson-Crick and non-canonical base pair conformations, and provided detailed modelling of the species-specific expansion segments that were not present in the covariation-based expansion segments. The revised LSU 2D templates are outlined using single-page layouts and explicitly depict H26a28, a helix that connects the 5′ and 3′ halves of the LSU rRNA. This irregular helix, which is now known to be the loop-E motif29 was initially suggested by Haselman and Fox30, and had been indicated by arrows connecting the two halves of the historical LSU rRNA layouts31. All non-canonical interactions were explicitly depicted when the first 3D structural model of the LSU particle became available32. The single-page LSU layouts enable R2DT to visualise the LSU 2D structures in standard orientations completely automatically, which has not been possible until now (Fig. 3a). For the SSU rRNA, the updated 2D structures use a more accurate representation of the central pseudoknot, reflecting the existence of the base triplexes. In addition, the 3D structures allowed us to visualise the structure of the species-specific eukaryotic expansions33,34 that could not be modelled using covariation analysis alone (Fig. 3b).
The resulting rRNA structures are up-to-date, consistent with the 3D structures, and broadly sample the phylogenetic tree (the templates are listed in Supplementary Table 1). Both LSU and SSU layouts are generalisable to accommodate numerous expansions that exist in eukaryotic species.
Although cytosolic tRNAs are generally known to have a cloverleaf 2D structure, different isotypes (the tRNA families inserting different amino acids) have distinct “identity elements” recognised by specific aminoacyl tRNA synthetases for charging the tRNAs with the proper amino acids. In addition to the tRNA anticodon that binds with the mRNA codon during translation, these identity elements include discriminatory nucleotides and base pairs throughout the tRNA sequences and vary across the domains of life35. To better represent the tRNA structures, we prepared 68 isotype-specific templates for bacterial, archaeal, and eukaryotic tRNAs that include those decoding the standard twenty amino acids, initiator methionine/N-formylmethionine (tRNAiMet in archaea/eukaryotes or tRNAfMet in bacteria), isoleucine for the AUA codon in bacteria and archaea, and selenocysteine (Fig. 4). Consensus tRNA primary sequence with the 2D structure for each isotype of each taxonomic domain was generated based on the tRNA alignments used for building the isotype-specific covariance models in tRNAscan-SE 2.024. The isotype-specific tRNA 2D structure templates were created using the corresponding consensus sequences and structures. In addition, we generated six domain-specific templates for more general application. Due to the structural difference of the variable loop in type I and type II tRNAs36, alignments for building the domain-specific covariance models in tRNAscan-SE 2.024 were divided into two sets. Similar to the isotype-specific ones, the domain-specific templates were built with the consensus sequences and structures for both type categories of tRNAs. Together, the isotype-specific templates can be used to visualise 2D structures of tRNAs with typical features while the domain-specific templates can be applied for the atypical predictions with undetermined or inconsistent isotypes.
The R2DT pipeline is designed to be extendable as templates are added to the library. Notably, R2DT can also serve as a tool for the development of templates where the R2DT output is used as a starting point for manual refinement of the 2D layouts. To facilitate the workflow, we provide a modified version of the XRNA software37 called XRNA-GT that supports the import of the R2DT-generated SVG files and can be used to adjust the 2D layouts (for example, change the orientation of RNA helices or edit base pairs). Using XRNA-GT it is also possible to add custom annotations, such as helix or nucleotide numbers, in order to produce publication-ready images. The updated 2D layouts can be submitted to the R2DT library where they become templates, upon review by the R2DT team. This workflow has been successfully used internally to produce the 3D-based SSU templates. In addition, users can apply their own structures to create templates starting with the FASTA and XML files defining the sequence, secondary structure, and the X, Y coordinates of each nucleotide (example input files and a script for template generation are included in the documentation). We welcome contributions from the community and provide detailed documentation on GitHub (https://github.com/RNAcentral/R2DT#how-to-add-new-templates).
Validation of 2D diagrams
At the time of writing, there are no alternative methods that enable template-based RNA 2D structure visualisation at a comparable scale. The only related method, implemented in rPredictorDB38, has a small number of templates (56 as of July 2020) and a limited support for alternative templates from the same RNA type (for example, species-specific rRNA templates). As this is a unique dataset, we developed global benchmarks to assess both accuracy of the template selection and the quality of the resulting 2D diagrams.
We tested R2DT with a diverse set of rRNA sequences to evaluate the template selection process, focusing on the rRNA templates as they are annotated at the species level, making it possible to compare the taxonomic lineages of the input sequence and the template. We selected all rRNA sequences from RefSeq39 shorter than 10,000 nucleotides (23,843 sequences as of July 2020). The sequences were visualised with R2DT and the taxonomic trees of the sequences and the selected templates were compared by identifying the most specific taxonomic rank common to the templates and the RefSeq sequences. For example, if an rRNA from Photorhabdus caribbeanensis was drawn using a template from Escherichia coli, their respective phylogenies share the order Enterobacteriales, thus the sequence and the template agree at the level of order. The majority of sequences match the templates at the level of kingdom (55.5%), phylum (20.0%), or class (16.1%) (Supplementary Table 2), indicating that the selected templates can be taxonomically distant from the input sequences. This effect is due to the preferential use of the 3D-based SSU and LSU rRNA templates, as only a relatively small number of 3D structures is available. However, when we classified each nucleotide in the 2D diagrams based on whether it matched a template for each taxonomic rank separately, we found that at least 94% of all nucleotides were in the same position as the template for all taxonomic ranks, confirming that the sequences closely matched the selected templates despite the phylogenetic distance between the template and sequence.
We evaluated R2DT performance on a set of bona fide ncRNA sequences by analysing 6559 ncRNAs from nine Model Organism Databases and other curated resources, including DictyBase40, FlyBase41, MGI42, PomBase43, SGD44, TAIR45, WormBase46, HGNC47 and EcoCyc48. These sequences represent a wide taxonomic distribution, including bacteria (E. coli), fungi (Saccharomyces cerevisiae and Schizosaccharomyces pombe), lower eukaryotes (Dictyostelium discoideum), plants (Arabidopsis thaliana), as well as other organisms of general interest, such as fly, worm, mouse, and human. R2DT-generated 2D diagrams for the majority of the selected sequences (5663 diagrams or 86.3%), consistent with the RNA type (rRNA, tRNA, snRNA, snoRNA, SRP RNA) and length (25-10,000 nucleotides) of the sequence dataset.
We classified each nucleotide in the resulting diagrams according to whether it matched a template and found that 90.6% of nucleotides were displayed using the nucleotide locations encoded in the templates, while 6.0% of nucleotides represented insertions compared to the templates, and 3.4% of nucleotides matched the templates but required automatic repositioning by the Traveler software (Table 2). Overall 94.0% of the nucleotides were visualised using the template coordinates, indicating that the diagram layouts are similar to the corresponding templates. To further confirm the agreement between the templates and the diagrams, we manually inspected 1043 2D diagrams from human and E. coli (based on the HGNC and EcoCyC sequences) to identify any modes of failure, such as overlapping structural regions. This process identified only 24 suboptimal diagrams (2.3%) that were characterised by overlapping helices and other artifacts (all diagrams can be seen in Supplementary Data 1), while the remaining 1019 (97.7%) diagrams produced error-free diagrams, indicating a close correspondence between the template and rendered sequence.
To eliminate bias from the use of model organisms (which tend to have the most experimental data), and to also demonstrate the scalability of R2DT, the nucleotide classification analysis was extended to a broad range of sequences from a wide taxonomic distribution by processing all ncRNA sequences from RNAcentral, aiming to test as many realistic use cases as possible. As of release 15 RNAcentral contained 16,107,505 sequences from 896,307 NCBI taxonomic identifiers including ncRNA types not represented by the R2DT template library, such as lncRNA or piRNA, as well as partial sequences. R2DT-generated 13,384,186 2D diagrams (83.1% of the total sequences or 87% of all sequences expected to have a 2D diagram), which can be explored at https://rnacentral.org. Similar to the previous case, 94.7% of nucleotides were drawn in the same position as the templates, while 5.3% were inserted or required recalculation of the 2D layout (Table 2) suggesting that the R2DT template library comprehensively captures the conserved core of most structured RNAs and is suitable for visualising diverse RNA sequences. The agreement between the templates demonstrated in large scale testing on a diverse set sequences from RNAcentral and other sources indicates the broad applicability of R2DT for visualising structured RNAs.
We present a comprehensive framework for the ongoing development of consistent, standardised visualisations of RNA 2D structures. As additional 2D structure templates are introduced, the pipeline can be extended to cover further RNA types, including structured viral RNAs. For example, as the Coronavirus-specific RNA families were added to the Rfam database in response to the COVID-19 pandemic49, their 2D structures were included in the template library to enable consistent visualisation of SARS-CoV-2 structured RNAs (Fig. 5), such as the 5′ and 3′ UTRs and frameshifting signal (Rfam accessions RF03120, RF03125, and RF00507, respectively).
The 2D structure diagrams produced by the pipeline represent computational predictions. However, they are based on the accumulated knowledge about the RNA families, as many templates have been curated by experts based on experimental data. The software enables comparative visualisation, as the diagrams encode a predicted secondary structure and an alignment of a given sequence to its computational model. For example, the diagrams can highlight the structural context of single nucleotide polymorphisms or demonstrate how a member of an Rfam family deviates from the consensus 2D structure (Fig. 5).
While every effort has been made to ensure comprehensive coverage of ncRNA space and the usefulness of the resulting visualisations, R2DT still has some limitations. For example, R2DT cannot generate a diagram if the library does not have a corresponding template or if a sequence matches multiple consecutive templates. In addition, while partial sequences or insertions can be accommodated, some insertions may result in poor visualisations depending on their size and the structural context in which they occur in the template.
R2DT establishes a framework that can be further extended and refined. Importantly, R2DT can be used to generate initial templates that can be manually refined and incorporated into the template library. For example, an rRNA sequence can be submitted to R2DT, the species-specific expansion segment regions can be manually edited, and the resulting diagram can be submitted to R2DT as described above.
In addition, we identified three areas for future development and improvements: (1) expanding and refining the template library. As detailed 2D structures are published, we will integrate them as templates into the R2DT library. In addition, R2DT will benefit from the ongoing development of the Rfam database as additional families are included and additional structural features are annotated in the existing families. (2) Propagating metadata from the templates to the output diagrams. Additional metadata would enable efficient navigation of the 2D structures using the standard numbering schemes for individual nucleotides or structural elements, such as helices and loops (for example, in the rRNAs many structural elements have traditionally assigned numbers, for example, the A-site is located in helix 44). (3) Displaying additional annotations overlaid on top of the 2D diagrams, for example RNA 3D motifs or structure probing reactivities. In addition, the Traveler software already supports pseudoknot visualisation and metadata transfer from the template to the 2D diagrams. These and other improvements will be released on an ongoing basis in the future versions of R2DT. We welcome community feedback and contributions at https://github.com/rnacentral/R2DT/issues.
Constructing the RNA template library
Covariation-based SSU templates
The SSU and 5S rRNA templates were downloaded from CRW2 (http://crw-site.chemistry.gatech.edu/). The 2D structures and templates are based on the comparative analysis of manually curated multiple sequence alignments and are supported by covariation of the interacting base pairs50. The 2D structure model diagrams were generated with the Sun Solaris-based version of XRNA51, manually edited, and written out as both PostScript and PDF files. The R2DT templates have been created based on the CRW bpseq files with the sequence and the 2D structure information, and the PostScript files specifying the position of each nucleotide.
3D structure-based LSU and SSU templates
Both LSU and SSU templates have been created using XRNA-GT, an in-house modified version of XRNA software51, using the pre-existing templates52 and the manually curated multiple sequence alignments from the SEREB database53. The 3D structures were selected using the Representative Sets from RNA 3D Hub54. The base-pair interactions in the 3D structures available from the PDB55 have been annotated using the FR3D software56. The 2D layouts were finalised with Adobe Illustrator and written out as SVG files. The final high-quality templates for both LSU and SSU have been integrated into RiboVision57 and are available at http://apollo.chemistry.gatech.edu/RibosomeGallery.
tRNA 2D structure templates
Isotype-specific consensus tRNA sequences and 2D structures were generated using R-scape58 from the alignments that were used to train and build the corresponding covariance models in tRNAscan-SE24. Alignments for training the domain-specific covariance models were split into two subsets: (1) type I tRNAs (all except type), and (2) type II tRNAs (leucine, serine in bacteria, archaea and eukaryotes, and tyrosine in bacteria). The bacterial tRNA alignments were further filtered to include only one representative tRNA with the same anticodon in each genus due to the original extra large training set (over 73,000 tRNAs). Consensus sequences and the 2D structures of type I and II tRNAs for each domain were then generated using R-scape58 as the isotype-specific ones. R2R13 was used for the initial image creation using consensus sequence. Custom adjustments were then made to convert the positions of the images into typical tRNA cloverleaf structure orientation. The templates correspond to tRNAscan-SE 2.0 covariance models that are used to score input sequences against each isotype-specific set and pick the highest scoring domain/template combination. The pseudogene tRNAs, as identified by tRNAscan-SE 2.0, are not currently visualised.
RNAse P templates
The majority of the RNAse P 2D layouts (7 archaeal, 7 bacterial, and 1 eukaryotic) have been extracted from the RNAse P database59. In addition, several templates have been derived from the RNAse P 3D structures available from the PDB60, including Methanocaldococcus jannaschii (PDB:6K0A), Bacillus stearothermophilus (PDB:2A64), Thermotoga maritima (PDB:3Q1R), and Homo sapiens (PDB:6AHR). The base pairing information for the 3D derived templates was extracted using DSSR software61, and the 2D layouts were finalised using XRNA-GT.
Rfam 2D structure templates
For RNA families without a standard, community-accepted 2D structure layout, we adopted the Rfam consensus 2D structures displayed using the R-scape58 and R2R13 software. The R2R software uses a set of rules that lead to consistent diagrams with the standard position of the 5′ and 3′ ends of the sequence. We excluded the lncRNA Rfam families, as well as families that are better represented by specialised templates (for example, the tRNA Rfam families are omitted as the GtRNAdb templates are better suited in this case). The 2675 Rfam templates represent a wide range of RNA types, including microRNAs, snoRNAs, riboswitches, RNA thermometers, IRES RNA, bacterial sRNAs, leaders, and other RNAs from both genomic and metagenomic sources.
Selecting templates using Ribovore
The Ribovore software package includes the Infernal software package that implements methods for covariance model- and profile hidden Markov model (HMM)-based analysis of RNA sequences23. Ribovore’s role in R2DT is to determine the best-matching template model for each input sequence and to validate that the similarity between the sequence and its best-matching model extends across the full length of the sequence. This is achieved by the ribotyper.pl script of the Ribovore package which executes two rounds of Infernal’s cmsearch programme. The first round identifies the best-matching model for each sequence by running cmsearch with command-line options “--F1 0.02 --doF1b --F1b 0.02 --F2 0.001 --F3 0.00001 --trmF3 --nohmmonly --notrunc --noali”. These options run cmsearch in an accelerated mode that computes sequence-only based scores using a profile HMM (ignoring 2D structure), by executing only the first three stages of the HMMER3 profile HMM filter pipeline62,63. These first three stages efficiently compute the score of each sequence, but not model alignment boundary positions or accurate sequence alignment boundary positions but these are irrelevant at this step. The model that gives the highest score is selected as the best-scoring template model.
Each sequence’s best-matching model is used in the second round of cmsearch, executed with the “--hmmonly” option, that again uses a profile HMM to score sequence only, but this time executing the full HMMER3 filter pipeline such that accurate hit boundaries in sequence and model coordinates are reported. While the second round of cmsearch is slower per model/sequence comparison than the first, only one model is compared to each sequence instead of all models. If the second cmsearch round identifies that there are multiple hits to the model, this indicates that at least some of the input sequence (the intervening sequence between adjacent hits) is either inserted relative to the model, or dissimilar from the expected homologous model region. In this case, the sequence is not evaluated further and no structure diagram will be drawn for the sequence.
Typically, profile HMMs and covariance models are built from multiple sequence alignments, but the SSU and LSU rRNA models used in R2DT were built from the single sequence templates. R2DT uses the Rfam covariance models built from the Rfam seed alignments. If, for a given sequence, the first round of ribotyper.pl cmsearch results in zero models with a score above 20 bits indicating that no significant similarity has been detected to any models, then the second cmsearch round is skipped and the sequence will be analysed in a subsequent step by tRNAscan-SE 2.0 to identify possible similarity against the tRNA models. If no significant hits can be found by either Ribovore or tRNAscan-SE 2.0, R2DT assumes that the sequence does not match any of the templates and will not attempt to draw a structure. Template selection by Ribovore, specifically the first cmsearch round in ribotyper.pl, is typically the slowest step in the R2DT pipeline (the example run times can be seen in Supplementary Table 3) and we hope to speed it up in future versions of R2DT.
Visualising 2D structures using Traveler
To produce a layout for an input (target) structure, the Traveler software25 requires the target and template 2D structures accompanied by the template layout. Both the target and template structures are turned into a tree-based representation, then, a minimum mapping between the trees is found and the template layout is modified based on this mapping to fit the target structure. To support the R2DT pipeline, two major modifications were made to the Traveler software: (i) the ability to provide custom mapping and (ii) optimised hairpin rotation.
Since the target 2D structure is generated by Infernal within the R2DT pipeline, the target-template structure mapping is already known and the original Traveler’s mapping procedure is not needed. Therefore, Traveler was modified to use the Infernal-informed tree mapping instead of the original mapping procedure.
Although in most cases the resulting layout is overlap-free, sometimes the target and template differ in such a way that it is not easily possible to fit the target-specific portions of the structure into the template. Therefore, an overlap detection process was implemented in Traveler allowing to rotate the overlapping parts of the structure so that the number of overlaps is minimised. Specifically, Traveler detects the hairpin segments and checks intersection with the rest of the structure. In the case of non-empty overlap, all 30° rotations of the hairpin are tested and the one with the lowest number of overlaps is accepted. As rotations of a single hairpin can open space for further improvements, the process is repeated several times to further decrease the number of overlaps.
While the procedure described above is conservative, a more aggressive approach would lead to target layouts with substantial deviations from the template layout, thus defeating the purpose of template-based layout. An example of a limitation of this approach, where the insertion could not be correctly accommodated, is shown in Fig. 6. Here, RNA3 is oriented the same way as RNA1 (template), but for the price of intersection of the inserted hairpins. Obviously, the larger the difference between the template and target structure, the more pronounced the issue is.
The R2DT software is implemented in Python and is packaged using containers to create pre-configured, reproducible environments that support Docker and Singularity platforms. The software has been deployed within the EMBL-EBI Job Dispatcher framework64 that provides a web API for submitting jobs and retrieving the results (https://www.ebi.ac.uk/Tools/common/tools/help). The results are visualised with a reusable web component implemented in React that can be embedded into any website (https://github.com/RNAcentral/r2dt-web).
Further information on research design is available in the Nature Research Reporting Summary linked to this article.
The set of precomputed RNAcentral 2D structures are available at https://rnacentral.org. The diagrams are continuously updated as additional templates are developed or algorithm improvements are made. The sequences used in this study were obtained from RNAcentral release 15 under accession codes URS000080E226_274; URS0000ABD82A_9606; URS00000F9D45_9606; URS000075B5A7_9606; URS000013F331_9606; URS000026BDF0_9606; URS0000149178_9606; URS0000051AF4_562; URS000013B42D_9606; URS00001612D2_243232; URS00002F9CDD_511145; URS0000176051_10090, and EcoCyc release 24.0.
The R2DT source code (v1.1) and documentation are available on GitHub under the Apache 2.0 License (https://github.com/rnacentral/R2DT)65. An R2DT web server can be found at https://rnacentral.org/r2dt and its source code is available at https://github.com/RNAcentral/r2dt-web. A custom version of XRNA-GT (v1.1) is available at https://github.com/LDWLab/XRNA-GT66.
Westhof, E., Masquida, B. & Jossinet, F. Predicting and modeling RNA architecture. Cold Spring Harb. Perspect. Biol. 3, a003632 (2011).
Cannone, J. J. et al. The comparative RNA Web (CRW) Site: an online database of comparative sequence and structure information for ribosomal, intron, and other RNAs. BMC Bioinform. 3, 1–31 (2002).
Holley, R. W. et al. Structure of a ribonucleic acid. Science 147, 1462–1465 (1965).
Gerighausen, D., Hausdorf, A. & Zänker, S. iDotter: an Interactive Dot Plot Viewer (Václav Skala - UNION Agency, 2017).
Wattenberg, M. Arc diagrams: visualizing structure in strings. in IEEE Symposium on Information Visualization, 2002. INFOVIS 2002. 110–116 (IEEE, 2002).
Lai, D., Proctor, J. R., Zhu, J. Y. A. & Meyer, I. M. R-CHIE: a web server and R package for visualizing RNA secondary structures. Nucleic Acids Res. 40, e95 (2012).
Darty, K., Denise, A. & Ponty, Y. VARNA: interactive drawing and editing of the RNA secondary structure. Bioinformatics 25, 1974–1975 (2009).
Kerpedjiev, P., Hammer, S. & Hofacker, I. L. Forna (force-directed RNA): simple and effective online RNA secondary structure diagrams. Bioinformatics 31, 3377–3379 (2015).
Bruccoleri, R. E. & Heinrich, G. An improved algorithm for nucleic acid secondary structure display. Comput. Appl. Biosci. 4, 167–173 (1988).
Yang, H. et al. Tools for the automatic identification and classification of RNA base pairs. Nucleic Acids Res. 31, 3450–3460 (2003).
Lu, X.-J. & Olson, W. K. 3DNA: a software package for the analysis, rebuilding and visualization of three-dimensional nucleic acid structures. Nucleic Acids Res. 31, 5108–5121 (2003).
Byun, Y. & Han, K. PseudoViewer: web application and web service for visualizing RNA pseudoknots and secondary structures. Nucleic Acids Res. 34, W416–W422 (2006).
Weinberg, Z. & Breaker, R. R. R2R-software to speed the depiction of aesthetic consensus RNA secondary structures. BMC Bioinform. 12, 3 (2011).
Johnson, P. Z., Kasprzak, W. K., Shapiro, B. A. & Simon, A. E. RNA2Drawer: geometrically strict drawing of nucleic acid structures with graphical structure editing and highlighting of complementary subsequences. RNA Biol. 16, 1667–1671 (2019).
Shabash, B. & Wiese, K. C. jViz.RNA 4.0—visualizing pseudoknots and RNA editing employing compressed tree graphs. PLoS ONE 14, e0210281 (2019).
Wiegreffe, D., Alexander, D., Stadler, P. F. & Zeckzer, D. RNApuzzler: efficient outerplanar drawing of RNA-secondary structures. Bioinformatics 35, 1342–1349 (2019).
Shabash, B. & Wiese, K. C. RNA visualization: relevance and the current state-of-the-art focusing on pseudoknots. IEEE/ACM Trans. Comput. Biol. Bioinform. 14, 696–712 (2017).
Ponty, Y. & Leclerc, F. Drawing and editing the secondary structure(s) of RNA. Methods Mol. Biol. 1269, 63–100 (2015).
Muller, G., Gaspin, C., Etienne, A. & Westhof, E. Automatic display of RNA secondary structures. Comput. Appl. Biosci. 9, 551–561 (1993).
Gruber, A. R., Bernhart, S. H. & Lorenz, R. The ViennaRNA web services. Methods Mol. Biol. 1269, 307–326 (2015).
Nawrocki, E. Structural RNA homology search and alignment using covariance models. All Theses and Dissertations (ETDs) (2009).
The RNAcentral Consortium. RNAcentral: a hub of information for non-coding RNA sequences. Nucleic Acids Res. 47, D221–D229 (2019).
Nawrocki, E. P. & Eddy, S. R. Infernal 1.1: 100-fold faster RNA homology searches. Bioinformatics 29, 2933–2935 (2013).
Chan, P. P., Lin, B. Y., Mak, A. J. & Lowe, T. M. tRNAscan-SE 2.0: improved detection and functional classification of transfer RNA genes. https://doi.org/10.1101/614032 (2019).
Elias, R. & Hoksza, D. TRAVeLer: a tool for template-based RNA secondary structure visualization. BMC Bioinform. 18, 487 (2017).
Sprinzl, M., Horn, C., Brown, M., Ioudovitch, A. & Steinberg, S. Compilation of tRNA sequences and sequences of tRNA genes. Nucleic Acids Res. 26, 148–153 (1998).
Lee, J. C. & Gutell, R. R. A comparison of the crystal structures of eukaryotic and bacterial SSU ribosomal RNAs reveals common structural features in the hypervariable regions. PLoS ONE 7, e38203 (2012).
Petrov, A. S. et al. Secondary structure and domain architecture of the 23S and 5S rRNAs. Nucleic Acids Res. 41, 7522–7535 (2013).
Leontis, N. B. & Westhof, E. A common motif organizes the structure of multi-helix loops in 16S and 23S ribosomal RNAs. J. Mol. Biol. 283, 571–583 (1998).
Haselman, T., Gutell, R. R., Jurka, J. & Fox, G. E. Additional Watson-Crick interactions suggest a structural core in large subunit ribosomal RNA. J. Biomol. Struct. Dyn. 7, 181–186 (1989).
Noller, H. F. et al. Secondary structure model for 23S ribosomal RNA. Nucleic Acids Res. 9, 6167–6189 (1981).
Ban, N., Nissen, P., Hansen, J., Moore, P. B. & Steitz, T. A. The complete atomic structure of the large ribosomal subunit at 2.4A resolution. Science 289, 905–920 (2000).
Gutell, R. R. Evolutionary characteristics of 16S and 23S rRNA structures. (ed. Hyman Hartman, K. M.) 243–309 (World Scientific Publishing Co., 1992).
Gerbi, S. A. Expansion segments: regions of variable size that interrupt the universal core secondary structure of ribosomal RNA. in Ribosomal RNA—Structure, Evolution, Processing, and Function in Protein Synthesis 71–87 (CRC Press, 1996).
Giegé, R., Sissler, M. & Florentz, C. Universal rules and idiosyncratic features in tRNA identity. Nucleic Acids Res. 26, 5017–5035 (1998).
Brennan, T. & Sundaralingam, M. Structure, of transfer RNA molecules containing the long variable loop. Nucleic Acids Res. 3, 3235–3252 (1976).
XRNA. http://rna.ucsc.edu/rnacenter/xrna/xrna.html (2009).
Jelínek, J. et al. rPredictorDB: a predictive database of individual secondary structures of RNAs and their formatted plots. Database 2019, baz047 (2019).
O’Leary, N. A. et al. Reference sequence (RefSeq) database at NCBI: current status, taxonomic expansion, and functional annotation. Nucleic Acids Res. 44, D733–D745 (2016).
Basu, S. et al. DictyBase 2013: integrating multiple Dictyostelid species. Nucleic Acids Res. 41, D676–D683 (2013).
Thurmond, J. et al. FlyBase 2.0: the next generation. Nucleic Acids Res. 47, D759–D765 (2019).
Smith, C. L. et al. Mouse genome database (MGD)-2018: knowledgebase for the laboratory mouse. Nucleic Acids Res. 46, D836–D842 (2018).
McDowall, M. D. et al. PomBase 2015: updates to the fission yeast database. Nucleic Acids Res. 43, D656–D661 (2015).
Cherry, J. M. et al. Saccharomyces Genome Database: the genomics resource of budding yeast. Nucleic Acids Res. 40, D700–D705 (2012).
Berardini, T. Z. et al. The Arabidopsis information resource: Making and mining the ‘gold standard’ annotated reference plant genome. Genesis 53, 474–485 (2015).
Yook, K. et al. WormBase 2012: more genomes, more data, new website. Nucleic Acids Res. 40, D735–D741 (2012).
Yates, B. et al. Genenames.org: the HGNC and VGNC resources in 2017. Nucleic Acids Res. 45, D619–D625 (2017).
Keseler, I. M. et al. The EcoCyc database: reflecting new knowledge about Escherichia coli K-12. Nucleic Acids Res. 45, D543–D550 (2017).
Hufsky, F. et al. Computational strategies to combat COVID-19: useful tools to accelerate SARS-CoV-2 and coronavirus research. Briefings in Bioinformatics 22, 642–663 (2020).
Gutell, R. R., Lee, J. C. & Cannone, J. J. The accuracy of ribosomal RNA comparative structure models. Curr. Opin. Struct. Biol. 12, 301–310 (2002).
Weiser, B. & Noller, H. F. XRNA: auto-interactive program for modeling RNA. in The Center for Molecular Biology of RNA (University of California, Santa Cruz, 1995).
Petrov, A. S. et al. Secondary structures of rRNAs from all three domains of life. PLoS ONE 9, e88222 (2014).
Bernier, C. R., Petrov, A. S., Kovacs, N. A., Penev, P. I. & Williams, L. D. Translation: the universal structural core of life. Mol. Biol. Evol. 35, 2065–2076 (2018).
Leontis, N. B. & Zirbel, C. L. Nonredundant 3D structure datasets for RNA knowledge extraction and benchmarking. in RNA 3D Structure Analysis and Prediction (eds. Leontis, N. & Westhof, E.) 281–298 (Springer Berlin Heidelberg, 2012).
Berman, H. M. et al. The protein data bank. Acta Crystallogr. D. Biol. Crystallogr. 58, 899–907 (2002).
Sarver, M., Zirbel, C. L., Stombaugh, J., Mokdad, A. & Leontis, N. B. FR3D: finding local and composite recurrent structural motifs in RNA 3D structures. J. Math. Biol. 56, 215–252 (2008).
Bernier, C. R. et al. RiboVision suite for visualization and analysis of ribosomes. Faraday Discuss. 169, 195–207 (2014).
Rivas, E., Clements, J. & Eddy, S. R. A statistical test for conserved RNA structure shows lack of evidence for structure in lncRNAs. Nat. Methods 14, 45–48 (2017).
Brown, J. W. The Ribonuclease P database. Nucleic Acids Res. 24, 236–237 (1996).
Armstrong, D. R. et al. PDBe: improved findability of macromolecular structure data in the PDB. Nucleic Acids Res. 48, D335–D343 (2020).
Lu, X.-J., Bussemaker, H. J. & Olson, W. K. DSSR: an integrated software tool for dissecting the spatial structure of RNA. Nucleic Acids Res. 43, e142 (2015).
Eddy, S. R. Accelerated profile HMM searches. PLoS Comput. Biol. 7, e1002195 (2011).
Wheeler, T. J. & Eddy, S. R. nhmmer: DNA homology search with profile HMMs. Bioinformatics 29, 2487–2489 (2013).
Madeira, F. et al. The EMBL-EBI search and sequence analysis tools APIs in 2019. Nucleic Acids Res. 47, W636–W641 (2019).
Sweeney, B. et al. R2DT v1.1. https://doi.org/10.5281/zenodo.4700588 (2021).
Meade, C., Weiser, B., Noller, H. F. & Petrov, A. S. XRNA-GT v1.1. https://doi.org/10.5281/zenodo.4727745 (2021).
Baron, C., Westhof, E., Böck, A. & Giegé, R. Solution structure of selenocysteine-inserting tRNA(Sec) from Escherichia coli. Comparison with canonical tRNA(Ser). J. Mol. Biol. 231, 274–292 (1993).
Hubert, N., Sturchler, C., Westhof, E., Carbon, P. & Krol, A. The 9/4 secondary structure of eukaryotic selenocysteine tRNA: more pieces of evidence. RNA 4, 1029–1033 (1998).
The authors would like to thank the RNAcentral Consortium for contributing data to RNAcentral as well as the organisers of the 2018 Benasque RNA meeting where this project originated. The authors also thank Mark Ditzler (NASA Ames Research Center) for assistance with preparation of the 3D-based RNAse P templates. This work was supported by Biotechnology and Biological Sciences Research Council (BBSRC) [BB/N019199/1], and by the Intramural Research Program of the National Library of Medicine at the NIH. This work was supported by NASA [80NSSC18K1139] (L.D.W. and A.S.P.).This research was funded in whole, or in part, by the Wellcome Trust [218302/Z/19/Z]. For the purpose of Open Access, the author has applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission.
Open Access funding enabled and organized by Projekt DEAL.
The authors declare no competing interests.
Peer review information Nature Communications thanks Ivo Hofacker and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Sweeney, B.A., Hoksza, D., Nawrocki, E.P. et al. R2DT is a framework for predicting and visualising RNA secondary structure using templates. Nat Commun 12, 3494 (2021). https://doi.org/10.1038/s41467-021-23555-5