ajobo.c

Datatypes:
AjPObo Obo Term
AjPObotag Obo tags
AjPOboxref Obo dbxrefs
none Miscellaneous functions


Datatype: AjPObo

Function is for manipulating obo term objects

Sections:
constructorsConstructors
OBO term destructorsDestructors
CastsCasts
obo term modifiersModifiers


AjPObo: constructors

Constructors

Functions:
ajOboNewTerm constructor
ajOboNewOboTerm copy constructor


Function ajOboNew

Term constructor

Prototype

AjPObo ajOboNew (
      void
);

TypeNameRead/WriteDescription
AjPObo RETURNNew object

From EMBOSS 6.3.0


Function ajOboNewObo

Term copy constructor

Prototype

AjPObo ajOboNewObo (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputObo term
AjPObo RETURNNew object

From EMBOSS 6.4.0


AjPObo: OBO term destructors

Destruction destroys all internal data structures and frees the memory allocated for the obo term object.

Functions:
ajOboDelTerm destructor


Function ajOboDel

Term destructor

Prototype

void ajOboDel (
      AjPObo* Pobo
);

TypeNameRead/WriteDescription
AjPObo*PoboDeleteObo term object to delete
void RETURN

From EMBOSS 6.4.0


AjPObo: Casts

Return values from an obo term object

Functions:
ajOboGetDbReturn the database name
ajOboGetDefReturn the definition string and the number of dbxrefs
ajOboGetEntryReturn the full text
ajOboGetIdReturn the identifier
ajOboGetNamespaceReturn the namespace name
ajOboGetParentsReturn a list of all parent terms derived from is_a tags in the current obo term
ajOboGetQryCReturns the query string of an obo term. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.
ajOboGetQrySReturns the query string of an obo term. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.
ajOboGetReplacedReturn the recommended replacement for an obsolete term
ajOboGetTreeReturn a list with all this term's descendants appended
ajOboIsObsoleteTest whether an obo term is obsolete


Function ajOboGetDb

Return the database name

Prototype

const AjPStr ajOboGetDb (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
const AjPStr RETURNDatabase name

From EMBOSS 6.4.0


Function ajOboGetDef

Return the definition string and the number of dbxrefs

Prototype

AjBool ajOboGetDef (
      const AjPObo obo,
      AjPStr* Pdefstr,
      ajuint* nrefs
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
AjPStr*PdefstrOutputReturned definition string
ajuint*nrefsOutputNumber of dbxrefs after the definition
AjBool RETURNTrue on success.

From EMBOSS 6.4.0


Function ajOboGetEntry

Return the full text

Prototype

const AjPStr ajOboGetEntry (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
const AjPStr RETURNReturned full text

From EMBOSS 6.4.0


Function ajOboGetId

Return the identifier

Prototype

const AjPStr ajOboGetId (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
const AjPStr RETURNReturned id

From EMBOSS 6.4.0


Function ajOboGetNamespace

Return the namespace name

Prototype

const AjPStr ajOboGetNamespace (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
const AjPStr RETURNReturned namespace

From EMBOSS 6.4.0


Function ajOboGetParents

Return a list of all parent terms derived from is_a tags in the current obo term

Prototype

ajuint ajOboGetParents (
      const AjPObo obo,
      AjPList uplist
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
AjPListuplistModifyList of parent terms
ajuint RETURNNumber of new terms added to list

From EMBOSS 6.4.0


Function ajOboGetQryC

Returns the query string of an obo term. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.

Prototype

const char* ajOboGetQryC (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputObo term object.
const char* RETURNQuery as a character string.

From EMBOSS 6.4.0


Function ajOboGetQryS

Returns the query string of an obo term. Because this is a pointer to the real internal string the caller must take care not to change the character string in any way. If the string is to be changed (case for example) then it must first be copied.

Prototype

const AjPStr ajOboGetQryS (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputObo term object.
const AjPStr RETURNQuery as a string.

From EMBOSS 6.4.0


Function ajOboGetReplaced

Return the recommended replacement for an obsolete term

Prototype

const AjPStr ajOboGetReplaced (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
const AjPStr RETURNReturned id

From EMBOSS 6.4.0


Function ajOboGetTree

Return a list with all this term's descendants appended

Prototype

ajuint ajOboGetTree (
      const AjPObo obo,
      AjPList obolist
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
AjPListobolistModifyList of obo terms
ajuint RETURNNumber of terms returned

From EMBOSS 6.4.0


Function ajOboIsObsolete

Test whether an obo term is obsolete

Prototype

AjBool ajOboIsObsolete (
      const AjPObo obo
);

TypeNameRead/WriteDescription
const AjPObooboInputOBO term
AjBool RETURNTrue if term is obsolete

From EMBOSS 6.4.0


AjPObo: obo term modifiers

Obo term modifiers

Functions:
ajOboClearResets all data for an obo term object so that it can be reused.


Function ajOboClear

Resets all data for an obo term object so that it can be reused.

Prototype

void ajOboClear (
      AjPObo obo
);

TypeNameRead/WriteDescription
AjPObooboModifyObo term
void RETURN

From EMBOSS 6.4.0


Datatype: AjPObotag

Function is for manipulating obo tag objects

Sections:
constructorsConstructors
obo tag destructorsDestructors


AjPObotag: constructors

Constructors

Functions:
ajObotagNewDataTag constructor
ajObotagNewTagTag copy constructor


Function ajObotagNewData

Tag constructor

Prototype

AjPObotag ajObotagNewData (
      const AjPStr name,
      const AjPStr value,
      const AjPStr modifier,
      const AjPStr comment,
      ajuint linenum
);

TypeNameRead/WriteDescription
const AjPStrnameInputName
const AjPStrvalueInputValue
const AjPStrmodifierInputModifier
const AjPStrcommentInputComment
ajuintlinenumInputOBO file line number
AjPObotag RETURNNew object

From EMBOSS 6.4.0


Function ajObotagNewTag

Tag copy constructor

Prototype

AjPObotag ajObotagNewTag (
      const AjPObotag tag
);

TypeNameRead/WriteDescription
const AjPObotagtagInputObo tag
AjPObotag RETURNNew object

From EMBOSS 6.4.0


AjPObotag: obo tag destructors

Destruction destroys all internal data structures and frees the memory allocated for the obo tag object.

Functions:
ajObotagDelTag destructor


Function ajObotagDel

Tag destructor

Prototype

void ajObotagDel (
      AjPObotag* Ptag
);

TypeNameRead/WriteDescription
AjPObotag*PtagDeleteTag object to delete
void RETURN

From EMBOSS 6.4.0


Datatype: AjPOboxref

Function is for manipulating obo dbxref objects

Sections:
constructorsConstructors
obo dbxref destructorsDestructors


AjPOboxref: constructors

Constructors

Functions:
ajOboxrefNewDataDbxref constructor
ajOboxrefNewXrefDbxref copy constructor


Function ajOboxrefNewData

Dbxref constructor

Prototype

AjPOboxref ajOboxrefNewData (
      const AjPStr name,
      const AjPStr desc
);

TypeNameRead/WriteDescription
const AjPStrnameInputName
const AjPStrdescInputDescription
AjPOboxref RETURNNew object

From EMBOSS 6.4.0


Function ajOboxrefNewXref

Dbxref copy constructor

Prototype

AjPOboxref ajOboxrefNewXref (
      const AjPOboxref xref
);

TypeNameRead/WriteDescription
const AjPOboxrefxrefInputDbxref
AjPOboxref RETURNNew object

From EMBOSS 6.4.0


AjPOboxref: obo dbxref destructors

Destruction destroys all internal data structures and frees the memory allocated for the obo dbxref object.

Functions:
ajOboxrefDelDbxref destructor


Function ajOboxrefDel

Dbxref destructor

Prototype

void ajOboxrefDel (
      AjPOboxref* Pxref
);

TypeNameRead/WriteDescription
AjPOboxref*PxrefDeleteDbxref object to delete
void RETURN

From EMBOSS 6.4.0


Datatype: none

Functions to initialise and clean up internals

Sections:
MiscellaneousMiscellaneous


Section: Miscellaneous

Functions to initialise and clean up internals

Functions:
ajOboExitCleans up obo term internal memory


Function ajOboExit

Cleans up obo term internal memory

Prototype

void ajOboExit (
      void
);

TypeNameRead/WriteDescription
void RETURN

From EMBOSS 6.4.0