Class: Bio::KEGG::KGML::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/db/kegg/kgml.rb

Overview

Bio::KEGG::KGML::Relation contains a relation element in the KGML.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entry1Object Also known as: node1

the first entry of the relation (Integer or nil) (‘entry1’ attribute in ‘relation’ element)



429
430
431
# File 'lib/bio/db/kegg/kgml.rb', line 429

def entry1
  @entry1
end

#entry2Object Also known as: node2

the second entry of the relation (Integer or nil) (‘entry2’ attribute in ‘relation’ element)



436
437
438
# File 'lib/bio/db/kegg/kgml.rb', line 436

def entry2
  @entry2
end

#nameObject

interaction and/or relation type (String or nil). See www.genome.jp/kegg/xml/docs/ for details. (‘name’ attribute in ‘subtype’ element)



457
458
459
# File 'lib/bio/db/kegg/kgml.rb', line 457

def name
  @name
end

#typeObject Also known as: rel

type of this relation (String or nil). Normally one of the following:

  • “ECrel”

  • “PPrel”

  • “GErel”

  • “PCrel”

  • “maplink”

(‘type’ attribute in ‘relation’ element)



449
450
451
# File 'lib/bio/db/kegg/kgml.rb', line 449

def type
  @type
end

#valueObject

interaction and/or relation information (String or nil). See www.genome.jp/kegg/xml/docs/ for details. (‘value’ attribute in ‘subtype’ element)



462
463
464
# File 'lib/bio/db/kegg/kgml.rb', line 462

def value
  @value
end

Instance Method Details

#edgeObject

(Deprecated?)



465
466
467
# File 'lib/bio/db/kegg/kgml.rb', line 465

def edge
  @value.to_i
end