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 35
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 42
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 49
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 56
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 63
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 70
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 77
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 84
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 91
def self.hix_represent(hix)
  serv = HixRepresent.new
  serv.query("hix" => hix)
  serv.result
end