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.
#!/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 << '.'
Keyword(s):
References: