Have a personal or library account? Click to login
Open Access
|Dec 2013

Abstract

Ruby and Perl are programming languages used in many fields. In this paper we would like to present their usefulness with regard to basic bioinformatic problems. We concentrate on a comparison of widely used Perl and relatively rarely used Ruby to show that Ruby can be a very efficient tool in bioinformatics. Both Perl and Ruby have a built-in regular expressions (or regexp) engine, which is essential in solving many problems in bioinformatics. We present some selected examples: printing the file content, removing comments from a FASTA file, using hashes, printing nucleotides included in a sequence, searching for a specific nucleotide in sequence and translating nucleotide sequences into protein sequences obtained in GenBank format. It is our belief that Ruby’s popularity will rise because of its simple syntax and the richness of its methods. Programs in Ruby are very easy to read and therefore easier to maintain and debug, which are the most important characteristics for a programming language.

DOI: https://doi.org/10.2478/slgr-2013-0032 | Journal eISSN: 2199-6059 | Journal ISSN: 0860-150X
Language: English
Page range: 143 - 155
Published on: Dec 31, 2013
Published by: University of Białystok, Department of Pedagogy and Psychology
In partnership with: Paradigm Publishing Services
Publication frequency: 4 times per year
Related subjects:

© 2013 Maciej Goliński, Agnieszka Kitlas Golińska, published by University of Białystok, Department of Pedagogy and Psychology
This work is licensed under the Creative Commons License.