FrontPage  Index  Search  Changes  Login

FrontPage

BioRuby project Wiki page

News

  • BioRuby has a representation with the SciRuby project - part of the pragmatic programmers' series - see the SciRuby Project Page where science and Ruby meet.

Table of contents

This wiki page is for user-developed English language BioRuby documentation (for Japanese).

We have separate pages for BioRuby general information and Open Bio* news (for Japanese).

Discussions should go on the mailing list.

Just another Ruby hacker

#!/usr/bin/env ruby
require 'bio'

gene = "tctacttaagctaatnnnacccatgaacgttgaagannnnnntattagcacgcctgtaaagagcga"
prot = Bio::Sequence::NA.new(gene).translate
prot[/^/] = 'JU'
prot[7] = 'O'
prot['XX'] = 'UB'
puts prot.split('*').join(' ').capitalize << '.'

Footnote

  • Perl : #*@%-ed
  • Python : Simple, Fun and Indented!
  • Ruby : Ruby is Perl's younger, prettier sister.
Last modified:2007/07/31 00:09:29
Keyword(s):
References: