Table of Contents
Comparison of molecules, more specifically of RNA secondary structures is essential for several studies including RNA prediction and evolution. These structures are stored in text files which may have different representation formats. Some formats also admit their own header, which is a set of additional information for that molecule. Multiple representation of RNA secondary structures through the use of multiple formats becomes a major problem when those who always work with a spe- cific format find themselves working with masses of data of quite a different format. This constrains the user to perform manual translation work, which is disadvantageous for 2 main reasons: the time taken to perform the translation and the difficulty in the translation itself, hence the ease in making errors during this process. This is where TARNAS comes in: an innovative translator of RNA secondary structure formats that frees users from always using a specific format and thus allowing them to switch from one format to another quickly and easily. With TARNAS, the problem of additional information is also solved: it provides cleanup options to allow the user to remove from the file any information he or she deems unnecessary.
TARNAS was developed with:
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
To run TARNAS, the following requirements must be met.
- Java 19
If you want to run the program via Maven:
- Maven
You can install TARNAS in several ways:
-
Clone the repo
git clone https://github.com/bdslab/TARNAS
-
Alternatively, download the latest release from TARNAS latest release. Here you can download:
- TARNAS.jar
- Source code (zip)
- Surce code (tar.gz)
It's recommended to download just the jar file
TARNAS.jar
.
-
If you cloned the repo, you can use
Maven
to execute TARNAS.
Position yourself inside theTARNAS folder
, which contains thepom.xml
, and type the following command:mvn clean javafx:run
-
If you downloaded the
TARNAS.jar
from the latest release, you can useJava
to execute TARNAS.
Position yourself inside the folder that contains the jar executable file, and type the following command:java -jar TARNAS.jar
TARNAS works as follows:
-
It takes a
text file as input
representing an RNA secondary structure. the file consists of a header (described by comments) and a body (which is the molecule in that representation).The user can upload:
- a text file via the
ADD FILE button
. - a folder containing multiple text files via the
ADD FOLDER button
. - or directly write the contents of the file via
EDIT FILE button
. In this case, a window will appear where the user can type in the content of the molecule to be represented. Once this has been represented, the programme will ask the user to enter a name for this file (by default example.ct is entered)
- a text file via the
-
Once one or more files have been uploaded, the user can perform either the
cleaning operation
or thetranslation operation
(not both atomically).This means that cleaning and translation cannot be done at the same time. In this case, it is necessary to perform the cleanup operation first, then reload the cleaned files, and then perform any translation.
When one or more files have been loaded within the program, they are displayed within a table that has the following header:
Each row in this table will therefore contain an uploaded file with the following information and options:
- File Name: the name of the uploaded file
- Format: the file format based on the file content
- Remove: an option to delete that file
- Preview: an option to visualize the content of the file
-
CLEANING OPTIONS
: they are on theleft side
of TARNAS and allow the user to:remove all comments
: any comments that form the header are removed.remove lines containing
: the user inputs aword
and every comment that forms the header and contains theword
given as input by the user is deleted.remove empty lines:
all lines that contain blank spaces (spaces, tabs) are deleted.merge lines
: this option is enabled only in Dot-Bracket format (with or without sequence). Since in these formats the sequence and structure can be represented on multiple lines, therefore the option is provided tomerge
all lines into a single line.
Once the desired cleaning options have been selected, you must press the
CLEAN button
to start cleaning on the uploaded files.At this point, the user will be asked to choose where to save the cleaned files, and if successful, a report will be shown of the number of files cleaned and saved in the location specified by the user.
-
TRANSLATION OPTIONS
: they are on theright side
side of TARNAS and allow the user to translate a file from one format to another.
Allowed translations:Dot-Bracket no seq. Dot-Bracket BPSEQ Fasta AAS AAS no seq. CT Dot-Bracket no seq. - X X X X ✓ X Dot-Bracket ✓ - ✓ ✓ ✓ ✓ ✓ BPSEQ ✓ ✓ - ✓ ✓ ✓ ✓ Fasta X X X - X X X AAS ✓ ✓ ✓ ✓ - ✓ ✓ AAS no seq. ✓ X X X X - X CT ✓ ✓ ✓ ✓ ✓ ✓ -
You can select the `include header` checkbox if you want to keep the header during translation.
Also you can save all the translated files in a zip file to reduce the space occupied by them, to do this just select the `save as zip` checkbox and then name the zip file.
When all translation options have been selected, you can start the translation through the `TRANSLATE button`.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GNU License. See LICENSE.txt
for more information.
TARNAS is developed and tested by:
- Piero Hierro, University of Camerino
- Piermichele Rosati, University of Camerino
- Luca Tesei, University of Camerino
TARNAS is tested by:
- Michela Quadrini, University of Camerino
Please report any issue to [email protected] or to Luca Tesei, Polo Informatico, via Madonna delle Carceri 7, 62032 Camerino (MC) Italy.