class Bio::Hinv

Bio::Hinv

Accessing the H-invDB web services.

Constants

BASE_URI

Public Class Methods

acc2hit(acc) click to toggle source

Bio::Hinv.acc2hit(“BC053657”) # => “HIT000053961”

   # File lib/bio/io/hinv.rb
35 def self.acc2hit(acc)
36   serv = Acc2hit.new
37   serv.query("acc" => acc)
38   serv.result
39 end
hit2acc(hit) click to toggle source

Bio::Hinv.hit2acc(“HIT000022181”) # => “AK097327”

   # File lib/bio/io/hinv.rb
42 def self.hit2acc(hit)
43   serv = Hit2acc.new
44   serv.query("hit" => hit)
45   serv.result
46 end
hit_cnt() click to toggle source

Bio::Hinv.hit_cnt # => 187156

   # File lib/bio/io/hinv.rb
49 def self.hit_cnt
50   serv = HitCnt.new
51   serv.query
52   serv.result
53 end
hit_definition(hit) click to toggle source

Bio::Hinv.hit_definition(“HIT000000001”) # => “Rho guanine …”

   # File lib/bio/io/hinv.rb
56 def self.hit_definition(hit)
57   serv = HitDefinition.new
58   serv.query("hit" => hit)
59   serv.result
60 end
hit_pubmedid(hit) click to toggle source

Bio::Hinv.hit_pubmedid(“HIT000053961”) # => [7624364, 11279095, … ]

   # File lib/bio/io/hinv.rb
63 def self.hit_pubmedid(hit)
64   serv = HitPubmedId.new
65   serv.query("hit" => hit)
66   serv.result
67 end
hit_xml(hit) click to toggle source

Bio::Hinv.hit_xml(“HIT000000001”) # => “<?xml version=”1.0“ …”

   # File lib/bio/io/hinv.rb
70 def self.hit_xml(hit)
71   serv = Bio::Hinv::HitXML.new
72   serv.query("hit" => hit)
73   puts serv.result
74 end
hix2hit(hix) click to toggle source

Bio::Hinv.hix2hit(“HIX0000004”) # => [“HIT000012846”, … ]

   # File lib/bio/io/hinv.rb
77 def self.hix2hit(hix)
78   serv = Bio::Hinv::Hix2hit.new
79   serv.query("hix" => hix)
80   serv.result
81 end
hix_cnt() click to toggle source

Bio::Hinv.hix_cnt # => 36073

   # File lib/bio/io/hinv.rb
84 def self.hix_cnt
85   serv = HixCnt.new
86   serv.query
87   serv.result
88 end
hix_represent(hix) click to toggle source

Bio::Hinv.hix_represent(“HIX0000001”) # => “HIT000022181”

   # File lib/bio/io/hinv.rb
91 def self.hix_represent(hix)
92   serv = HixRepresent.new
93   serv.query("hix" => hix)
94   serv.result
95 end