ajobo.c
Datatypes: AjPObo AjPObotag AjPOboxref none
Obo Term
Sections: constructors OBO term destructors Casts obo term modifiers
Constructors
Functions: ajOboNew ajOboNewObo
Term constructor
Synopsis
Prototype
AjPObo ajOboNew (
void
);
Type | Name | Read/Write | Description |
AjPObo | | RETURN | New object |
Returns
Description
Term constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Term copy constructor
Synopsis
Prototype
AjPObo ajOboNewObo (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | Obo term |
AjPObo | | RETURN | New object |
Input
Returns
Description
Term copy constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the obo term object.
Functions: ajOboDel
Term destructor
Synopsis
Prototype
void ajOboDel (
AjPObo* Pobo
);
Type | Name | Read/Write | Description |
AjPObo* | Pobo | Delete | Obo term object to delete |
void | | RETURN | |
Output
Pobo: | (Delete) | Obo term object to delete |
Returns
Description
Term destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Return values from an obo term object
Functions: ajOboGetDb ajOboGetDef ajOboGetEntry ajOboGetId ajOboGetNamespace ajOboGetParents ajOboGetQryC ajOboGetQryS ajOboGetReplaced ajOboGetTree ajOboIsObsolete
Return the database name
Synopsis
Prototype
const AjPStr ajOboGetDb (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
const AjPStr | | RETURN | Database name |
Input
Returns
const AjPStr: | Database name |
Description
Return the database name
See Also
See other functions in this section
Availability
In release 6.4.0
Return the definition string and the number of dbxrefs
Synopsis
Prototype
AjBool ajOboGetDef (
const AjPObo obo,
AjPStr* Pdefstr,
ajuint* nrefs
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
AjPStr* | Pdefstr | Output | Returned definition string |
ajuint* | nrefs | Output | Number of dbxrefs after the definition |
AjBool | | RETURN | True on success. |
Input
Output
Pdefstr: | (Output) | Returned definition string |
nrefs: | (Output) | Number of dbxrefs after the definition |
Returns
Description
Return the definition string and the number of dbxrefs
See Also
See other functions in this section
Availability
In release 6.4.0
Return the full text
Synopsis
Prototype
const AjPStr ajOboGetEntry (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
const AjPStr | | RETURN | Returned full text |
Input
Returns
const AjPStr: | Returned full text |
Description
Return the full text
See Also
See other functions in this section
Availability
In release 6.4.0
Return the identifier
Synopsis
Prototype
const AjPStr ajOboGetId (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
const AjPStr | | RETURN | Returned id |
Input
Returns
Description
Return the identifier
See Also
See other functions in this section
Availability
In release 6.4.0
Return the namespace name
Synopsis
Prototype
const AjPStr ajOboGetNamespace (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
const AjPStr | | RETURN | Returned namespace |
Input
Returns
const AjPStr: | Returned namespace |
Description
Return the namespace name
See Also
See other functions in this section
Availability
In release 6.4.0
Return a list of all parent terms derived from is_a tags in the current
obo term
Synopsis
Prototype
ajuint ajOboGetParents (
const AjPObo obo,
AjPList uplist
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
AjPList | uplist | Modify | List of parent terms |
ajuint | | RETURN | Number of new terms added to list |
Input
Input & Output
uplist: | (Modify) | List of parent terms |
Returns
ajuint: | Number of new terms added to list |
Description
Return a list of all parent terms derived from is_a tags in the current
obo term
See Also
See other functions in this section
Availability
In release 6.4.0
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.
Synopsis
Prototype
const char* ajOboGetQryC (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | Obo term object. |
const char* | | RETURN | Query as a character string. |
Input
obo: | (Input) | Obo term object. |
Returns
const char*: | Query as a character string. |
Description
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.
See Also
See other functions in this section
Availability
In release 6.4.0
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.
Synopsis
Prototype
const AjPStr ajOboGetQryS (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | Obo term object. |
const AjPStr | | RETURN | Query as a string. |
Input
obo: | (Input) | Obo term object. |
Returns
const AjPStr: | Query as a string. |
Description
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.
See Also
See other functions in this section
Availability
In release 6.4.0
Return the recommended replacement for an obsolete term
Synopsis
Prototype
const AjPStr ajOboGetReplaced (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
const AjPStr | | RETURN | Returned id |
Input
Returns
Description
Return the recommended replacement for an obsolete term
See Also
See other functions in this section
Availability
In release 6.4.0
Return a list with all this term's descendants appended
Synopsis
Prototype
ajuint ajOboGetTree (
const AjPObo obo,
AjPList obolist
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
AjPList | obolist | Modify | List of obo terms |
ajuint | | RETURN | Number of terms returned |
Input
Input & Output
obolist: | (Modify) | List of obo terms |
Returns
ajuint: | Number of terms returned |
Description
Return a list with all this term's descendants appended
See Also
See other functions in this section
Availability
In release 6.4.0
Test whether an obo term is obsolete
Synopsis
Prototype
AjBool ajOboIsObsolete (
const AjPObo obo
);
Type | Name | Read/Write | Description |
const AjPObo | obo | Input | OBO term |
AjBool | | RETURN | True if term is obsolete |
Input
Returns
AjBool: | True if term is obsolete |
Description
Test whether an obo term is obsolete
See Also
See other functions in this section
Availability
In release 6.4.0
Obo term modifiers
Functions: ajOboClear
Resets all data for an obo term object so that it can be reused.
Synopsis
Prototype
void ajOboClear (
AjPObo obo
);
Type | Name | Read/Write | Description |
AjPObo | obo | Modify | Obo term |
void | | RETURN | |
Input & Output
Returns
Description
Resets all data for an obo term object so that it can be reused.
See Also
See other functions in this section
Availability
In release 6.4.0
Obo tags
Sections: constructors obo tag destructors
Constructors
Functions: ajObotagNewData ajObotagNewTag
Tag constructor
Synopsis
Prototype
AjPObotag ajObotagNewData (
const AjPStr name,
const AjPStr value,
const AjPStr modifier,
const AjPStr comment,
ajuint linenum
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Name |
const AjPStr | value | Input | Value |
const AjPStr | modifier | Input | Modifier |
const AjPStr | comment | Input | Comment |
ajuint | linenum | Input | OBO file line number |
AjPObotag | | RETURN | New object |
Input
name: | (Input) | Name |
value: | (Input) | Value |
modifier: | (Input) | Modifier |
comment: | (Input) | Comment |
linenum: | (Input) | OBO file line number |
Returns
Description
Tag constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Tag copy constructor
Synopsis
Prototype
AjPObotag ajObotagNewTag (
const AjPObotag tag
);
Type | Name | Read/Write | Description |
const AjPObotag | tag | Input | Obo tag |
AjPObotag | | RETURN | New object |
Input
Returns
Description
Tag copy constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the obo tag object.
Functions: ajObotagDel
Tag destructor
Synopsis
Prototype
void ajObotagDel (
AjPObotag* Ptag
);
Type | Name | Read/Write | Description |
AjPObotag* | Ptag | Delete | Tag object to delete |
void | | RETURN | |
Output
Ptag: | (Delete) | Tag object to delete |
Returns
Description
Tag destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Obo dbxrefs
Sections: constructors obo dbxref destructors
Constructors
Functions: ajOboxrefNewData ajOboxrefNewXref
Dbxref constructor
Synopsis
Prototype
AjPOboxref ajOboxrefNewData (
const AjPStr name,
const AjPStr desc
);
Type | Name | Read/Write | Description |
const AjPStr | name | Input | Name |
const AjPStr | desc | Input | Description |
AjPOboxref | | RETURN | New object |
Input
name: | (Input) | Name |
desc: | (Input) | Description |
Returns
Description
Dbxref constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Dbxref copy constructor
Synopsis
Prototype
AjPOboxref ajOboxrefNewXref (
const AjPOboxref xref
);
Type | Name | Read/Write | Description |
const AjPOboxref | xref | Input | Dbxref |
AjPOboxref | | RETURN | New object |
Input
Returns
Description
Dbxref copy constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the obo dbxref object.
Functions: ajOboxrefDel
Dbxref destructor
Synopsis
Prototype
void ajOboxrefDel (
AjPOboxref* Pxref
);
Type | Name | Read/Write | Description |
AjPOboxref* | Pxref | Delete | Dbxref object to delete |
void | | RETURN | |
Output
Pxref: | (Delete) | Dbxref object to delete |
Returns
Description
Dbxref destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Miscellaneous functions
Sections: Miscellaneous
Functions to initialise and clean up internals
Functions: ajOboExit
Cleans up obo term internal memory
Synopsis
Prototype
void ajOboExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up obo term internal memory
See Also
See other functions in this section
Availability
In release 6.4.0