Class: Bio::Hinv::HitDefinition

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/bio/io/hinv.rb

Overview

serv = Bio::Hinv::HitDefinition.new serv.query("hit" => "HIT000000001") puts serv.result puts serv.data_source_definition puts serv.cdna_rep_h_invitational puts serv.cdna_splicing_isoform_curation puts serv.data_source_db_reference_protein_motif_id puts serv.data_source_identity puts serv.data_source_coverage puts serv.data_source_homologous_species puts serv.data_source_similarity_category

Instance Method Summary collapse

Methods included from Common

#query

Constructor Details

#initialize ⇒ HitDefinition

Returns a new instance of HitDefinition.



183
184
185
# File 'lib/bio/io/hinv.rb', line 183

def initialize
  @url = BASE_URI + "hit_definition.php"
end

Instance Method Details

#cdna_rep_h_invitational ⇒ Object



206
207
208
# File 'lib/bio/io/hinv.rb', line 206

def cdna_rep_h_invitational
  @xml.elements['//CDNA_REP-H-INVITATIONAL'].text
end

#cdna_splicing_isoform_curation ⇒ Object



209
210
211
# File 'lib/bio/io/hinv.rb', line 209

def cdna_splicing_isoform_curation
  @xml.elements['//CDNA_SPLICING-ISOFORM_CURATION'].text
end

#data_source_coverage ⇒ Object



218
219
220
# File 'lib/bio/io/hinv.rb', line 218

def data_source_coverage
  @xml.elements['//DATA-SOURCE_COVERAGE'].text.to_f
end

#data_source_db_reference_protein_motif_id ⇒ Object



212
213
214
# File 'lib/bio/io/hinv.rb', line 212

def data_source_db_reference_protein_motif_id
  @xml.elements['//DATA-SOURCE_DB-REFERENCE_PROTEIN-MOTIF-ID'].text
end

#data_source_homologous_species ⇒ Object



221
222
223
# File 'lib/bio/io/hinv.rb', line 221

def data_source_homologous_species
  @xml.elements['//DATA-SOURCE_HOMOLOGOUS_SPECIES'].text
end

#data_source_identity ⇒ Object



215
216
217
# File 'lib/bio/io/hinv.rb', line 215

def data_source_identity
  @xml.elements['//DATA-SOURCE_IDENTITY'].text.to_f
end

#data_source_similarity_category ⇒ Object



224
225
226
# File 'lib/bio/io/hinv.rb', line 224

def data_source_similarity_category
  @xml.elements['//DATA-SOURCE_SIMILARITY-CATEGORY'].text
end

#result ⇒ Object Also known as: data_source_definition

HIT000000001 Rho guanine nucleotide exchange factor 10. Representative transcript NP_055444 100.0 100.0 Homo sapiens Identical to known human protein(Category I).


201
202
203
# File 'lib/bio/io/hinv.rb', line 201

def result
  @xml.elements['//DATA-SOURCE_DEFINITION'].text
end