Class: Bio::KEGG::KGML::Entry

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

Overview

Bio::KEGG:Entry contains an entry element in the KGML.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#componentsObject

component elements included in this entry (Array containing Integer objects, or nil)



377
378
379
# File 'lib/bio/db/kegg/kgml.rb', line 377

def components
  @components
end

#graphicsObject

graphics elements included in this entry (Array containing Graphics objects, or nil)



373
374
375
# File 'lib/bio/db/kegg/kgml.rb', line 373

def graphics
  @graphics
end

#idObject Also known as: entry_id

ID of this entry in this pathway map (Integer or nil). (‘id’ attribute in ‘entry’ element)



188
189
190
# File 'lib/bio/db/kegg/kgml.rb', line 188

def id
  @id
end

URL pointing information about this entry (String or nil)



213
214
215
# File 'lib/bio/db/kegg/kgml.rb', line 213

def link
  @link
end

#nameObject

KEGG-style ID string of this entry (String or nil)



194
195
196
# File 'lib/bio/db/kegg/kgml.rb', line 194

def name
  @name
end

#pathwayObject

(Deprecated?) (‘map’ attribute in ‘entry’ element)



219
220
221
# File 'lib/bio/db/kegg/kgml.rb', line 219

def pathway
  @pathway
end

#reactionObject

KEGG-style ID string of this reaction (String or nil)



216
217
218
# File 'lib/bio/db/kegg/kgml.rb', line 216

def reaction
  @reaction
end

#typeObject Also known as: category

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

  • “ortholog”

  • “enzyme”

  • “reaction”

  • “gene”

  • “group”

  • “compound”

  • “map”

See www.genome.jp/kegg/xml/docs/ for details. (‘type’ attribute in ‘entry’ element)



207
208
209
# File 'lib/bio/db/kegg/kgml.rb', line 207

def type
  @type
end

Instance Method Details

#bgcolorObject

Deprecated. Same as self.graphics.bgcolor (additional nil checks may be needed).

background color (String or nil) (‘graphics’ element)



360
361
362
# File 'lib/bio/db/kegg/kgml.rb', line 360

def bgcolor
  _graphics_attr(:bgcolor)
end

#bgcolor=(val) ⇒ Object

Deprecated. Same as self.graphics.bgcolor= (additional nil checks may be needed).



367
368
369
# File 'lib/bio/db/kegg/kgml.rb', line 367

def bgcolor=(val)
  _graphics_set_attr(:bgcolor=, val)
end

#fgcolorObject

Deprecated. Same as self.graphics.fgcolor (additional nil checks may be needed).

foreground color (String or nil) (‘graphics’ element)



345
346
347
# File 'lib/bio/db/kegg/kgml.rb', line 345

def fgcolor
  _graphics_attr(:fgcolor)
end

#fgcolor=(val) ⇒ Object

Deprecated. Same as self.graphics.fgcolor= (additional nil checks may be needed).



352
353
354
# File 'lib/bio/db/kegg/kgml.rb', line 352

def fgcolor=(val)
  _graphics_set_attr(:fgcolor=, val)
end

#heightObject

Deprecated. Same as self.graphics.height (additional nil checks may be needed).

height (Integer or nil) (‘graphics’ element)



330
331
332
# File 'lib/bio/db/kegg/kgml.rb', line 330

def height
  _graphics_attr(:height)
end

#height=(val) ⇒ Object

Deprecated. Same as self.graphics.height= (additional nil checks may be needed).



337
338
339
# File 'lib/bio/db/kegg/kgml.rb', line 337

def height=(val)
  _graphics_set_attr(:height=, val)
end

#labelObject

Deprecated. Same as self.graphics.name (additional nil checks may be needed).

label of the ‘graphics’ element (String or nil) (‘name’ attribute in ‘graphics’ element)



248
249
250
# File 'lib/bio/db/kegg/kgml.rb', line 248

def label
  _graphics_attr(:name)
end

#label=(val) ⇒ Object

Deprecated. Same as self.graphics.name= (additional nil checks may be needed).



255
256
257
# File 'lib/bio/db/kegg/kgml.rb', line 255

def label=(val)
  _graphics_set_attr(:name=, val)
end

#namesObject

the “name” attribute may contain multiple names separated with space characters. This method returns the names as an array. (Array containing String objects)



382
383
384
# File 'lib/bio/db/kegg/kgml.rb', line 382

def names
  @name.split(/\s+/)
end

#shapeObject

Deprecated. Same as self.graphics.type (additional nil checks may be needed).

shape of the ‘graphics’ element (String or nil) Normally one of the following:

  • “rectangle”

  • “circle”

  • “roundrectangle”

  • “line”

If not specified, “rectangle” is the default value. (‘type’ attribute in ‘graphics’ element)



270
271
272
# File 'lib/bio/db/kegg/kgml.rb', line 270

def shape
  _graphics_attr(:type)
end

#shape=(val) ⇒ Object

Deprecated. Same as self.graphics.type= (additional nil checks may be needed).



277
278
279
# File 'lib/bio/db/kegg/kgml.rb', line 277

def shape=(val)
  _graphics_set_attr(:type=, val)
end

#widthObject

Deprecated. Same as self.graphics.width (additional nil checks may be needed).

width (Integer or nil) (‘graphics’ element)



315
316
317
# File 'lib/bio/db/kegg/kgml.rb', line 315

def width
  _graphics_attr(:width)
end

#width=(val) ⇒ Object

Deprecated. Same as self.graphics.width= (additional nil checks may be needed).



322
323
324
# File 'lib/bio/db/kegg/kgml.rb', line 322

def width=(val)
  _graphics_set_attr(:width=, val)
end

#xObject

Deprecated. Same as self.graphics.x (additional nil checks may be needed).

X axis position (Integer or nil) (‘graphics’ element)



285
286
287
# File 'lib/bio/db/kegg/kgml.rb', line 285

def x
  _graphics_attr(:x)
end

#x=(val) ⇒ Object

Deprecated. Same as self.graphics.x= (additional nil checks may be needed).



292
293
294
# File 'lib/bio/db/kegg/kgml.rb', line 292

def x=(val)
  _graphics_set_attr(:x=, val)
end

#yObject

Deprecated. Same as self.graphics.y (additional nil checks may be needed).

Y axis position (Integer or nil) (‘graphics’ element)



300
301
302
# File 'lib/bio/db/kegg/kgml.rb', line 300

def y
  _graphics_attr(:y)
end

#y=(val) ⇒ Object

Deprecated. Same as self.graphics.y= (additional nil checks may be needed).



307
308
309
# File 'lib/bio/db/kegg/kgml.rb', line 307

def y=(val)
  _graphics_set_attr(:y=, val)
end