Skip to content

bdslab/TARNAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

TARNAS

A TrAnslator for RNA Secondary structure formats

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Credits
  7. Contact Information

About The Project

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.

(back to top)

Built With

TARNAS was developed with:

(back to top)

Getting Started

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.

Prerequisites

To run TARNAS, the following requirements must be met.

  • Java 19

If you want to run the program via Maven:

  • Maven

Installation

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.

(back to top)

Usage

  • If you cloned the repo, you can use Maven to execute TARNAS.
    Position yourself inside the TARNAS folder, which contains the pom.xml, and type the following command:

    mvn clean javafx:run
  • If you downloaded the TARNAS.jarfrom the latest release, you can use Java 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:
  1. 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)

    All uploaded files must have the same format. TARNAS does not provide translation or cleaning options between multiple files of different formats.

    The user can also remove all uploaded files via the `RESET button`.
  2. Once one or more files have been uploaded, the user can perform either the cleaning operation or the translation 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:

| File Name | Format | Remove | Preview |

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

  1. CLEANING OPTIONS: they are on the left 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 a word and every comment that forms the header and contains the word 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 to merge 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.

  2. TRANSLATION OPTIONS: they are on the right 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`.

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GNU License. See LICENSE.txt for more information.

(back to top)

Credits

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

(back to top)

Contact Information

Please report any issue to [email protected] or to Luca Tesei, Polo Informatico, via Madonna delle Carceri 7, 62032 Camerino (MC) Italy.

(back to top)

About

TrAnslator for RNA Secondary structure formats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages