Method: Bio::Shell::Demo#pdb_hetdic

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

#pdb_hetdicObject



102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/bio/shell/demo.rb', line 102

def pdb_hetdic
#      run(%q[het_dic = open("http://deposit.pdb.org/het_dictionary.txt").read],
#          "Retrieving the het_dic database ...", false) &&
#      run(%q[savefile("data/het_dictionary.txt", het_dic)],
#          "Saving the file ... ", false) &&
  run(%q[het_dic.size], "Bytes of the file ...", true) &&
  run(%q[disp "data/het_dictionary.txt"], "Take a look on the contents ...", true) &&
  run(%q[flatindex("het_dic", "data/het_dictionary.txt")],
      "Creating index to make the seaarchable database ...", false) &&
  run(%q[ethanol = flatsearch("het_dic", "EOH")], "Search an ethanol entry ...", true) &&
  run(%q[osake = flatparse(ethanol)], "Parse the entry ...", true) &&
  run(%q[osake.conect], "Showing connect table (conect) of the molecule ...", true) &&
  true
end