ajdomain.c
These constructors return a pointer to a new instance of an object.
Functions: ajCathReadAllNew ajCathReadAllRawNew ajCathReadCNew ajCathReadNew ajDomainReadAllNew ajScopReadAllNew ajScopReadAllRawNew ajCathNew ajDomainNew ajScopNew ajDomainReadNew ajScopReadNew ajDomainReadCNew ajScopReadCNew
Reads a DCF file (domain classification file) for CATH domains. This file
is in DCF format (see documentation for DOMAINATRIX "cathparse"
application) and creates a list of Cath objects for the entire content.
Synopsis
Prototype
AjPList ajCathReadAllNew (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Pointer to CATH classification file |
AjPList | | RETURN | List of Cath objects. |
Input & Output
inf: | (Modify) | Pointer to CATH classification file |
Returns
AjPList: | List of Cath objects. |
Description
Reads a DCF file (domain classification file) for CATH domains. This file
is in DCF format (see documentation for DOMAINATRIX "cathparse"
application) and creates a list of Cath objects for the entire content.
See Also
See other functions in this section
Availability
In release 6.4.0
Reads the CATH parsable files (dir.cla.scop.txt & dir.des.scop.txt) and
writes a list of Cath objects.
Synopsis
Prototype
AjPList ajCathReadAllRawNew (
AjPFile cathf,
AjPFile domf,
AjPFile namesf,
AjPFile flog
);
Type | Name | Read/Write | Description |
AjPFile | cathf | Modify | Cath class file |
AjPFile | domf | Modify | Cath domain file |
AjPFile | namesf | Modify | Output file |
AjPFile | flog | Modify | Log file |
AjPList | | RETURN | List of Scop objects. |
Input & Output
cathf: | (Modify) | Cath class file |
domf: | (Modify) | Cath domain file |
namesf: | (Modify) | Output file |
flog: | (Modify) | Log file |
Returns
AjPList: | List of Scop objects. |
Description
Reads the CATH parsable files (dir.cla.scop.txt & dir.des.scop.txt) and
writes a list of Cath objects.
See Also
See other functions in this section
Availability
In release 6.4.0
Read a Cath object from a DCF file (domain classification file) in DCF
format (see documentation for
DOMAINATRIX "cathparse" application).
Synopsis
Prototype
AjPCath ajCathReadCNew (
AjPFile inf,
const char* entry
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
const char* | entry | Input | CATH id of entry to retrieve (or "*" for next
domain in file). |
AjPCath | | RETURN | Cath object. |
Input
entry: | (Input) | CATH id of entry to retrieve (or "*" for next
domain in file). |
Input & Output
inf: | (Modify) | Input file stream |
Returns
Description
Read a Cath object from a DCF file (domain classification file) in DCF
format (see documentation for
DOMAINATRIX "cathparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
Read a Cath object from a DCF file (domain classification file) which is
in DCF format (see documentation for
DOMAINATRIX "cathparse" application).
Synopsis
Prototype
AjPCath ajCathReadNew (
AjPFile inf,
const AjPStr entry
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
const AjPStr | entry | Input | CATH id of entry to retrieve
(or "*" for next domain in file). |
AjPCath | | RETURN | Cath object. |
Input
entry: | (Input) | CATH id of entry to retrieve
(or "*" for next domain in file). |
Input & Output
inf: | (Modify) | Input file stream |
Returns
Description
Read a Cath object from a DCF file (domain classification file) which is
in DCF format (see documentation for
DOMAINATRIX "cathparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
Reads the DCF file (domain classification file; see documentation
for DOMAINATRIX "scopparse" application) and creates a list of Domain
objects for the entire content.
Synopsis
Prototype
AjPList ajDomainReadAllNew (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Pointer to DOMAIN classification file |
AjPList | | RETURN | List of domain objects or NULL (file read problem). |
Input & Output
inf: | (Modify) | Pointer to DOMAIN classification file |
Returns
AjPList: | List of domain objects or NULL (file read problem). |
Description
Reads the DCF file (domain classification file; see documentation
for DOMAINATRIX "scopparse" application) and creates a list of Domain
objects for the entire content.
See Also
See other functions in this section
Availability
In release 6.4.0
Reads the DCF file (domain classification file) of SCOP domains. The DCF
file is in DCF format (see documentation
for DOMAINATRIX "scopparse" application). The function creates a list of
cop objects for the entire content.
Synopsis
Prototype
AjPList ajScopReadAllNew (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Pointer to SCOP classification file |
AjPList | | RETURN | List of scop objects or NULL (file read problem). |
Input & Output
inf: | (Modify) | Pointer to SCOP classification file |
Returns
AjPList: | List of scop objects or NULL (file read problem). |
Description
Reads the DCF file (domain classification file) of SCOP domains. The DCF
file is in DCF format (see documentation
for DOMAINATRIX "scopparse" application). The function creates a list of
cop objects for the entire content.
See Also
See other functions in this section
Availability
In release 6.4.0
Reads the SCOP parsable files (dir.cla.scop.txt & dir.des.scop.txt) and
creates a list of Scop objects.
Synopsis
Prototype
AjPList ajScopReadAllRawNew (
AjPFile claf,
AjPFile desf,
AjBool omit
);
Type | Name | Read/Write | Description |
AjPFile | claf | Modify | Scop class file |
AjPFile | desf | Modify | Scop description file |
AjBool | omit | Input | True if domains of 1 chain only are output |
AjPList | | RETURN | List of Scop objects. |
Input
omit: | (Input) | True if domains of 1 chain only are output |
Input & Output
claf: | (Modify) | Scop class file |
desf: | (Modify) | Scop description file |
Returns
AjPList: | List of Scop objects. |
Description
Reads the SCOP parsable files (dir.cla.scop.txt & dir.des.scop.txt) and
creates a list of Scop objects.
See Also
See other functions in this section
Availability
In release 6.4.0
Cath object constructor. Fore-knowledge of the number of chain segments
the domain is comprised of is required.
Synopsis
Prototype
AjPCath ajCathNew (
ajint n
);
Type | Name | Read/Write | Description |
ajint | n | Input | No. of chain segments |
AjPCath | | RETURN | Pointer to a Cath object |
Input
n: | (Input) | No. of chain segments |
Returns
AjPCath: | Pointer to a Cath object |
Description
Cath object constructor. Fore-knowledge of the number of chain segments
the domain is comprised of is required.
See Also
See other functions in this section
Availability
In release 6.4.0
Domain object constructor. Fore-knowledge of the number of chains (SCOP
domains) or chain segments (CATH domains) the domain is comprised of is
required. This is normally called by the ajDomainReadCNew /
ajDomainReadNew functions.
Synopsis
Prototype
AjPDomain ajDomainNew (
ajint n,
ajint type
);
Type | Name | Read/Write | Description |
ajint | n | Input | Number of chains (SCOP) or chain segments (CATH) |
ajint | type | Input | Either ajSCOP (1) or ajCATH (2) |
AjPDomain | | RETURN | Pointer to a Domain object |
Input
n: | (Input) | Number of chains (SCOP) or chain segments (CATH) |
type: | (Input) | Either ajSCOP (1) or ajCATH (2) |
Returns
AjPDomain: | Pointer to a Domain object |
Description
Domain object constructor. Fore-knowledge of the number of chains (SCOP
domains) or chain segments (CATH domains) the domain is comprised of is
required. This is normally called by the ajDomainReadCNew /
ajDomainReadNew functions.
See Also
See other functions in this section
Availability
In release 6.4.0
Scop object constructor. Fore-knowledge of the number of chains is
required. This is normally called by the ajScopReadCNew / ajScopReadNew
functions.
Synopsis
Prototype
AjPScop ajScopNew (
ajint chains
);
Type | Name | Read/Write | Description |
ajint | chains | Input | Number of chains |
AjPScop | | RETURN | Pointer to a Scop object |
Input
chains: | (Input) | Number of chains |
Returns
AjPScop: | Pointer to a Scop object |
Description
Scop object constructor. Fore-knowledge of the number of chains is
required. This is normally called by the ajScopReadCNew / ajScopReadNew
functions.
See Also
See other functions in this section
Availability
In release 6.4.0
Read a Domain object from a DCF file (domain classification file - see
documentation for DOMAINATRIX "scopparse" application).
Synopsis
Prototype
AjPDomain ajDomainReadNew (
AjPFile inf,
const AjPStr entry
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream. |
const AjPStr | entry | Input | Domain id of domain to read (or "*" for
next domain in file). |
AjPDomain | | RETURN | Domain object. |
Input
entry: | (Input) | Domain id of domain to read (or "*" for
next domain in file). |
Input & Output
inf: | (Modify) | Input file stream. |
Returns
Description
Read a Domain object from a DCF file (domain classification file - see
documentation for DOMAINATRIX "scopparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
Read a Scop object from a DCF file (domain classification file). The DCF
file is in DCF format (see documentation for
DOMAINATRIX "scopparse" application).
Synopsis
Prototype
AjPScop ajScopReadNew (
AjPFile inf,
const AjPStr entry
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream. |
const AjPStr | entry | Input | SCOP id of domain to read (or "*" for next
domain in file). |
AjPScop | | RETURN | Scop object. |
Input
entry: | (Input) | SCOP id of domain to read (or "*" for next
domain in file). |
Input & Output
inf: | (Modify) | Input file stream. |
Returns
Description
Read a Scop object from a DCF file (domain classification file). The DCF
file is in DCF format (see documentation for
DOMAINATRIX "scopparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
Read a Domain object from a DCF (domain classification file; see
documentation for DOMAINATRIX "scopparse" application).
Synopsis
Prototype
AjPDomain ajDomainReadCNew (
AjPFile inf,
const char* entry,
ajint dtype
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
const char* | entry | Input | Domain id of domain to parse |
ajint | dtype | Input | Type of domain (ajSCOP or ajCATH) in the DCF
file, or '0' if not sure. |
AjPDomain | | RETURN | Domain object or NULL (file read problem). |
Input
entry: | (Input) | Domain id of domain to parse |
dtype: | (Input) | Type of domain (ajSCOP or ajCATH) in the DCF
file, or '0' if not sure. |
Input & Output
inf: | (Modify) | Input file stream |
Returns
AjPDomain: | Domain object or NULL (file read problem). |
Description
Read a Domain object from a DCF (domain classification file; see
documentation for DOMAINATRIX "scopparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
Read a Scop object from a DCF file (domain classification file) in DCF
format (see documentation for
DOMAINATRIX "scopparse" application).
Synopsis
Prototype
AjPScop ajScopReadCNew (
AjPFile inf,
const char* entry
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
const char* | entry | Input | SCOP id of domain to parse |
AjPScop | | RETURN | Scop object or NULL (file read problem). |
Input
entry: | (Input) | SCOP id of domain to parse |
Input & Output
inf: | (Modify) | Input file stream |
Returns
AjPScop: | Scop object or NULL (file read problem). |
Description
Read a Scop object from a DCF file (domain classification file) in DCF
format (see documentation for
DOMAINATRIX "scopparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
These destructors functions receive the address of the instance to be
deleted. The original pointer is set to NULL so is ready for re-use.
Functions: ajDomainDel ajScopDel ajCathDel
Destructor for domain object.
Synopsis
Prototype
void ajDomainDel (
AjPDomain* ptr
);
Type | Name | Read/Write | Description |
AjPDomain* | ptr | Delete | Domain object pointer |
void | | RETURN | |
Output
ptr: | (Delete) | Domain object pointer |
Returns
Description
Destructor for domain object.
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for scop object.
Synopsis
Prototype
void ajScopDel (
AjPScop* ptr
);
Type | Name | Read/Write | Description |
AjPScop* | ptr | Delete | Scop object pointer |
void | | RETURN | |
Output
ptr: | (Delete) | Scop object pointer |
Returns
Description
Destructor for scop object.
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for Cath object. Fore-knowledge of the number of chain segments
domain is comprised of is required.
Synopsis
Prototype
void ajCathDel (
AjPCath* ptr
);
Type | Name | Read/Write | Description |
AjPCath* | ptr | Delete | Cath object pointer |
void | | RETURN | |
Output
ptr: | (Delete) | Cath object pointer |
Returns
Description
Destructor for Cath object. Fore-knowledge of the number of chain segments
domain is comprised of is required.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions overwrite the instance provided as the first argument
A NULL value is always acceptable so these functions are often used to
create a new instance by assignment.
Functions: ajDomainCopy ajCathCopy ajScopCopy
Copies the contents from one Domain object to another.
Synopsis
Prototype
AjBool ajDomainCopy (
AjPDomain* to,
const AjPDomain from
);
Type | Name | Read/Write | Description |
AjPDomain* | to | Output | Domain object pointer |
const AjPDomain | from | Input | Domain object |
AjBool | | RETURN | True if copy was successful. |
Input
from: | (Input) | Domain object |
Output
to: | (Output) | Domain object pointer |
Returns
AjBool: | True if copy was successful. |
Description
Copies the contents from one Domain object to another.
See Also
See other functions in this section
Availability
In release 6.4.0
Copies the contents from one Cath object to another.
Synopsis
Prototype
AjBool ajCathCopy (
AjPCath* to,
const AjPCath from
);
Type | Name | Read/Write | Description |
AjPCath* | to | Output | Cath object pointer |
const AjPCath | from | Input | Cath object |
AjBool | | RETURN | True if copy was successful. |
Input
Output
to: | (Output) | Cath object pointer |
Returns
AjBool: | True if copy was successful. |
Description
Copies the contents from one Cath object to another.
See Also
See other functions in this section
Availability
In release 6.4.0
Copies the contents from one Scop object to another.
Synopsis
Prototype
AjBool ajScopCopy (
AjPScop* to,
const AjPScop from
);
Type | Name | Read/Write | Description |
AjPScop* | to | Output | Scop object pointer |
const AjPScop | from | Input | Scop object |
AjBool | | RETURN | True if copy was successful. |
Input
Output
to: | (Output) | Scop object pointer |
Returns
AjBool: | True if copy was successful. |
Description
Copies the contents from one Scop object to another.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of an instance but do not make any
changes.
Functions: ajScopMatchSunid ajScopMatchScopid ajScopMatchPdbId ajCathMatchPdbId
Function to sort Scop objects by Sunid_Family.
Synopsis
Prototype
ajint ajScopMatchSunid (
const void* entry1,
const void* entry2
);
Type | Name | Read/Write | Description |
const void* | entry1 | Input | Pointer to Scop object 1 |
const void* | entry2 | Input | Pointer to Scop object 2 |
ajint | | RETURN | -1 if Start1 should sort before Start2, +1 if the Start2
should sort first. 0 if they are identical. |
Input
entry1: | (Input) | Pointer to Scop object 1 |
entry2: | (Input) | Pointer to Scop object 2 |
Returns
ajint: | -1 if Start1 should sort before Start2, +1 if the Start2
should sort first. 0 if they are identical. |
Description
Function to sort Scop objects by Sunid_Family.
See Also
See other functions in this section
Availability
In release 6.4.0
Function to sort Scop objects by Entry element.
Synopsis
Prototype
ajint ajScopMatchScopid (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Scop object 1 |
const void* | hit2 | Input | Pointer to Scop object 2 |
ajint | | RETURN | -1 if Entry1 should sort before Entry2, +1 if the Entry2
should sort first. 0 if they are identical in length and content. |
Input
hit1: | (Input) | Pointer to Scop object 1 |
hit2: | (Input) | Pointer to Scop object 2 |
Returns
ajint: | -1 if Entry1 should sort before Entry2, +1 if the Entry2
should sort first. 0 if they are identical in length and content. |
Description
Function to sort Scop objects by Entry element.
See Also
See other functions in this section
Availability
In release 6.4.0
Function to sort Scop objects by Pdb element.
Synopsis
Prototype
ajint ajScopMatchPdbId (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Scop object 1 |
const void* | hit2 | Input | Pointer to Scop object 2 |
ajint | | RETURN | -1 if Pdb1 should sort before Pdb2, +1 if the Pdb2
should sort first. 0 if they are identical in length and content. |
Input
hit1: | (Input) | Pointer to Scop object 1 |
hit2: | (Input) | Pointer to Scop object 2 |
Returns
ajint: | -1 if Pdb1 should sort before Pdb2, +1 if the Pdb2
should sort first. 0 if they are identical in length and content. |
Description
Function to sort Scop objects by Pdb element.
See Also
See other functions in this section
Availability
In release 6.4.0
Function to sort Cath objects by Pdb element.
Synopsis
Prototype
ajint ajCathMatchPdbId (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Cath object 1 |
const void* | hit2 | Input | Pointer to Cath object 2 |
ajint | | RETURN | -1 if Pdb1 should sort before Pdb2, +1 if the Pdb2
should sort first. 0 if they are identical in length and content. |
Input
hit1: | (Input) | Pointer to Cath object 1 |
hit2: | (Input) | Pointer to Cath object 2 |
Returns
ajint: | -1 if Pdb1 should sort before Pdb2, +1 if the Pdb2
should sort first. 0 if they are identical in length and content. |
Description
Function to sort Cath objects by Pdb element.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions return the contents of an instance but do not make any
changes.
Functions: ajDomainGetId ajDomainGetSeqPdb ajDomainGetSeqSpr ajDomainGetPdb ajDomainGetAcc ajDomainGetSpr ajDomainGetN ajScopArrFindScopid ajScopArrFindSunid ajScopArrFindPdbid ajCathArrFindPdbid
Returns domain id, either DomainID element (Cath object) or Entry
(Scop object).
Synopsis
Prototype
AjPStr ajDomainGetId (
const AjPDomain obj
);
Type | Name | Read/Write | Description |
const AjPDomain | obj | Input | Domain object |
AjPStr | | RETURN | Or NULL on error. |
Input
Returns
Description
Returns domain id, either DomainID element (Cath object) or Entry
(Scop object).
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the pdb sequence from a Domain object.
Synopsis
Prototype
AjPStr ajDomainGetSeqPdb (
const AjPDomain obj
);
Type | Name | Read/Write | Description |
const AjPDomain | obj | Input | Domain object |
AjPStr | | RETURN | Or NULL on error. |
Input
Returns
Description
Returns the pdb sequence from a Domain object.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the swissprot sequence from a Domain object.
Synopsis
Prototype
AjPStr ajDomainGetSeqSpr (
const AjPDomain obj
);
Type | Name | Read/Write | Description |
const AjPDomain | obj | Input | Domain object |
AjPStr | | RETURN | Or NULL on error. |
Input
Returns
Description
Returns the swissprot sequence from a Domain object.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the Pdb element from a Domain object.
Synopsis
Prototype
AjPStr ajDomainGetPdb (
const AjPDomain obj
);
Type | Name | Read/Write | Description |
const AjPDomain | obj | Input | Domain object |
AjPStr | | RETURN | Or NULL on error. |
Input
Returns
Description
Returns the Pdb element from a Domain object.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the Acc element from a Domain object.
Synopsis
Prototype
AjPStr ajDomainGetAcc (
const AjPDomain obj
);
Type | Name | Read/Write | Description |
const AjPDomain | obj | Input | Domain object |
AjPStr | | RETURN | Or NULL on error. |
Input
Returns
Description
Returns the Acc element from a Domain object.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the Spr element from a Domain object.
Synopsis
Prototype
AjPStr ajDomainGetSpr (
const AjPDomain obj
);
Type | Name | Read/Write | Description |
const AjPDomain | obj | Input | Domain object |
AjPStr | | RETURN | Or NULL on error. |
Input
Returns
Description
Returns the Spr element from a Domain object.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns no. chains or chain segments in a domain, either NSegment element
(Cath domains) or N element (Scop domains).
Synopsis
Prototype
ajint ajDomainGetN (
const AjPDomain obj
);
Type | Name | Read/Write | Description |
const AjPDomain | obj | Input | Domain object |
ajint | | RETURN | Or -1 on error. |
Input
Returns
Description
Returns no. chains or chain segments in a domain, either NSegment element
(Cath domains) or N element (Scop domains).
See Also
See other functions in this section
Availability
In release 6.4.0
Performs a binary search for a SCOP domain id over an array of Scop
structures (which of course must first have been sorted). This is a
case-insensitive search.
Synopsis
Prototype
ajint ajScopArrFindScopid (
AjPScop const* arr,
ajint siz,
const AjPStr id
);
Type | Name | Read/Write | Description |
AjPScop const* | arr | Input | Array of AjPScop objects |
ajint | siz | Input | Size of array |
const AjPStr | id | Input | Search term |
ajint | | RETURN | Index of first Scop object found with a SCOP domain id
matching id, or -1 if id is not found. |
Input
arr: | (Input) | Array of AjPScop objects |
siz: | (Input) | Size of array |
id: | (Input) | Search term |
Returns
ajint: | Index of first Scop object found with a SCOP domain id
matching id, or -1 if id is not found. |
Description
Performs a binary search for a SCOP domain id over an array of Scop
structures (which of course must first have been sorted). This is a
case-insensitive search.
See Also
See other functions in this section
Availability
In release 6.4.0
Performs a binary search for a SCOP sunid over an array of Scop
objects (which of course must first have been sorted). This is a
case-insensitive search.
Synopsis
Prototype
ajint ajScopArrFindSunid (
AjPScop const* arr,
ajint siz,
ajint id
);
Type | Name | Read/Write | Description |
AjPScop const* | arr | Input | Array of Scop objects |
ajint | siz | Input | Size of array |
ajint | id | Input | Search term |
ajint | | RETURN | Index of first Scop object found with an PDB code
matching id, or -1 if id is not found. |
Input
arr: | (Input) | Array of Scop objects |
siz: | (Input) | Size of array |
id: | (Input) | Search term |
Returns
ajint: | Index of first Scop object found with an PDB code
matching id, or -1 if id is not found. |
Description
Performs a binary search for a SCOP sunid over an array of Scop
objects (which of course must first have been sorted). This is a
case-insensitive search.
See Also
See other functions in this section
Availability
In release 6.4.0
Performs a binary search for a SCOP domain id over an array of Scop
objects (which of course must first have been sorted). This is a
case-insensitive search.
Synopsis
Prototype
ajint ajScopArrFindPdbid (
AjPScop const* arr,
ajint siz,
const AjPStr id
);
Type | Name | Read/Write | Description |
AjPScop const* | arr | Input | Array of AjPScop objects |
ajint | siz | Input | Size of array |
const AjPStr | id | Input | Search term |
ajint | | RETURN | Index of first Scop object found with a PDB code
matching id, or -1 if id is not found. |
Input
arr: | (Input) | Array of AjPScop objects |
siz: | (Input) | Size of array |
id: | (Input) | Search term |
Returns
ajint: | Index of first Scop object found with a PDB code
matching id, or -1 if id is not found. |
Description
Performs a binary search for a SCOP domain id over an array of Scop
objects (which of course must first have been sorted). This is a
case-insensitive search.
See Also
See other functions in this section
Availability
In release 6.4.0
Performs a binary search for a CATH domain id over an array of Cath
structures (which of course must first have been sorted). This is a
case-insensitive search.
Synopsis
Prototype
ajint ajCathArrFindPdbid (
AjPCath const* arr,
ajint siz,
const AjPStr id
);
Type | Name | Read/Write | Description |
AjPCath const* | arr | Input | Array of AjPCath objects |
ajint | siz | Input | Size of array |
const AjPStr | id | Input | Search term |
ajint | | RETURN | Index of first Cath object found with a PDB code
matching id, or -1 if id is not found. |
Input
arr: | (Input) | Array of AjPCath objects |
siz: | (Input) | Size of array |
id: | (Input) | Search term |
Returns
ajint: | Index of first Cath object found with a PDB code
matching id, or -1 if id is not found. |
Description
Performs a binary search for a CATH domain id over an array of Cath
structures (which of course must first have been sorted). This is a
case-insensitive search.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of an instance but do not make any
changes.
Functions: ajPdbWriteDomain ajCathWrite ajDomainWrite ajScopWrite
Writes a clean coordinate file for a SCOP domain. Where coordinates for
multiple models (e.g. NMR structures) are given, data for model 1 are
written.
In the clean file, the coordinates are presented as belonging to a single
chain regardless of how many chains the domain comprised.
Coordinates for heterogens are NOT written to file.
Synopsis
Prototype
AjBool ajPdbWriteDomain (
AjPFile outf,
const AjPPdb pdb,
const AjPScop scop,
AjPFile errf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const AjPPdb | pdb | Input | Pdb object |
const AjPScop | scop | Input | Scop object |
AjPFile | errf | Modify | Output file stream for error messages |
AjBool | | RETURN | True on success |
Input
pdb: | (Input) | Pdb object |
scop: | (Input) | Scop object |
Input & Output
outf: | (Modify) | Output file stream |
errf: | (Modify) | Output file stream for error messages |
Returns
Description
Writes a clean coordinate file for a SCOP domain. Where coordinates for
multiple models (e.g. NMR structures) are given, data for model 1 are
written.
In the clean file, the coordinates are presented as belonging to a single
chain regardless of how many chains the domain comprised.
Coordinates for heterogens are NOT written to file.
See Also
See other functions in this section
Availability
In release 6.4.0
Write contents of a Cath object to an output DCF file (domain
classification file) in DCF format (see documentation for DOMAINATRIX
"cathparse" application).
Synopsis
Prototype
AjBool ajCathWrite (
AjPFile outf,
const AjPCath obj
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const AjPCath | obj | Input | Cath object |
AjBool | | RETURN | True if file was written ok. |
Input
Input & Output
outf: | (Modify) | Output file stream |
Returns
AjBool: | True if file was written ok. |
Description
Write contents of a Cath object to an output DCF file (domain
classification file) in DCF format (see documentation for DOMAINATRIX
"cathparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
Write contents of a Domain object to an output file in DCF format
(see documentation for DOMAINATRIX "scopparse" application).
Synopsis
Prototype
AjBool ajDomainWrite (
AjPFile outf,
const AjPDomain obj
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const AjPDomain | obj | Input | Domain object |
AjBool | | RETURN | True if file was written ok. |
Input
Input & Output
outf: | (Modify) | Output file stream |
Returns
AjBool: | True if file was written ok. |
Description
Write contents of a Domain object to an output file in DCF format
(see documentation for DOMAINATRIX "scopparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
Write contents of a Scop object to a DCF file (domain classification
file). The DCF file uses DCF format (see documentation for DOMAINATRIX
"scopparse" application).
Synopsis
Prototype
AjBool ajScopWrite (
AjPFile outf,
const AjPScop obj
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const AjPScop | obj | Input | Scop object |
AjBool | | RETURN | True if file was written ok. |
Input
Input & Output
outf: | (Modify) | Output file stream |
Returns
AjBool: | True if file was written ok. |
Description
Write contents of a Scop object to a DCF file (domain classification
file). The DCF file uses DCF format (see documentation for DOMAINATRIX
"scopparse" application).
See Also
See other functions in this section
Availability
In release 6.4.0
These functions may have diverse functions that do not fit into the other
categories.
Functions: ajDomainDCFType ajDomainExit ajDomainDummyFunction
Reads a DCF file (domain classification file; see documentation for
DOMAINATRIX "scopparse" application) and ascertains the type of domains
(ajSCOP or ajCATH) within.
Synopsis
Prototype
ajint ajDomainDCFType (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
ajint | | RETURN | ajSCOP, ajCATH or -1 (error) as appropriate. |
Input & Output
inf: | (Modify) | Input file stream |
Returns
ajint: | ajSCOP, ajCATH or -1 (error) as appropriate. |
Description
Reads a DCF file (domain classification file; see documentation for
DOMAINATRIX "scopparse" application) and ascertains the type of domains
(ajSCOP or ajCATH) within.
See Also
See other functions in this section
Availability
In release 6.4.0
Cleanup of Domain function internals.
Synopsis
Prototype
void ajDomainExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleanup of Domain function internals.
See Also
See other functions in this section
Availability
In release 6.4.0
Dummy function to catch all unused functions defined in the ajdomain
source file.
Synopsis
Prototype
void ajDomainDummyFunction (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Dummy function to catch all unused functions defined in the ajdomain
source file.
See Also
See other functions in this section
Availability
In release 6.4.0