class Bio::Hinv::HitDefinition
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
Public Class Methods
new()
click to toggle source
# File lib/bio/io/hinv.rb 183 def initialize 184 @url = BASE_URI + "hit_definition.php" 185 end
Public Instance Methods
cdna_rep_h_invitational()
click to toggle source
# File lib/bio/io/hinv.rb 206 def cdna_rep_h_invitational 207 @xml.elements['//CDNA_REP-H-INVITATIONAL'].text 208 end
cdna_splicing_isoform_curation()
click to toggle source
# File lib/bio/io/hinv.rb 209 def cdna_splicing_isoform_curation 210 @xml.elements['//CDNA_SPLICING-ISOFORM_CURATION'].text 211 end
data_source_coverage()
click to toggle source
# File lib/bio/io/hinv.rb 218 def data_source_coverage 219 @xml.elements['//DATA-SOURCE_COVERAGE'].text.to_f 220 end
data_source_db_reference_protein_motif_id()
click to toggle source
# File lib/bio/io/hinv.rb 212 def data_source_db_reference_protein_motif_id 213 @xml.elements['//DATA-SOURCE_DB-REFERENCE_PROTEIN-MOTIF-ID'].text 214 end
data_source_homologous_species()
click to toggle source
# File lib/bio/io/hinv.rb 221 def data_source_homologous_species 222 @xml.elements['//DATA-SOURCE_HOMOLOGOUS_SPECIES'].text 223 end
data_source_identity()
click to toggle source
# File lib/bio/io/hinv.rb 215 def data_source_identity 216 @xml.elements['//DATA-SOURCE_IDENTITY'].text.to_f 217 end
data_source_similarity_category()
click to toggle source
# File lib/bio/io/hinv.rb 224 def data_source_similarity_category 225 @xml.elements['//DATA-SOURCE_SIMILARITY-CATEGORY'].text 226 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 201 def result 202 @xml.elements['//DATA-SOURCE_DEFINITION'].text 203 end
Also aliased as: data_source_definition