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

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

### Methods

cdna_rep_h_invitational cdna_splicing_isoform_curation data_source_coverage data_source_db_reference_protein_motif_id data_source_definition data_source_homologous_species data_source_identity data_source_similarity_category new result

### Included Modules

Common

### Public Class methods

new()

[Source]

         # File lib/bio/io/hinv.rb, line 184
    184:       def initialize
    185:         @url = BASE_URI + "hit_definition.php"
    186:       end

### Public Instance methods

cdna_rep_h_invitational()

[Source]

         # File lib/bio/io/hinv.rb, line 207
    207:       def cdna_rep_h_invitational
    208:         @xml.elements['//CDNA_REP-H-INVITATIONAL'].text
    209:       end

cdna_splicing_isoform_curation()

[Source]

         # File lib/bio/io/hinv.rb, line 210
    210:       def cdna_splicing_isoform_curation
    211:         @xml.elements['//CDNA_SPLICING-ISOFORM_CURATION'].text
    212:       end

data_source_coverage()

[Source]

         # File lib/bio/io/hinv.rb, line 219
    219:       def data_source_coverage
    220:         @xml.elements['//DATA-SOURCE_COVERAGE'].text.to_f
    221:       end

data_source_db_reference_protein_motif_id()

[Source]

         # File lib/bio/io/hinv.rb, line 213
    213:       def data_source_db_reference_protein_motif_id
    214:         @xml.elements['//DATA-SOURCE_DB-REFERENCE_PROTEIN-MOTIF-ID'].text
    215:       end

data_source_definition()

Alias for result

data_source_homologous_species()

[Source]

         # File lib/bio/io/hinv.rb, line 222
    222:       def data_source_homologous_species
    223:         @xml.elements['//DATA-SOURCE_HOMOLOGOUS_SPECIES'].text
    224:       end

data_source_identity()

[Source]

         # File lib/bio/io/hinv.rb, line 216
    216:       def data_source_identity
    217:         @xml.elements['//DATA-SOURCE_IDENTITY'].text.to_f
    218:       end

data_source_similarity_category()

[Source]

         # File lib/bio/io/hinv.rb, line 225
    225:       def data_source_similarity_category
    226:         @xml.elements['//DATA-SOURCE_SIMILARITY-CATEGORY'].text
    227:       end

result()

<?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>

[Source]

         # File lib/bio/io/hinv.rb, line 202
    202:       def result
    203:         @xml.elements['//DATA-SOURCE_DEFINITION'].text
    204:       end

[Validate]