# Secondary structure RNAcentral generates secondary structure (2D) diagrams using the [R2DT](https://r2dt.bio) software that visualises RNA structure using standard layouts or templates. Learn more about the method in the [R2DT paper](https://www.nature.com/articles/s41467-021-23555-5) or check out the code on [GitHub](https://github.com/r2dt-bio/R2DT). ## R2DT overview RNAcentral stores RNA secondary structures computed using R2DT for [millions of non-coding RNAs](https://rnacentral.org/search?q=has_secondary_structure:%22True%22). The structures are displayed using a library of ~4,000 templates, including: 1. Small subunit (SSU) rRNA and 5S rRNA templates from the [Comparative RNA Website](http://www.rna.ccbb.utexas.edu) (CRW); 2. Small and large subunit (LSU) rRNA templates from [RiboVision](https://ribovision2.chemistry.gatech.edu/); 3. Isotype-specific tRNA templates from [GtRNAdb](https://gtrnadb.ucsc.edu); 4. RNase P templates from the RNase P database; 5. [Rfam](https://rfam.org) consensus secondary structures for all other RNA types. For each sequence the **R2DT pipeline** automatically selects the template using [ribovore](https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-021-04316-z), folds the sequence into the template structure using [Infernal](https://eddylab.org/infernal/), and visualises it using [Traveler](https://github.com/cusbg/traveler). ![R2DT method overview](_static/img/r2dt-method-overview.png) ## RNA secondary structure in RNAcentral The secondary structures are displayed in text search results, on RNA sequence pages, and in sequence similarity search results. For example, text search results include simplified outlines of the structures: [![Secondary structures in text search](_static/img/2d-in-text-search.png)](https://rnacentral.org/search?q=RNA) Clicking on any thumbnail shows a detailed diagram, such as the following fly RNase P structure: [![Example 2D diagram](_static/img/2d-example.png)](https://rnacentral.org/rna/URS00001AD746/7227?tab=2d) ### What do colours mean? The differences between the template and the sequence are highlighted in colour. The nucleotides shown in black are identical to the template while the nucleotides that differ from the template are shown in several colours depending on whether it's an insertion (magenta) or modification (green). ## Running R2DT yourself To draw the secondary structure of your own sequences, use the [R2DT web application](https://rnacentral.org/r2dt). R2DT can also be run through an API or on the command line. See [R2DT](r2dt-software.md) under Tools. [Browse all sequences with 2D structures →](https://rnacentral.org/search?q=has_secondary_structure:%22True%22)