ajtax.c
Datatypes: AjPTax AjPTaxcit AjPTaxcode AjPTaxname none
Taxonomy data
Sections: constructors Taxonomy data destructors Casts taxonomy data modifiers
Constructors
Functions: ajTaxNew ajTaxNewTax
Tax data constructor
Synopsis
Prototype
AjPTax ajTaxNew (
void
);
Type | Name | Read/Write | Description |
AjPTax | | RETURN | New object |
Returns
Description
Tax data constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxon copy constructor
Synopsis
Prototype
AjPTax ajTaxNewTax (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
AjPTax | | RETURN | New object |
Input
Returns
Description
Taxon 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 taxonomy data object.
Functions: ajTaxDel
Taxonomy data destructor
Synopsis
Prototype
void ajTaxDel (
AjPTax* Ptax
);
Type | Name | Read/Write | Description |
AjPTax* | Ptax | Delete | Taxonomy data object to delete |
void | | RETURN | |
Output
Ptax: | (Delete) | Taxonomy data object to delete |
Returns
Description
Taxonomy data destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Return values from a taxonomy data object
Functions: ajTaxGetDb ajTaxGetId ajTaxGetName ajTaxGetParent ajTaxGetQryC ajTaxGetQryS ajTaxGetRank ajTaxGetTree ajTaxIsHidden ajTaxIsSpecies
Return the database name
Synopsis
Prototype
const AjPStr ajTaxGetDb (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
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 identifier
Synopsis
Prototype
const AjPStr ajTaxGetId (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
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 name
Synopsis
Prototype
const AjPStr ajTaxGetName (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
const AjPStr | | RETURN | Returned name |
Input
Returns
const AjPStr: | Returned name |
Description
Return the name
See Also
See other functions in this section
Availability
In release 6.4.0
Return the parent id of a taxon
Synopsis
Prototype
ajuint ajTaxGetParent (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
ajuint | | RETURN | Parent id |
Input
Returns
Description
Return the parent id of a taxon
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the query string of a taxonomy data object.
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* ajTaxGetQryC (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxonomy data object. |
const char* | | RETURN | Query as a character string. |
Input
tax: | (Input) | Taxonomy data object. |
Returns
const char*: | Query as a character string. |
Description
Returns the query string of a taxonomy data object.
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 a taxonomy data object.
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 ajTaxGetQryS (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxonomy data object. |
const AjPStr | | RETURN | Query as a string. |
Input
tax: | (Input) | Taxonomy data object. |
Returns
const AjPStr: | Query as a string. |
Description
Returns the query string of a taxonomy data object.
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 taxonomic rank
Synopsis
Prototype
const AjPStr ajTaxGetRank (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
const AjPStr | | RETURN | Returned rank |
Input
Returns
const AjPStr: | Returned rank |
Description
Return the taxonomic rank
See Also
See other functions in this section
Availability
In release 6.4.0
Return a list with all this taxon's descendants appended
Synopsis
Prototype
ajuint ajTaxGetTree (
const AjPTax tax,
AjPList taxlist
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
AjPList | taxlist | Modify | List of taxons |
ajuint | | RETURN | Number of taxons returned |
Input
Input & Output
taxlist: | (Modify) | List of taxons |
Returns
ajuint: | Number of taxons returned |
Description
Return a list with all this taxon's descendants appended
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a taxon had tghe GenBank "hidden" flag set.
Synopsis
Prototype
AjBool ajTaxIsHidden (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
AjBool | | RETURN | True if node is hidden in GenBank taxonomy record |
Input
Returns
AjBool: | True if node is hidden in GenBank taxonomy record |
Description
Tests whether a taxon had tghe GenBank "hidden" flag set.
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a taxon is at the rank of 'species'
Synopsis
Prototype
AjBool ajTaxIsSpecies (
const AjPTax tax
);
Type | Name | Read/Write | Description |
const AjPTax | tax | Input | Taxon |
AjBool | | RETURN | True if taxon is a species |
Input
Returns
AjBool: | True if taxon is a species |
Description
Tests whether a taxon is at the rank of 'species'
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy data modifiers
Functions: ajTaxClear
Resets all data for a taxonomy data object so that it can be reused.
Synopsis
Prototype
void ajTaxClear (
AjPTax tax
);
Type | Name | Read/Write | Description |
AjPTax | tax | Modify | Taxonomy data object |
void | | RETURN | |
Input & Output
tax: | (Modify) | Taxonomy data object |
Returns
Description
Resets all data for a taxonomy data object so that it can be reused.
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy citation data
Sections: constructors destructors
Constructors
Functions: ajTaxcitNew
Taxonomy citation constructor
Synopsis
Prototype
AjPTaxcit ajTaxcitNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxcit | | RETURN | New object |
Returns
Description
Taxonomy citation 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 taxon citation object.
Functions: ajTaxcitDel
Taxonomy citation destructor
Synopsis
Prototype
void ajTaxcitDel (
AjPTaxcit* Pcit
);
Type | Name | Read/Write | Description |
AjPTaxcit* | Pcit | Delete | Taxon citation object |
void | | RETURN | |
Output
Pcit: | (Delete) | Taxon citation object |
Returns
Description
Taxonomy citation destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy genetic code data
Sections: constructors
Constructors
Functions: ajTaxcodeNew
Taxonomy genetic code constructor
Synopsis
Prototype
AjPTaxcode ajTaxcodeNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxcode | | RETURN | New object |
Returns
Description
Taxonomy genetic code constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy deleted id constructor
Synopsis
Prototype
AjPTaxdel ajTaxdelNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxdel | | RETURN | New object |
Returns
Description
Taxonomy deleted id constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy division constructor
Synopsis
Prototype
AjPTaxdiv ajTaxdivNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxdiv | | RETURN | New object |
Returns
Description
Taxonomy division constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy merged id constructor
Synopsis
Prototype
AjPTaxmerge ajTaxmergeNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxmerge | | RETURN | New object |
Returns
Description
Taxonomy merged id constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy names constructor
Synopsis
Prototype
AjPTaxname ajTaxnameNew (
void
);
Type | Name | Read/Write | Description |
AjPTaxname | | RETURN | New object |
Returns
Description
Taxonomy names constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy names copy constructor
Synopsis
Prototype
AjPTaxname ajTaxnameNewName (
const AjPTaxname name
);
Type | Name | Read/Write | Description |
const AjPTaxname | name | Input | Name |
AjPTaxname | | RETURN | New object |
Input
Returns
Description
Taxonomy names copy constructor
See Also
See other functions in this section
Availability
In release 6.4.0
Taxonomy name data
Sections: destructors
Destruction destroys all internal data structures and frees the
memory allocated for the taxon name object.
Functions: ajTaxnameDel
Taxonomy names destructor
Synopsis
Prototype
void ajTaxnameDel (
AjPTaxname* Pname
);
Type | Name | Read/Write | Description |
AjPTaxname* | Pname | Delete | Taxon name object |
void | | RETURN | |
Output
Pname: | (Delete) | Taxon name object |
Returns
Description
Taxonomy names destructor
See Also
See other functions in this section
Availability
In release 6.4.0
Miscellaneous functions
Sections: exit
Functions called on exit from the program by ajExit to do
any necessary cleanup and to report internal statistics to the debug file
Functions: ajTaxExit
Cleans up taxonomy processing internal memory
Synopsis
Prototype
void ajTaxExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up taxonomy processing internal memory
See Also
See other functions in this section
Availability
In release 6.4.0