Package obitools :: Package obo :: Module parser :: Class DefValue
[hide private]
[frames] | no frames]

Class DefValue

source code


A couple 'def:value' inherited from the class TaggedValue. Used to manage def tags.

Instance Methods [hide private]
 
__init__(self, line)
Constructor of the class DefValue.
source code

Inherited from TaggedValue: __repr__, __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, line)
(Constructor)

source code 

Constructor of the class DefValue.

Parameters:
  • line (string) - a line of an OBOEntry composed of a tag named 'def' and a value.
Overrides: object.__init__

Note: The constructor calls the TaggedValue constructor. A regular expression is used to extract the 'definition' from TaggedValue.value (definition is a not quoted TaggedValue.value). A regular expression is used to extract 'dbxrefs' from the aggedValue.value without the definition (dbxrefs are between brackets and definition can be so). Definition is saved as the new value of the DefValue. dbxrefs are saved.