FrontPage  Index  Search  Changes  Login

FrontPage

BioRuby プロジェクト Wiki ページ

  • Perl : #*@%-ed
  • Python : Simple, Fun and Indented!
  • Ruby : Ruby is Perl's younger, prettier sister.

目次

この Wiki は BioRuby の日本語ドキュメント開発のためのページです (for English)。 BioRuby に関する一般的な情報は こちら、 を参照してください。 BioRuby に関するディスカッションについてはメーリングリストを使ってください。

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 << '.'
Last modified:2006/12/24 21:22:30
Keyword(s):
References: