Next Article in Journal
A Dual-Targeting Peptide Inhibitor Simultaneously Blocking Viral Attachment and Membrane Fusion for Broad-Spectrum Inhibition of SARS-CoV-2
Previous Article in Journal
Moro Orange (Citrus sinensis (L.) Osbeck) Extract Mitigates Metabolic Dysregulation, Inflammation, Oxidative Stress, and Adipose Tissue Hyperplasia in Obese Rats
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

TARNAS: A Software Tool for Abstracting and Translating RNA Secondary Structures

by
Michela Quadrini
,
Piero Hierro Canchari
,
Piermichele Rosati
and
Luca Tesei
*
School of Sciences and Technology, University of Camerino, Via Madonna delle Carceri 7, 62032 Camerino, Italy
*
Author to whom correspondence should be addressed.
Int. J. Mol. Sci. 2025, 26(12), 5728; https://doi.org/10.3390/ijms26125728
Submission received: 15 May 2025 / Revised: 11 June 2025 / Accepted: 12 June 2025 / Published: 15 June 2025
(This article belongs to the Section Molecular Genetics and Genomics)

Abstract

Ribonucleic acids (RNAs) fold into complex structures that are strongly associated with their biological functions. These can be abstracted into secondary structures, represented as nucleotide sequences annotated with base-pairing information. This abstraction is both biologically relevant and computationally manageable. Comparing and classifying RNA molecules typically relies on these secondary structure representations, which exist in multiple formats. In this work, we introduce TARNAS 1.0, a software tool designed to convert RNA secondary structure representations across multiple formats, including Base Pair Sequence (BPSEQ), Connect Table (CT), dot-bracket, Arc-Annotated Sequence (AAS), Fast-All (FASTA), and RNA Markup Language (RNAML). The tool offers options for retaining or removing comments, blank lines, and headers during the conversion process. These format translation and preprocessing capabilities are specifically designed to support the batch handling of large collections of RNA molecules, making TARNAS well suited for large dataset construction and database curation. Beyond format translation, TARNAS computes three levels of abstraction for RNA secondary structures, namely core, core plus, and shape, as well as a set of statistical descriptors for both primary and secondary structure. These abstraction and analysis features are intended to facilitate the comparison of molecules and the identification of recurring structural patterns, which are essential steps for associating structural motifs with molecular function. TARNAS is available as both a standalone desktop application and a web-based tool. The desktop version supports batch processing of large datasets, while the web version is optimized for the analysis of single molecules.

1. Introduction

Ribonucleic acids (RNAs) are single-stranded molecules that encode genetic information and perform biological functions, including transcription, splicing, translation, and regulation of protein function. Each single strand consists of four nucleotides: adenine (A), guanine (G), cytosine (C), and uracil (U). Such single-stranded molecules fold onto themselves, resulting in complex three-dimensional configurations. Different base pairs are established between nucleotides during the folding process. These are commonly classified as canonical, such as Watson-Crick-Franklin base pairs (A–U and G–C), and non-canonical, which include wobble (G–U), sheared, and Hoogsteen interactions [1]. Although G–U wobble pairs are sometimes considered non-canonical, they are frequently observed in RNA stems and exhibit a geometry closely resembling canonical base pairs.
Secondary structures are molecular abstractions that disregard molecular spatial configuration and consider only canonical base pairs. Each secondary structure can be schematically represented as an arc diagram, as shown in Figure 1, where the vertices represent nucleotides in a straight line (backbone), and the base pairs are drawn as arcs in the upper half-plane. RNA secondary structures may be pseudoknot-free or include pseudoknots. A structure is pseudoknot-free if its corresponding arc diagram exhibits no crossing interactions between base pairs (Figure 1a). Conversely, it is classified as pseudoknotted when such crossings are present (Figure 1b).
Analyzing RNA secondary structures is essential for understanding RNA function across a wide range of biological contexts, as this abstraction retains biologically meaningful features while remaining computationally tractable. The comparison and classification of RNA secondary structures are critical in applications such as function prediction and the study of regulatory mechanisms in gene expression. To assess structural similarity or dissimilarity, a variety of alignment-based techniques have been developed. For instance, RNAdistance [2] and PSMAlign [3] use edit-distance-based approaches, while RNAforester [4,5] applies tree alignment methods. Other tools, including MiGaL [6], TreeMatching [7], Gardenia [8], and ASPRAlign [9], follow similar alignment strategies. Additionally, approaches such as PskOrder [10] and RAG-2D [11] incorporate concepts from graph theory and topological analysis.
These tools often rely on different input formats for RNA secondary structures due to the absence of a universal standard. For instance, PSMAlign requires structures in dot-bracket format, whereas RAG-2D uses the Connect Table (CT) format. Moreover, some tools, such as ASPRAlign, support multiple formats, including Base Pair Sequences (BPSEQ) and Arc-Annotated Sequences (AAS). Finally, public databases do not always provide RNA secondary structures in all formats. Consequently, structure conversion is usually needed when combining data from multiple sources or using different tools in parallel.
Several tools have been proposed in the literature to convert RNA secondary structures across different formats, including RNApdbee [12] and its later versions, RNApdbee 2.0 and 3.0 [13]. These web-based platforms provide useful functionalities such as the derivation of 2D structures from 3D data and visualization features. However, they are limited to processing a single RNA structure at a time, which restricts their applicability for tasks such as benchmark construction, dataset generation, and large-scale comparison or statistical analysis. For example, in [14], some of the authors proposed a framework to evaluate RNA secondary structure comparison methods, both with and without pseudoknots. Building a comprehensive dataset to assess the various tools was time-consuming and error-prone, emphasizing the need for a scalable solution capable of handling multiple formats and large sets of RNA molecules.
In this work, we present TARNAS, preliminarily introduced in [15], a software tool designed to translate RNA secondary structure formats in single and batch modes. TARNAS supports the main formats for encoding RNA secondary structures, including BPSEQ, CT, dot-bracket, and Arc-Annotated Sequences (AAS), representing Watson–Crick–Franklin base pairs and wobble pairs. In addition, TARNAS supports FASTA, which encodes only the primary RNA sequence without structural information, and RNAML, an XML-based format capable of representing not only secondary structures, but also non-canonical interactions and tertiary structure annotations. These formats, except RNAML, are typically encoded as plain text files consisting of two main sections: a header containing metadata such as the organism name or ID code and a body describing the structural or bonding information of the molecule. Section 3.1 describes each of the supported formats in detail.
In addition to format translation, TARNAS provides advanced capabilities for the structural abstraction and analysis of RNA secondary structures. It implements three levels of abstraction—core, core plus, and shape—which reduce structural complexity while preserving essential features. Shapes, originally introduced in [16,17], are obtained by removing unpaired nucleotides and collapsing parallel arcs into a single arc. Two arcs are considered parallel if they are nested and no nucleotides lie between their endpoints. The core and core plus abstractions, proposed by the authors in [15], follow the same general principle but differ in the order of operations: in core, unpaired nucleotides are removed first, followed by arc collapsing; in core plus, arcs are collapsed first, and unpaired nucleotides are then removed. Figure 2a–c illustrates the core, core plus, and shape abstractions of the RNA molecule shown in Figure 1. Complementing these abstractions, TARNAS also offers several analytical and preprocessing options, such as generating statistics files, choosing to include or exclude non-canonical base pairs, and retaining or discarding headers during format translation. These abstraction and analysis functionalities are designed to support large-scale comparison tasks and the identification of conserved structural patterns, which are essential for linking RNA structure to molecular function.
The remainder of this paper is organized as follows. Section 2.1 presents the architecture of TARNAS along with the available versions. Section 2.2 describes the user interface and the format translation functionalities. Section 2.3 illustrates the application of structural abstractions on a large dataset, while Section 2.4 explores the use of statistical descriptors. Section 3.1 provides a detailed overview of the supported formats, and Section 3.2 explains the abstractions that can be computed. Finally, Section 4 summarizes the contributions of this work and outlines directions for future research.

2. Results and Discussion

This section presents the architecture and distribution of TARNAS, followed by a detailed demonstration of its functionalities on a large dataset.

2.1. TARNAS Architecture and Distribution

The TARNAS tool is implemented in Java and uses the ANTLR4 tool [18] to generate parsers from grammars that formally define the syntax of each supported format. RNAML, due to its XML-based structure, is instead processed using the W3C Document Object Model (DOM) API [19]. The source code and version 1.0 release of TARNAS are available at [20], while a companion tutorial—including the dataset used in this work and the ANTLR4 grammar definition—is provided in [21].
TARNAS is distributed in two versions: a standalone desktop application and a web-based application. The desktop version, available at [20] as standalone executable JAR files, supports batch processing for efficient handling of large datasets. It is compatible with Linux, Windows, and macOS systems running Java SE Runtime Environment 19 or higher. Both a graphical user interface (GUI) and a command-line interface (CLI) are provided, allowing users to choose between interactive use and integration into automated computational pipelines. The CLI version of TARNAS can be called from the command line as follows:
  • > java -jar TARNAS_CLI.jar [options]
  • Option -h displays a complete list of available commands and options.
The web application, accessible at https://bdslab.unicam.it/tarnas/ (accessed on 14 May 2025), is built using Spring Boot [22] and Node.js [23] on the back end, and Angular [24] for the single-page front end. Unlike the desktop version, the web interface is currently limited to processing one molecule at a time.
TARNAS provides several key functionalities, including format translation and preprocessing, structural abstraction, and the computation of statistical descriptors. These features are described in detail in the following sections.

2.2. Translation of Formats

On the TARNAS home page, which is available in both the web application and standalone GUI versions, users can upload and edit RNA secondary structure files in one of the supported formats: BPSEQ, CT, dot-bracket, AAS, FASTA, and RNAML. The web application processes one file at a time, whereas the standalone application can simultaneously load and process multiple files. Figure 3 and Figure 4 show the respective home pages.
Users can convert uploaded RNA secondary structures into any of the formats supported by TARNAS, as listed in Table 1. Additionally, they can choose whether to include or exclude headers and comments, and optionally generate a statistical summary of the structure.
Tools such as RNAView [25], which extracts secondary structures from the RCSB Protein Data Bank (PDB) [26], may include both canonical and non-canonical base pairs in their output files (e.g., RNAML or other text files). When TARNAS receives an RNAML input file, users can choose whether to retain or discard non-canonical base pairs. If retained, non-canonical pairs (e.g., C–C or G–G) are saved in a separate CSV file because these pairs are not supported by most formats (BPSEQ, CT, dot-bracket, AAS, and FASTA).

2.3. Structural Abstractions

We selected a dataset of 1460 5S ribosomal RNA (5S rRNA) molecules that entered the RCSB Protein Data Bank repository [26], containing experimental data on their three-dimensional structure. The secondary structure was extracted using the RNAView tool [25] to produce one RNAML file for each molecule.
Using TARNAS, all molecules in the dataset were translated into the BPSEQ, CT, dot-bracket, AAS, FASTA, and RNAML formats. Subsequently, we computed the core, core plus, and shape abstractions for each molecule. The complete dataset, along with all computed abstractions and the additional data used in the examples, is available in [21].
We now present an example of pattern-based comparison and classification using the shape abstractions. Table 2 reports the number of occurrences for each shape found in the dataset. Notably, a significant portion of the molecules— Group 1, comprising nearly 50%—shared the same shape, which corresponds to a pseudoknot of order 1, commonly referred to as H-type pseudoknot [16,27]. Another large subset—Group 2, approximately 45%—included molecules without a defined shape, typically due to the absence of pseudoknots. Group 3, accounting for only 2.5% of the dataset, consisted of molecules in which an H-type pseudoknot is nested within another H-type pseudoknot. The remaining molecules were aggregated into a final group, as their corresponding shape sets contained only singletons or rare patterns, which were considered statistically insignificant.
Table 3 lists the same computation for the core abstraction. In this case, we observed that the larger groups could be divided into molecules without pseudoknots (2c, 4c, 5c, and 6c, for a total of 623 molecules) and molecules with pseudoknots (1c, 3c, and 7c, for a total of 637 molecules). Molecules without pseudoknots nearly correspond to the null shaped group 2s, which amounts to 667 molecules. Molecules with pseudoknots in groups 1c and 3c (606 molecules) could be abstracted into the major shape group (1s, 717 molecules). The 31 molecules in group 7c can be abstracted into group 3s shapes with 41 occurrences. As in the previous case, the remaining groups contained only a few occurrences and were considered insignificant in this experiment.
Finally, Table 4 presents the computations for the core plus motifs. The less significant groups were far more numerous, accounting for approximately 56% of the molecules. Nevertheless, the first nine groups followed the same pattern as the core, since the molecules without pseudoknots (groups 4cp, 5cp, 6cp, 7cp, and 9cp) correspond to the core without pseudoknots, which in turn correspond to the null shapes (group 2s). Molecules with pseudoknots in groups 1cp, 2cp, and 3cp can be abstracted into core groups 1c and 3c, which are represented by the core group 1s. Similarly, molecules with pseudoknots in group 8cp can be abstracted into core group 7c, which can be further abstracted into shape group 3s.
In summary, the 5S rRNAs in the analyzed dataset can be grouped into three distinct clusters, corresponding to the first three identified shape categories:
  • molecules following the motif of an H-type pseudoknot,
  • molecules without pseudoknots, and
  • molecules featuring an H-type pseudoknot nested within a larger H-type pseudoknot.
This clustering was further corroborated by the analysis of core and core plus abstractions, which reflected similar structural distinctions.
These results are partly expected, given the nature of the abstractions and the well-characterized structure of 5S rRNA. Nonetheless, this example illustrates the potential of TARNAS for structure-based pattern analysis and classification. While the clusters observed here align with known structural properties, applying the same methodology to less studied or heterogeneous datasets could uncover previously undetected patterns and biologically meaningful structural groupings.

2.4. Statistics on Sequence and Structural Information

The statistics file currently generated by TARNAS includes the following:
  • sequence length and nucleotide counts (for the primary sequence),
  • number of base pairs and counts of specific pairs (G–C, A–U, and G–U).
Table 5 shows the mean and standard deviation of the occurrence of nucleotides and bonds in the 1460 molecules of the dataset. These values were obtained from the raw data computed using TARNAS for each molecule, available at [21].
This statistical information can be used for the classification and comparison of primary and secondary structures. For instance, computed statistics and measures can characterize a family of RNAs or a group of functionally similar molecules with a fair degree of precision. This might be a first step toward a subsequent, more tailored investigation.
Moreover, these data can be used to study correlations between primary and secondary structures or a particular abstraction such as core, core plus, and shape. As the structure is related to the function of the molecule, it may provide an opportunity to characterize biological information using a relatively simple and fast computational approach.

3. Materials and Methods

Various data formats have been developed to encode RNA secondary structure information. Section 3.1 presents these formats in detail, and Section 3.2 introduces the RNA abstractions that TARNAS can compute.

3.1. Data Formats and Translation

BPSEQ [28] is a text format in which each line corresponds to a nucleotide in the primary RNA sequence. Each line includes the nucleotide position (starting from 1 for the leftmost position, 5’), nucleotide base (e.g., A, C, G, U, or other IUPAC code [29] characters), and the position of the paired base. A value of 0 indicates that the nucleotide is unpaired (referred to as a residue).
CT [30] is a text format in which the first line typically contains metadata of a sequence. The standard format for this line is <sequence_length> <sequence_name or description>. Each subsequent line represents a nucleotide and provides the following information: index i, the nucleotide at position i, 5’-connected base index ( i 1 ) , 3’-connected base index ( i + 1 ) , paired base index (or 0 if unpaired), and original sequence index.
Figure 5a and Figure 5b show the RNA secondary structures from Figure 1 in the BPSEQ and CT formats, respectively.
The (extended) dot-bracket format [31] consists of two lines: the first line lists the nucleotide sequence (from 5’ to 3’), and the second line describes the secondary structure using dots (for unpaired nucleotides) and various types of brackets such as (, ), [, ], {, }, <, >, or uppercase/lowercase letters to represent paired nucleotides. Non-parenthesis brackets and uppercase/lowercase notations are used to indicate pseudoknots. In the presence of pseudoknots, TARNAS employs the first-come-first-served algorithm proposed in [32] to manage their representation.
AAS [9] is a format similar to dot-bracket, but presents base pairs as a list of coordinate pairs ( i 1 , j 1 ) ; ( i 2 , j 2 ) ; ; ( i n , j n ) . Each pair corresponds to the position of the paired nucleotides. The nucleotide sequence is optional in this format.
FASTA is a widely used text format for representing nucleotide or protein sequences. It consists of a sequence identifier (or header line) that begins with a > symbol, followed by a description of the sequence. This is followed by one or more lines of sequence data, typically consisting of letters that represent nucleotides (A, T, C, and G for DNA or RNA) or amino acids for proteins using IUPAC codes [33].
Figure 6a, Figure 6b and Figure 6c depict the RNA secondary structure from Figure 1 in dot-bracket, AAS, and FASTA formats, respectively.
RNAML [34,35] is an XML-based format that describes RNA molecules, interactions, and relevant reference information. Figure 6a illustrates the RNA secondary structure from Figure 1 represented in RNAML. In line with the XML design principles, RNAML data are organized hierarchically using markup elements (see Figure 7). Each RNA molecule is described by an identity element that specifies its molecular name and additional details. Structural details are contained in the molecular element (Figure 7b), while higher-level components such as base pairs, stacking, helices, and pseudoknots are included in the str-annotation element (Figure 7c). Several RNAML elements are optional. Unlike the other formats, which are parsed using ANTLR4 [18,36], RNAML is processed using the W3C Document Object Model (DOM) API [19], which enables structured and hierarchical parsing of its content.
The workflow implemented in TARNAS for format translation is depicted in Figure 8.

3.2. RNA Secondary Structure Abstractions

TARNAS allows users to derive three levels of abstraction for RNA secondary structures: core, core plus, and shape. These can be computed for any input molecule using a dedicated option and are returned in dot-bracket format. The abstractions are designed to reduce structural complexity while preserving features relevant to comparative and functional analysis.
The shape abstraction is derived from the arc diagram of the RNA molecule [17]. The process to obtain the shape removes all unpaired nucleotides and collapses sets of nested arcs or parallel arcs into a single representative arc. Two arcs, ( i 1 , j 1 ) and ( i 2 , j 2 ) , are parallel if i 1 < i 2 and j 2 > j 1 , with no vertices between i 1 and i 2 or between j 2 and j 1 . Figure 2a shows the shape abstraction of the RNA structure represented in Figure 1.
Core and core plus [15] are derived using a similar process. The core abstraction first removes unpaired nucleotides and then collapses parallel arcs, while the core plus abstraction performs these steps in reverse. Figure 2b and Figure 2c shows the core and core plus abstraction of the RNA structure represented in Figure 1, respectively.

4. Conclusions

This study introduced TARNAS, a Java-based application that supports manipulating and transforming RNA secondary structure data. The tool supports conversion among formats, such as BPSEQ, CT, dot-bracket, AAS, FASTA, and RNAML. In addition to format translation, TARNAS provides functionality for abstracting RNA structures into three higher-level representations: core, core plus, and shape. The tool also offers options for generating a statistics file about the structure, including or excluding the header and retaining or discarding non-canonical base pairs when an RNAML input is provided. TARNAS is a standalone desktop application featuring GUI and CLI interfaces and a web application. The desktop version supports batch processing, enabling users to handle large numbers of RNA molecules efficiently.
In future studies, we plan to enhance TARNAS by incorporating functionalities for deriving RNA secondary structures directly from 3D molecular data, leveraging established tools such as 3DNA/DSSR [37] and RNAView [25]. We also intend to support multi-strand RNA structures, such as those found in viral genomes or RNA–RNA interaction complexes. This will involve extending simple formats like dot-bracket, CT, and BPSEQ, which typically do not distinguish whether base pairs occur within a single strand or between different strands.
In addition, we aim to compute further quantitative features, including pseudoknot order and the occurrence of key structural elements such as hairpins, helices, and loops. To support structural interpretation and improve usability, we plan to integrate visualization tools such as PseudoViewer [38], R-chie [39], VARNA [40], forna [41], and R2DT [42] for generating graphical representations of RNA secondary structures.
Finally, we plan to introduce a feature that will allow users to manually edit RNA secondary structures, enabling direct modification of base pairs or abstractions prior to analysis.

Author Contributions

M.Q. and L.T. designed the research; M.Q. retrieved the datasets; M.Q. and L.T. analyzed the data and integrated the results; M.Q. and L.T. performed experiments; P.H.C. and P.R. developed and tested the software; M.Q. and L.T. wrote the paper with input from the other authors. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the European Union’s Next-GenerationEU National Recovery and Resilience Plan (NRRP), Mission 4, Component 2, Investment 1.1, under the PRIN 2022 PNRR call (Ministerial Decree No. 1409, dated September 14, 2022), project: P2022FFEWN RNA secondary structures and their relationship with function: application to non-coding RNAs (RNA2Fun), CUP: J53D23014960001. M.Q. is a member of the GNCS-INdAM.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are available at [21], and code is available at https://github.com/bdslab/TARNAS (accessed on 14 May 2025) [20]. The web version of TARNAS is available at https://bdslab.unicam.it/tarnas/ (accessed on 14 May 2025).

Acknowledgments

The authors thank Marvin Sincini for the initial version of the code for RNAML parsing.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Leontis, N.B.; Westhof, E. Geometric nomenclature and classification of RNA base pairs. RNA 2001, 7, 499–512. [Google Scholar] [CrossRef] [PubMed]
  2. Shapiro, B.A.; Zhang, K. Comparing multiple RNA secondary structures using tree comparisons. Bioinformatics 1990, 6, 309–318. [Google Scholar] [CrossRef] [PubMed]
  3. Chiu, J.K.H.; Chen, Y.P.P. Pairwise RNA secondary structure alignment with conserved stem pattern. Bioinformatics 2015, 31, 3914–3921. [Google Scholar] [CrossRef]
  4. Hochsmann, M.; Voss, B.; Giegerich, R. Pure multiple RNA secondary structure alignments: A progressive profile approach. IEEE/ACM Trans. Comput. Biol. Bioinform. 2004, 1, 53–62. [Google Scholar] [CrossRef]
  5. Hochsmann, M.; Toller, T.; Giegerich, R.; Kurtz, S. Local similarity in RNA secondary structures. In Proceedings of the 2003 IEEE Bioinformatics Conference—CSB2003, Stanford, CA, USA, 11–14 August 2003; IEEE: Piscataway, NJ, USA, 2003; pp. 159–168. [Google Scholar]
  6. Allali, J.; Sagot, M.F. A multiple layer model to compare RNA secondary structures. Softw. Pract. Exp. 2008, 38, 775–792. [Google Scholar] [CrossRef]
  7. Ouangraoua, A.; Ferraro, P.; Tichit, L.; Dulucq, S. Local similarity between quotiented ordered trees. J. Discret. Algorithm 2007, 5, 23–35. [Google Scholar] [CrossRef]
  8. Blin, G.; Denise, A.; Dulucq, S.; Herrbach, C.; Touzet, H. Alignments of RNA structures. IEEE/ACM Trans. Comput. Biol. Bioinform. 2010, 7, 309–322. [Google Scholar] [CrossRef]
  9. Quadrini, M.; Tesei, L.; Merelli, E. ASPRAlign: A tool for the alignment of RNA secondary structures with arbitrary pseudoknots. Bioinformatics 2020, 36, 3578–3579. [Google Scholar] [CrossRef] [PubMed]
  10. Zok, T.; Badura, J.; Swat, S.; Figurski, K.; Popenda, M.; Antczak, M. New models and algorithms for RNA pseudoknot order assignment. Int. J. Appl. Math. Comput. Sci. 2020, 30, 315–324. [Google Scholar] [CrossRef]
  11. Gan, H.H.; Fera, D.; Zorn, J.; Shiffeldrim, N.; Tang, M.; Laserson, U.; Kim, N.; Schlick, T. RAG: RNA-As-Graphs database—Concepts, analysis, and features. Nutr. Health 1987, 5, 1285–1291. [Google Scholar] [CrossRef]
  12. Antczak, M.; Zok, T.; Popenda, M.; Lukasiak, P.; Adamiak, R.W.; Blazewicz, J.; Szachniuk, M. RNApdbee—A webserver to derive secondary structures from pdb files of knotted and unknotted RNAs. Nucleic Acids Res. 2014, 42, W368–W372. [Google Scholar] [CrossRef]
  13. Zok, T.; Antczak, M.; Zurkowski, M.; Popenda, M.; Blazewicz, J.; Adamiak, R.W.; Szachniuk, M. RNApdbee 2.0: Multifunctional tool for RNA structure annotation. Nucleic Acids Res. 2018, 46, W30–W35. [Google Scholar] [CrossRef] [PubMed]
  14. Quadrini, M.; Tesei, L.; Merelli, E. Automatic generation of pseudoknotted RNAs taxonomy. BMC Bioinform. 2022, 23, 575. [Google Scholar] [CrossRef]
  15. Quadrini, M.; Hierro Chancari, P.; Rosati, P.; Tesei, L. TARNAS, a TrAnslator for RNA Secondary Structure Formats. In Proceedings of the 19th International Meeting, CIBB 2024, Benevento, Italy, 4–6 September 2024; Revised Selected Papers; Lecture Notes in Computer Science. Cerulo, L., Napolitano, F., Bardozzo, F., Cheng, L., Occhipinti, A., Pagnotta, S., Eds.; Springer: Cham, Switzerland, 2025. [Google Scholar]
  16. Bon, M.; Vernizzi, G.; Orland, H.; Zee, A. Topological classification of RNA structures. J. Mol. Biol. 2008, 379, 900–911. [Google Scholar] [CrossRef]
  17. Huang, F.W.; Reidys, C.M. Shapes of topological RNA structures. Math. Biosci. 2015, 270, 57–65. [Google Scholar] [CrossRef]
  18. Parr, T. The Definitive ANTLR 4 Reference; Pragmatic Bookshelf: Raleigh, NC, USA, 2013; Available online: https://pragprog.com/titles/tpantlr2/the-definitive-antlr-4-reference/ (accessed on 14 May 2025).
  19. Flanagan, D. JavaScript: The Definitive Guide; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2011. [Google Scholar]
  20. Quadrini, M.; Hierro Canchari, P.; Rosati, P.; Tesei, L. Release of TARNAS 1.0.0, a software tool for RNA secondary structure abstraction and format translation. Zenodo 2025. [Google Scholar] [CrossRef]
  21. Quadrini, M.; Canchari, P.H.; Rosati, P.; Tesei, L. TARNAS—A Tool for Translating and Abstracting RNA Secondary Structures—Software Documentation and Dataset. Zenodo 2025. [Google Scholar] [CrossRef]
  22. Walls, C. Spring Boot in Action; Manning Publications: Greenwich, CT, USA, 2016. [Google Scholar]
  23. Tilkov, S.; Vinoski, S. Node.js: Using JavaScript to build high-performance network programs. IEEE Internet Comput. 2010, 14, 80–83. [Google Scholar] [CrossRef]
  24. Freeman, A. Pro Angular: Build Powerful and Dynamic Web Apps, 5th ed.; Apress: Berkeley, CA, USA, 2022. [Google Scholar] [CrossRef]
  25. Yang, H.; Jossinet, F.; Leontis, N.; Chen, L.; Westbrook, J.; Berman, H.; Westhof, E. Tools for the automatic identification and classification of RNA base pairs. Nucleic Acids Res. 2003, 31, 3450–3460. [Google Scholar] [CrossRef]
  26. Burley, S.K.; Berman, H.M.; Kleywegt, G.J.; Markley, J.L.; Nakamura, H.; Velankar, S. Protein Data Bank (PDB): The Single Global Macromolecular Structure Archive. In Protein Crystallography: Methods and Protocols; Springer: New York, NY, USA, 2017; pp. 627–641. [Google Scholar] [CrossRef]
  27. Reidys, C.M.; Huang, F.W.; Andersen, J.E.; Penner, R.C.; Stadler, P.F.; Nebel, M.E. Topology and prediction of RNA pseudoknots. Bioinformatics 2011, 27, 1076–1085. [Google Scholar] [CrossRef]
  28. Cannone, J.J.; Subramanian, S.; Schnare, M.N.; Collett, J.R.; D’Souza, L.M.; Du, Y.; Feng, B.; Lin, N.; Madabusi, L.V.; Müller, K.M.; 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. 2002, 3, 2. [Google Scholar] [CrossRef] [PubMed]
  29. Johnson, A.D. An extended IUPAC nomenclature code for polymorphic nucleic acids. Bioinformatics 2010, 26, 1386–1389. [Google Scholar] [CrossRef]
  30. Mathews, D.H.; Sabina, J.; Zuker, M.; Turner, D.H. Expanded sequence dependence of thermodynamic parameters improves prediction of RNA secondary structure. J. Mol. Biol. 1999, 288, 911–940. [Google Scholar] [CrossRef]
  31. Hofacker, I.L.; Fontana, W.; Stadler, P.F.; Bonhoeffer, S.; Tacker, M.; Schuster, P. Fast folding and comparison of RNA secondary structures. Monatshefte Chem./Chem. Mon. 1994, 125, 167–188. [Google Scholar] [CrossRef]
  32. Antczak, M.; Popenda, M.; Zok, T.; Zurkowski, M.; Adamiak, R.W.; Szachniuk, M. New algorithms to represent complex pseudoknotted RNA structures in dot-bracket notation. Bioinformatics 2018, 34, 1304–1312. [Google Scholar] [CrossRef]
  33. Pearson, W.R.; Lipman, D.J. Improved tools for biological sequence comparison. Proc. Natl. Acad. Sci. USA 1988, 85, 2444–2448. [Google Scholar] [CrossRef] [PubMed]
  34. Masuya, H.; Griffiths-Jones, S.; Bateman, A.; Quang, T.T.; Gaudin, N.; Lowe, T.M. RNAML: A Standard Syntax for Exchanging RNA Information. Bioinformatics 2006, 22, 628–636. [Google Scholar] [CrossRef]
  35. Waugh, A.; Gendron, P.; Altman, R.; Brown, J.W.; Case, D.; Gautheret, D.; Harvey, S.C.; Leontis, N.; Westbrook, J.; Westhof, E.; et al. RNAML: A standard syntax for exchanging RNA information. RNA 2002, 8, 707–717. [Google Scholar] [CrossRef]
  36. Parr, T. ANTLR Website. Available online: https://www.antlr.org/ (accessed on 14 May 2025).
  37. 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. 2003, 31, 5108–5121. [Google Scholar] [CrossRef]
  38. Byun, Y.; Han, K. PseudoViewer3: Generating planar drawings of large-scale RNA structures with pseudoknots. Bioinformatics 2009, 25, 1435–1437. [Google Scholar] [CrossRef]
  39. 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. 2012, 40, e95. [Google Scholar] [CrossRef] [PubMed]
  40. Darty, K.; Denise, A.; Ponty, Y. VARNA: Interactive drawing and editing of the RNA secondary structure. Bioinformatics 2009, 25, 1974–1975. [Google Scholar] [CrossRef] [PubMed]
  41. Kerpedjiev, P.; Hammer, S.; Hofacker, I.L. Forna (force-directed RNA): Simple and effective online RNA secondary structure diagrams. Bioinformatics 2015, 31, 3377–3379. [Google Scholar] [CrossRef]
  42. McCann, H.; Meade, C.D.; Williams, L.D.; Petrov, A.S. R2DT: A comprehensive platform for visualizing RNA secondary structure. Nat. Commun. 2021, 12, 3494. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Arc diagram representation of RNA secondary structures. Red circles indicate nucleotides, while arcs denote base-pair interactions. The motif shown in part (a) is pseudoknot-free, whereas the one in part (b) contains a pseudoknot.
Figure 1. Arc diagram representation of RNA secondary structures. Red circles indicate nucleotides, while arcs denote base-pair interactions. The motif shown in part (a) is pseudoknot-free, whereas the one in part (b) contains a pseudoknot.
Ijms 26 05728 g001
Figure 2. The shape (a), core (b), and core plus (c) abstractions of the RNA secondary structure depicted in Figure 1.
Figure 2. The shape (a), core (b), and core plus (c) abstractions of the RNA secondary structure depicted in Figure 1.
Ijms 26 05728 g002
Figure 3. Interface of the TARNAS web app.
Figure 3. Interface of the TARNAS web app.
Ijms 26 05728 g003
Figure 4. Interface of the TARNAS standalone version.
Figure 4. Interface of the TARNAS standalone version.
Ijms 26 05728 g004
Figure 5. BPSEQ (a) and CT (b) representations of the RNA secondary structure from Figure 1.
Figure 5. BPSEQ (a) and CT (b) representations of the RNA secondary structure from Figure 1.
Ijms 26 05728 g005
Figure 6. RNAML (a), AAS (b), dot-bracket (c), and FASTA (d) representations of the RNA secondary structure from Figure 1.
Figure 6. RNAML (a), AAS (b), dot-bracket (c), and FASTA (d) representations of the RNA secondary structure from Figure 1.
Ijms 26 05728 g006
Figure 7. Schematic view of key RNAML markup elements. (a) Top-level RNAML elements. (b) Elements within the molecule description. (c) Elements used in tertiary structure annotation.
Figure 7. Schematic view of key RNAML markup elements. (a) Top-level RNAML elements. (b) Elements within the molecule description. (c) Elements used in tertiary structure annotation.
Ijms 26 05728 g007
Figure 8. TARNAS workflow for translation. Each molecule file is parsed using either ANTLR4 or the W3C DOM, producing an internal representation of the secondary structure. This internal structure is then rendered in the requested output format.
Figure 8. TARNAS workflow for translation. Each molecule file is parsed using either ANTLR4 or the W3C DOM, producing an internal representation of the secondary structure. This internal structure is then rendered in the requested output format.
Ijms 26 05728 g008
Table 1. Compatibility between formats. A ✓ indicates that the translation is possible, while a × indicates that it is not. The “no seq.” versions of the dot-bracket and AAS formats contain only structural information, without the primary sequence. Formats that lack sequence data can be converted only into other structure-only formats, while formats containing only the primary sequence (such as FASTA) cannot be converted into structural formats.
Table 1. Compatibility between formats. A ✓ indicates that the translation is possible, while a × indicates that it is not. The “no seq.” versions of the dot-bracket and AAS formats contain only structural information, without the primary sequence. Formats that lack sequence data can be converted only into other structure-only formats, while formats containing only the primary sequence (such as FASTA) cannot be converted into structural formats.
Dot-BracketDot-BracketRNAMLCTBPSEQAASAASFASTA
No Seq No Seq
dot-bracket××××××
no seq
dot-bracket
RNAML
CT
BPSEQ
AAS
AAS no seq××××××
FASTA×××××××
Table 2. Distribution of shape motifs in the dataset.
Table 2. Distribution of shape motifs in the dataset.
GroupShapeNumberPercentage
1s([)]71749.1%
2sNull Shape66745.6%
3s([)([)]]412.8%
4sOther Shapes352.5%
Table 3. Distribution of core motifs in the dataset.
Table 3. Distribution of core motifs in the dataset.
GroupCoreNumberPercentage
1c((([)])())44530.48%
2c(()())30120.62%
3c(((([)])())())16111.03%
4c(()(()()))1157.88%
5c((()())(()()))1077.33%
6c((()())())1006.85%
7c([[)((([)])())](()())]312.12%
8cOther Cores20013.70%
Table 4. Distribution of core plus motifs in the dataset.
Table 4. Distribution of core plus motifs in the dataset.
GroupCore PlusNumberPercentage
1cp(((((([)]))))(()))20213.84%
2cp(((((([)])())))(()))1026.99%
3cp(((((([)]))))((())))855.82%
4cp(((((()))))(()))624.25%
5cp(((((()))))((())))473.22%
6cp(((((((()))))))((()(()))))412.81%
7cp((((((())))))((())))342.33%
8cp([[[)(((([)])()))]](()(()))]312.12%
9cp((((((()))())))(()(())))302.05%
10cpOther CorePlus82656.58%
Table 5. Statistics of the dataset. A represents the number of adenine nucleotides in the sequence and C represents the number of cytosine nucleotides, G is the number of guanine nucleotides, and U is the number of uracil nucleotides. GC is the number of bonds between G and C (in any order), AU is the number of bonds between A and U, and GU is the number of bonds between G and U. We considered only canonical Watson–Crick–Franklin base pairs and GU wobble pairs.
Table 5. Statistics of the dataset. A represents the number of adenine nucleotides in the sequence and C represents the number of cytosine nucleotides, G is the number of guanine nucleotides, and U is the number of uracil nucleotides. GC is the number of bonds between G and C (in any order), AU is the number of bonds between A and U, and GU is the number of bonds between G and U. We considered only canonical Watson–Crick–Franklin base pairs and GU wobble pairs.
LengthBondsACGUGCAUGU
Mean118.9037.1224.6434.5638.5521.1424.006.204.61
St. Dev.4.053.723.324.064.524.534.223.521.25
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Quadrini, M.; Canchari, P.H.; Rosati, P.; Tesei, L. TARNAS: A Software Tool for Abstracting and Translating RNA Secondary Structures. Int. J. Mol. Sci. 2025, 26, 5728. https://doi.org/10.3390/ijms26125728

AMA Style

Quadrini M, Canchari PH, Rosati P, Tesei L. TARNAS: A Software Tool for Abstracting and Translating RNA Secondary Structures. International Journal of Molecular Sciences. 2025; 26(12):5728. https://doi.org/10.3390/ijms26125728

Chicago/Turabian Style

Quadrini, Michela, Piero Hierro Canchari, Piermichele Rosati, and Luca Tesei. 2025. "TARNAS: A Software Tool for Abstracting and Translating RNA Secondary Structures" International Journal of Molecular Sciences 26, no. 12: 5728. https://doi.org/10.3390/ijms26125728

APA Style

Quadrini, M., Canchari, P. H., Rosati, P., & Tesei, L. (2025). TARNAS: A Software Tool for Abstracting and Translating RNA Secondary Structures. International Journal of Molecular Sciences, 26(12), 5728. https://doi.org/10.3390/ijms26125728

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop