| Class | Bio::Hinv |
| In: |
lib/bio/io/hinv.rb
|
| Parent: | Object |
Accessing the H-invDB web services.
| BASE_URI | = | "http://www.jbirc.aist.go.jp/hinv/hws/" |
Bio::Hinv.acc2hit("BC053657") # => "HIT000053961"
# File lib/bio/io/hinv.rb, line 36
36: def self.acc2hit(acc)
37: serv = Acc2hit.new
38: serv.query("acc" => acc)
39: serv.result
40: end
Bio::Hinv.hit2acc("HIT000022181") # => "AK097327"
# File lib/bio/io/hinv.rb, line 43
43: def self.hit2acc(hit)
44: serv = Hit2acc.new
45: serv.query("hit" => hit)
46: serv.result
47: end
Bio::Hinv.hit_cnt # => 187156
# File lib/bio/io/hinv.rb, line 50
50: def self.hit_cnt
51: serv = HitCnt.new
52: serv.query
53: serv.result
54: end
Bio::Hinv.hit_definition("HIT000000001") # => "Rho guanine …"
# File lib/bio/io/hinv.rb, line 57
57: def self.hit_definition(hit)
58: serv = HitDefinition.new
59: serv.query("hit" => hit)
60: serv.result
61: end
Bio::Hinv.hit_pubmedid("HIT000053961") # => [7624364, 11279095, … ]
# File lib/bio/io/hinv.rb, line 64
64: def self.hit_pubmedid(hit)
65: serv = HitPubmedId.new
66: serv.query("hit" => hit)
67: serv.result
68: end
Bio::Hinv.hit_xml("HIT000000001") # => "<?xml version="1.0" …"
# File lib/bio/io/hinv.rb, line 71
71: def self.hit_xml(hit)
72: serv = Bio::Hinv::HitXML.new
73: serv.query("hit" => hit)
74: puts serv.result
75: end
Bio::Hinv.hix2hit("HIX0000004") # => ["HIT000012846", … ]
# File lib/bio/io/hinv.rb, line 78
78: def self.hix2hit(hix)
79: serv = Bio::Hinv::Hix2hit.new
80: serv.query("hix" => hix)
81: serv.result
82: end
Bio::Hinv.hix_cnt # => 36073
# File lib/bio/io/hinv.rb, line 85
85: def self.hix_cnt
86: serv = HixCnt.new
87: serv.query
88: serv.result
89: end
Bio::Hinv.hix_represent("HIX0000001") # => "HIT000022181"
# File lib/bio/io/hinv.rb, line 92
92: def self.hix_represent(hix)
93: serv = HixRepresent.new
94: serv.query("hix" => hix)
95: serv.result
96: end
Bio::Hinv.id_search("HIT00002218*") # => ["HIT000022181", … ]
# File lib/bio/io/hinv.rb, line 99
99: def self.id_search(query)
100: serv = IdSearch.new
101: serv.query("query" => query)
102: serv.result
103: end
Bio::Hinv.keyword_search("HIT00002218*") # => ["HIT000022181", … ]
# File lib/bio/io/hinv.rb, line 106
106: def self.keyword_search(query)
107: serv = KeywordSearch.new
108: serv.query("query" => query)
109: serv.result
110: end