Class | Bio::Hinv
In: | lib/bio/io/hinv.rb
Parent: | Object

# Bio::Hinv

Accessing the H-invDB web services.

- www.h-invitational.jp/
- www.jbirc.aist.go.jp/hinv/hws/doc/index.html

### Methods

acc2hit hit2acc hit_cnt hit_definition hit_pubmedid hit_xml hix2hit hix_cnt hix_represent id_search keyword_search

### Classes and Modules

Module Bio::Hinv::Common
Class Bio::Hinv::Acc2hit
Class Bio::Hinv::Hit2acc
Class Bio::Hinv::HitCnt
Class Bio::Hinv::HitDefinition
Class Bio::Hinv::HitPubmedId
Class Bio::Hinv::HitXML
Class Bio::Hinv::Hix2hit
Class Bio::Hinv::HixCnt
Class Bio::Hinv::HixRepresent
Class Bio::Hinv::HixXML
Class Bio::Hinv::IdSearch
Class Bio::Hinv::KeywordSearch

### Constants

BASE_URI | = | "http://www.jbirc.aist.go.jp/hinv/hws/"

### Public Class methods

acc2hit(acc)

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

[Source]

        # 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

hit2acc(hit)

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

[Source]

        # 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

hit_cnt()

Bio::Hinv.hit_cnt # => 187156

[Source]

        # 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

hit_definition(hit)

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

[Source]

        # 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

hit_pubmedid(hit)

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

[Source]

        # 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

hit_xml(hit)

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

[Source]

        # 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

hix2hit(hix)

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

[Source]

        # 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

hix_cnt()

Bio::Hinv.hix_cnt # => 36073

[Source]

        # 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

hix_represent(hix)

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

[Source]

        # 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

id_search(query)

Bio::Hinv.id_search("HIT00002218*") # => ["HIT000022181", … ]

[Source]

         # 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

keyword_search(query)

Bio::Hinv.keyword_search("HIT00002218*") # => ["HIT000022181", … ]

[Source]

         # 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

[Validate]