Which programming language for bio-sci?
#1
Posted 12 July 2010 - 03:58 AM
Having a little bit more free time on my hands, at least for now, I'm thinking about starting to learn some programming language. My idea is to use it for writing small dedicated programs to help with my lab work and perhaps some DIY/home improvement/"gadget hacking"/"mad scientists" stuff. Which one would you advise me to learn?
#2
Posted 12 July 2010 - 04:05 AM
#3
Posted 12 July 2010 - 08:28 AM
I heard there is also Bio-Perl... which is better? I'm a total noob in programming....but i wish to learn.
..."best of our knowledge, as far as we know this had never been reported before, though I can't possible read all the published journals on earth, but by perform thorough search in google, the keywords did not match any documents"...
"what doesn't kill you, makes you stronger"---Goddess Casandra reminds me to be strong
"It's all just DNA. Do it."---phage434
#4
Posted 12 July 2010 - 09:17 AM
For example, if in my Perl program I wanted to get information from a BLAST results file, I could write my own Perl code to parse this file and return all the various pieces of data for me, or I could just use the appropriate BioPerl module, e.g.:
#!/usr/bin/perl -w
use strict;
use Bio::SearchIO; # This line loads the BioPerl module SearchIO
my $in = new Bio::SearchIO(-format => 'blast', -file => "your_favorite_file.blast");
while (my $result = $in->next_result) {
while (my $hit = $result->next_hit) {
while (my $hsp = $hit->next_hsp) {
print "Hit name: " . $hit->name . "\n";
print "HSP start (hit): " . $hsp->start('hit') . "\n";
print "HSP end (hit): " . $hsp->end('hit') . "\n";
print "HSP start (query): " . $hsp->start('query') . "\n";
print "HSP end (query): " . $hsp->end('query') . "\n";
print "HSP length: " . $hsp->hsp_length . "\n";
print "number of identical residues: " . $hsp->num_identical . "\n";
print "number of conserved residues: " . $hsp->num_conserved . "\n";
print "strand: " . hit->strand . "\n";
print "sequence of hit: " . $hsp->hit_string . "\n";
}
}
}
#5
Posted 12 July 2010 - 09:28 AM
#6
Posted 12 July 2010 - 09:35 AM
But, in any event, it's got to be Perl, Python, or Ruby, if you're looking for a scripting language...
#7
Posted 12 July 2010 - 03:51 PM
HomeBrew, on Jul 13 2010, 01:35 AM, said:
But, in any event, it's got to be Perl, Python, or Ruby, if you're looking for a scripting language...
o_O
==''
Perl, Ruby, Phyton, Bioperl... is endless... I wish I learn at least one of this...
Any idea or good books (Perl for dummies???) I can begin with?
LOL
..."best of our knowledge, as far as we know this had never been reported before, though I can't possible read all the published journals on earth, but by perform thorough search in google, the keywords did not match any documents"...
"what doesn't kill you, makes you stronger"---Goddess Casandra reminds me to be strong
"It's all just DNA. Do it."---phage434
#8
Posted 12 July 2010 - 04:23 PM
adrian kohsf, on Jul 12 2010, 07:51 PM, said:
Well, the classic starting book for Perl is Programming Perl, aka "the Camel book", now in its 3rd edition. This is a comprehensive book, covering all aspects of Perl. One of the authors, Larry Wall, is the creator of Perl.
For a quick-start on bioinformatics in particular, Beginning Perl for Bioinformatics is pretty good too, but a bit dated.
#9
Posted 12 July 2010 - 04:35 PM
..."best of our knowledge, as far as we know this had never been reported before, though I can't possible read all the published journals on earth, but by perform thorough search in google, the keywords did not match any documents"...
"what doesn't kill you, makes you stronger"---Goddess Casandra reminds me to be strong
"It's all just DNA. Do it."---phage434
#10
Posted 12 July 2010 - 06:24 PM
#11
Posted 26 July 2010 - 02:10 AM
Then, if you want to do web stuff, play with Django - nicer than perl catalyst IMO.
perl is great but lack of easy use of objects is annoying (including moose)
I used perl - currently use python + django - scala/java and a little bit of clojure.
I would also suggets that you use Learning Perl - avoid the "* for bioinformatics" books because they don't teach you how to program.
#12
Posted 01 October 2010 - 04:33 PM
http://www.bioprotocols.info
#13
Posted 27 December 2010 - 01:27 AM
#14
Posted 19 October 2011 - 02:01 PM
#15
Posted 20 October 2011 - 11:38 AM














