What is it about Perl that makes it so useful in Bioinformatics ? Why isn't C++ or Matlab or Python the big language?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
closed as primarily opinion-based by gnat, MichaelT, Kilian Foth, Martijn Pieters, Bart van Ingen Schenau Feb 18 '14 at 10:01
Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.
What makes Perl so useful for bioinformatics is that 1) its a relatively easy language to learn, 2) there are lots of pre-existing scripts to use, including bioPerl and 3)chances are the lab you work in has hundreds of scripts and modules, already written in Perl.
The level of the programmer less to do with the choice of language, then the tasks being asked of him. Any advanced or computationally expensive jobs are usually written in Java, or C, and run on a cluster.
One thing to understand about bioinformatics, is that it is a diverse field, with diverse tasks being asked upon those who practice it. Its not uncommon for me to use Perl, R, and Java in one day. Perl for scripting stuff, moving files, downloading things, some basic data analysis etc, R for data visualization, and Java for algorithmic computation/working with and modifying applications. That being said, most of the tasks I do require the use of Perl, however, I would like to switch to Ruby, as it has more advanced functions, lambdas & procs, that can lead to more succinct code and is fully object oriented.
Aside from the inherent virtues of Perl, part of this is simply history. There was a major expansion of bioinformatics at the turn of the century because of the Human Genome Project. At the time Perl was by far the most popular scripting language in general use. Ruby and Python were certainly around, but didn't have nearly the support/mind share they do today. This gave Perl a lot of momentum in the field.
I think the use of Perl in bioinformatics is declining, and R is rapidly increasing in popularity. But for any language you care to name, you can probably find a bioinformatics lab using it.
I am going to add an answer here as I think a lot of them have missed a key point...
Perl is popular in bio-informatics because it is originally a text-processing language.
Text is King
Perl makes it easy to:
The Language Isn't (Half) Bad
It also has the benefits of having:
While it won't allow to create processing programs running as fast as a C equivalent, the development time is a lot inferior and it comes with batteries included when it comes to text processing (powerful regular expressions, anyone?), thus making it easy to pick up and use in a lab context to solve these tasks.
Portability and Extensibility Made Easy
Also, it obviously also:
But the reason why there are so many bioinformatics (and scientific in general) extensions and modules for Perl in the first place is because of the reasons given above. In a great many cases, the language's design and abilities make it an almost perfect fit (despite many possible grudges one can hold against it) for the job.
All this makes Perl a good contender for scientific research, especially in fields where the data to process is mostly in text format.
Of course, other languages have emerged and claim a market share for different reason (enhanced expressiveness, better readability, explicitly avoid obscure hacks and guru-ish one-liners...), but they still compete with Perl on certain aspects (Ruby is as fast to learn as it is slow to process data, for instance). So, in the domain of bioinformatics (or NLP) where you deal with text formats, quick research cycles and more and more big data that keeps getting bigger (thank you, genomics and NGS), Perl is still very relevant.
One of the big reasons behind Perl's popularity in bioinformatics is BioPerl, a comprehensive set of modules for working with relevant data.
It looks like most of the modules are actually designed to work with data generated by other programs. Perl makes for excellent reporting duct tape, after all.
Tools are selected by the skill level of operators and ease of adoption - it takes a while for a compiled program or IDE to overtake a simple interpreted language.
Perl has some serious chops, serious documentation, serious libraries and wide free availability. What's not to like about any of that?
Perl has all the same abilities, data constructs and methods of other languages, and its easier to learn then most. This is good for researchers and scientists not very experienced with programming, as they can easily pick up Perl and get their desired task(s) accomplished
Lot of online support and free scripts are available which is clearly advantageous! =)
In sum, most scientists and researchers just want to get the job done, and done as quickly as possible and Perl is the perfect fit for that