class Bio::Hinv
Bio::Hinv¶ ↑
Accessing the H-invDB web services.
Constants
- BASE_URI
Public Class Methods
acc2hit(acc)
click to toggle source
::acc2hit(“BC053657”) # => “HIT000053961”
# File lib/bio/io/hinv.rb, line 36 def self.acc2hit(acc) serv = Acc2hit.new serv.query("acc" => acc) serv.result end
hit2acc(hit)
click to toggle source
::hit2acc(“HIT000022181”) # => “AK097327”
# File lib/bio/io/hinv.rb, line 43 def self.hit2acc(hit) serv = Hit2acc.new serv.query("hit" => hit) serv.result end
hit_cnt()
click to toggle source
::hit_cnt # => 187156
# File lib/bio/io/hinv.rb, line 50 def self.hit_cnt serv = HitCnt.new serv.query serv.result end
hit_definition(hit)
click to toggle source
::hit_definition(“HIT000000001”) # => “Rho guanine …”
# File lib/bio/io/hinv.rb, line 57 def self.hit_definition(hit) serv = HitDefinition.new serv.query("hit" => hit) serv.result end
hit_pubmedid(hit)
click to toggle source
::hit_pubmedid(“HIT000053961”) # => [7624364, 11279095, … ]
# File lib/bio/io/hinv.rb, line 64 def self.hit_pubmedid(hit) serv = HitPubmedId.new serv.query("hit" => hit) serv.result end
hit_xml(hit)
click to toggle source
::hit_xml(“HIT000000001”) # => “<?xml version=”1.0“ …”
# File lib/bio/io/hinv.rb, line 71 def self.hit_xml(hit) serv = Bio::Hinv::HitXML.new serv.query("hit" => hit) puts serv.result end
hix2hit(hix)
click to toggle source
::hix2hit(“HIX0000004”) # => [“HIT000012846”, … ]
# File lib/bio/io/hinv.rb, line 78 def self.hix2hit(hix) serv = Bio::Hinv::Hix2hit.new serv.query("hix" => hix) serv.result end
hix_cnt()
click to toggle source
::hix_cnt # => 36073
# File lib/bio/io/hinv.rb, line 85 def self.hix_cnt serv = HixCnt.new serv.query serv.result end
hix_represent(hix)
click to toggle source
::hix_represent(“HIX0000001”) # => “HIT000022181”
# File lib/bio/io/hinv.rb, line 92 def self.hix_represent(hix) serv = HixRepresent.new serv.query("hix" => hix) serv.result end
id_search(query)
click to toggle source
::id_search(“HIT00002218*”) # => [“HIT000022181”, … ]
# File lib/bio/io/hinv.rb, line 99 def self.id_search(query) serv = IdSearch.new serv.query("query" => query) serv.result end
keyword_search(query)
click to toggle source
::keyword_search(“HIT00002218*”) # => [“HIT000022181”, … ]
# File lib/bio/io/hinv.rb, line 106 def self.keyword_search(query) serv = KeywordSearch.new serv.query("query" => query) serv.result end