class Bio::Hinv::HitDefinition

serv = ::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

Public Class Methods

new() click to toggle source
# File lib/bio/io/hinv.rb, line 183
def initialize
  @url = BASE_URI + "hit_definition.php"
end

Public Instance Methods

cdna_rep_h_invitational() click to toggle source
# 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() click to toggle source
# File lib/bio/io/hinv.rb, line 209
def cdna_splicing_isoform_curation
  @xml.elements['//CDNA_SPLICING-ISOFORM_CURATION'].text
end
data_source_coverage() click to toggle source
# 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() click to toggle source
# 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_definition()
Alias for: result
data_source_homologous_species() click to toggle source
# File lib/bio/io/hinv.rb, line 221
def data_source_homologous_species
  @xml.elements['//DATA-SOURCE_HOMOLOGOUS_SPECIES'].text
end
data_source_identity() click to toggle source
# 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() click to toggle source
# File lib/bio/io/hinv.rb, line 224
def data_source_similarity_category
  @xml.elements['//DATA-SOURCE_SIMILARITY-CATEGORY'].text
end
result() click to toggle source

<?xml version='1.0' encoding='UTF-8'?> <H-Inv>

<HIT_FUNCTION>
 <H-INVITATIONAL-ID>HIT000000001</H-INVITATIONAL-ID>
 <DATA-SOURCE_DEFINITION>Rho guanine nucleotide exchange factor 10.</DATA-SOURCE_DEFINITION>
 <CDNA_REP-H-INVITATIONAL>Representative transcript</CDNA_REP-H-INVITATIONAL>
 <CDNA_SPLICING-ISOFORM_CURATION></CDNA_SPLICING-ISOFORM_CURATION>
 <DATA-SOURCE_DB-REFERENCE_PROTEIN-MOTIF-ID>NP_055444</DATA-SOURCE_DB-REFERENCE_PROTEIN-MOTIF-ID>
 <DATA-SOURCE_IDENTITY>100.0</DATA-SOURCE_IDENTITY>
 <DATA-SOURCE_COVERAGE>100.0</DATA-SOURCE_COVERAGE>
 <DATA-SOURCE_HOMOLOGOUS_SPECIES>Homo sapiens</DATA-SOURCE_HOMOLOGOUS_SPECIES>
 <DATA-SOURCE_SIMILARITY-CATEGORY>Identical to known human protein(Category I).</DATA-SOURCE_SIMILARITY-CATEGORY>
</HIT_FUNCTION>

</H-Inv>

# File lib/bio/io/hinv.rb, line 201
def result
  @xml.elements['//DATA-SOURCE_DEFINITION'].text
end
Also aliased as: data_source_definition