Method: Bio::Shell::Demo#mito

Defined in:
lib/bio/shell/demo.rb

#mitoObject



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/bio/shell/demo.rb', line 44

def mito
  run(%q[entry = getent("data/kumamushi.gb")], "Load kumamushi gene from GenBank database entry ...", false) &&
  run(%q[disp entry], "Check the contents ...", false) &&
  run(%q[kuma = flatparse(entry)], "Parse the database entry ...", true) &&
  run(%q[web], "Start BioRuby on Rails...", false) &&
  run(%q[puts kuma.entry_id], "Extract entry ID ...", false) &&
  run(%q[puts kuma.definition], "Extract definition ...", false) &&
  run(%q[gene = kuma.seq], "Extract DNA sequence of the gene ...", true) &&
  run(%q[doublehelix(gene)], "Show the sequence in ascii art ...", false) &&
  run(%q[seqstat(gene)], "Statistics of the gene ...", false) &&
  run(%q[config :color], "Change to color mode...", false) &&
  run(%q[seqstat(gene)], "Statistics of the gene ...", false) &&
  #run(%q[codontable], "Codontalble ...", false) &&
  run(%q[protein = gene.translate], "Translate DNA into protein ...", true) &&
  run(%q[comp = protein.composition], "Composition of the amino acids ...", false) &&
  run(%q[pp comp], "Check the composition ...", false) &&
  run(%q[puts protein.molecular_weight], "Molecular weight ...", false) &&
  run(%q[midifile("data/kumamushi.mid", gene)], "Gene to music ...", false) &&
  run(%q[`open "data/kumamushi.mid"`], "Let's listen ...", false) &&
  true
end