ajpdb.c
All constructors return a pointer to a new instance. It is the
responsibility of the user to first destroy any previous instance. The
target pointer does not need to be initialised to NULL, but it is good
programming practice to do so anyway.
Reads the swissprot:pdb equivalence table available at URL (1)
(1) http://www.expasy.ch/cgi-bin/lists?pdbtosp.txt
and returns the data as a list of Pdbtosp objects.
Synopsis
Prototype
AjPList ajPdbtospReadAllRawNew (
AjPFile inf
);
Input & Output
Returns
| AjPList: | List of Pdbtosp objects. |
Description
Reads the swissprot:pdb equivalence table available at URL (1)
(1) http://www.expasy.ch/cgi-bin/lists?pdbtosp.txt
and returns the data as a list of Pdbtosp objects.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a Pdbtosp object from a file in embl-like format (see documentation
for DOMAINATRIX "pdbtosp" application).
Synopsis
Prototype
AjPPdbtosp ajPdbtospReadNew (
AjPFile inf,
const AjPStr entry
);
Input
Input & Output
| inf: | (Modify) | Input file stream |
Returns
| AjPPdbtosp: | True on success |
Description
Read a Pdbtosp object from a file in embl-like format (see documentation
for DOMAINATRIX "pdbtosp" application).
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a Pdbtosp object from a file in embl-like format. Memory for the
object is allocated.
Synopsis
Prototype
AjPPdbtosp ajPdbtospReadCNew (
AjPFile inf,
const char* entry
);
Input
Input & Output
| inf: | (Modify) | Input file stream |
Returns
| AjPPdbtosp: | True on success |
Description
Read a Pdbtosp object from a file in embl-like format. Memory for the
object is allocated.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read all the Pdbtosp objects in a file in embl-like format (see
documentation for DOMAINATRIX "pdbtosp" application) and writes a list of
these objects. It then sorts the list by PDB id.
Synopsis
Prototype
AjPList ajPdbtospReadAllNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Input file stream |
Returns
| AjPList: | List of Pdbtosp objects. |
Description
Read all the Pdbtosp objects in a file in embl-like format (see
documentation for DOMAINATRIX "pdbtosp" application) and writes a list of
these objects. It then sorts the list by PDB id.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application). Takes the chain
identifier as an integer. If the arguments mod and chn are both 0, the
function will read the next Cmap in the file.
Synopsis
Prototype
AjPCmap ajCmapReadINew (
AjPFile inf,
ajint chn,
ajint mod
);
Input
| chn: | (Input) | Chain number |
| mod: | (Input) | Model number |
Input & Output
| inf: | (Modify) | Input file stream |
Returns
| AjPCmap: | Pointer to new Cmap object. |
Description
Read a Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application). Takes the chain
identifier as an integer. If the arguments mod and chn are both 0, the
function will read the next Cmap in the file.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application). Takes the chain
identifier as a character.
Synopsis
Prototype
AjPCmap ajCmapReadCNew (
AjPFile inf,
char chn,
ajint mod
);
Input
| chn: | (Input) | Chain number |
| mod: | (Input) | Model number |
Input & Output
| inf: | (Modify) | Input file stream |
Returns
| AjPCmap: | Pointer to new Cmap object. |
Description
Read a Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application). Takes the chain
identifier as a character.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read every Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application) and returns a list
of these objects.
Synopsis
Prototype
AjPList ajCmapReadAllNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Input file stream |
Returns
| AjPList: | List of Cmap objects. |
Description
Read every Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application) and returns a list
of these objects.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application). This is not
usually called by the user, who uses ajCmapReadINew or ajCmapReadCNew
instead. If mode==CMAP_MODE_I, chn==0 and mod==0, the function will
read the next Cmap in the file.
Synopsis
Prototype
AjPCmap ajCmapReadNew (
AjPFile inf,
ajint mode,
ajint chn,
ajint mod
);
Input
| mode: | (Input) | Mode, either CMAP_MODE_I (treat chn arg as
an integer) or CMAP_MODE_C (treat chn arg as
a character). |
| chn: | (Input) | Chain identifier / number. |
| mod: | (Input) | Model number. |
Input & Output
| inf: | (Modify) | Input file stream. |
Returns
| AjPCmap: | True on success (an object read) |
Description
Read a Cmap object from a file in CON format (see
documentation for DOMAINATRIX "contacts" application). This is not
usually called by the user, who uses ajCmapReadINew or ajCmapReadCNew
instead. If mode==CMAP_MODE_I, chn==0 and mod==0, the function will
read the next Cmap in the file.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a Vdwall object from a file in embl-like format (see documentation
for the EMBASSY DOMAINATRIX package).
Synopsis
Prototype
AjPVdwall ajVdwallReadNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Input file stream |
Returns
| AjPVdwall: | Pointer to Vdwall object. |
Description
Read a Vdwall object from a file in embl-like format (see documentation
for the EMBASSY DOMAINATRIX package).
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read heterogen dictionary, the Het object is allocated.
Synopsis
Prototype
AjPHet ajHetReadNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Pointer to Het file |
Returns
Description
Read heterogen dictionary, the Het object is allocated.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a dictionary of heterogen groups available at
http://pdb.rutgers.edu/het_dictionary.txt and writes a Het object.
Synopsis
Prototype
AjPHet ajHetReadRawNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Pointer to dictionary |
Returns
Description
Reads a dictionary of heterogen groups available at
http://pdb.rutgers.edu/het_dictionary.txt and writes a Het object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a clean coordinate file file (see documentation for DOMAINATRIX
"pdbparse" application) and writes a filled Pdb object. Data for the first
model only is read in.
Synopsis
Prototype
AjPPdb ajPdbReadFirstModelNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Pointer to clean coordinate file |
Returns
| AjPPdb: | Pointer to Pdb object. |
Description
Reads a clean coordinate file file (see documentation for DOMAINATRIX
"pdbparse" application) and writes a filled Pdb object. Data for the first
model only is read in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a clean coordinate file (see documentation for DOMAINATRIX "pdbparse"
application) and writes a filled Pdb object. Data for all models is read.
Synopsis
Prototype
AjPPdb ajPdbReadAllModelsNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Pointer to clean coordinate file |
Returns
| AjPPdb: | Pointer to Pdb object. |
Description
Reads a clean coordinate file (see documentation for DOMAINATRIX "pdbparse"
application) and writes a filled Pdb object. Data for all models is read.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a clean coordinate file file (see documentation for DOMAINATRIX
"pdbparse" application) and writes a filled Pdb object. Data for the first
model only is read in.
Synopsis
Prototype
AjPPdb ajPdbReadNew (
AjPFile inf,
ajint mode
);
Input
| mode: | (Input) | Mode. 0==Read first model only. 1==Read all models. |
Input & Output
| inf: | (Modify) | Pointer to clean coordinate file |
Returns
| AjPPdb: | Pointer to Pdb object. |
Description
Reads a clean coordinate file file (see documentation for DOMAINATRIX
"pdbparse" application) and writes a filled Pdb object. Data for the first
model only is read in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a clean coordinate file (see documentation for DOMAINATRIX "pdbparse"
application) lacking residue-level description in RE records and writes a
filled Pdb object.
Synopsis
Prototype
AjPPdb ajPdbReadoldNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Pointer to clean coordinate file |
Returns
| AjPPdb: | Pointer to Pdb object. |
Description
Reads a clean coordinate file (see documentation for DOMAINATRIX "pdbparse"
application) lacking residue-level description in RE records and writes a
filled Pdb object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a clean coordinate file file (see documentation for DOMAINATRIX
"pdbparse" application) lacking residue-level description in RE records and
writes a filled Pdb object. Data for the first model only is read in.
Synopsis
Prototype
AjPPdb ajPdbReadoldFirstModelNew (
AjPFile inf
);
Input & Output
| inf: | (Modify) | Pointer to clean coordinate file |
Returns
| AjPPdb: | Pointer to Pdb object. |
Description
Reads a clean coordinate file file (see documentation for DOMAINATRIX
"pdbparse" application) lacking residue-level description in RE records and
writes a filled Pdb object. Data for the first model only is read in.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Atom object constructor.
This is normally called by the ajChainNew function.
Synopsis
Prototype
AjPAtom ajAtomNew (
void
);
Returns
| AjPAtom: | Pointer to an atom object |
Description
Atom object constructor.
This is normally called by the ajChainNew function.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Residue object constructor.
This is normally called by the ajChainNew function.
Synopsis
Prototype
AjPResidue ajResidueNew (
void
);
Returns
| AjPResidue: | Pointer to a Residue object |
Description
Residue object constructor.
This is normally called by the ajChainNew function.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Chain object constructor.
This is normally called by the ajPdbNew function
Synopsis
Prototype
AjPChain ajChainNew (
void
);
Returns
| AjPChain: | Pointer to a chain object |
Description
Chain object constructor.
This is normally called by the ajPdbNew function
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Pdb object constructor. Fore-knowledge of the number of chains
is required. This is normally called by the functions that read PDB
files or clean coordinate files (see embpdb.c & embpdbraw.c).
Synopsis
Prototype
AjPPdb ajPdbNew (
ajint n
);
Input
| n: | (Input) | Number of chains in this pdb file |
Returns
| AjPPdb: | Pointer to a pdb object |
Description
Pdb object constructor. Fore-knowledge of the number of chains
is required. This is normally called by the functions that read PDB
files or clean coordinate files (see embpdb.c & embpdbraw.c).
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Hetent object constructor.
Synopsis
Prototype
AjPHetent ajHetentNew (
void
);
Returns
| AjPHetent: | Pointer to a Hetent object |
Description
Hetent object constructor.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Het object constructor.
Synopsis
Prototype
AjPHet ajHetNew (
ajint n
);
Input
| n: | (Input) | Number of entries in dictionary. |
Returns
| AjPHet: | Pointer to a Het object |
Description
Het object constructor.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Vdwall object constructor. This is normally called by the ajVdwallReadNew
function. Fore-knowledge of the number of residues is required.
Synopsis
Prototype
AjPVdwall ajVdwallNew (
ajint n
);
Input
| n: | (Input) | Number of residues |
Returns
| AjPVdwall: | Pointer to a Vdwall object |
Description
Vdwall object constructor. This is normally called by the ajVdwallReadNew
function. Fore-knowledge of the number of residues is required.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Vdwres object constructor. This is normally called by the ajVdwallReadNew
function. Fore-knowledge of the number of atoms is required.
Synopsis
Prototype
AjPVdwres ajVdwresNew (
ajint n
);
Input
Returns
| AjPVdwres: | Pointer to a Vdwres object |
Description
Vdwres object constructor. This is normally called by the ajVdwallReadNew
function. Fore-knowledge of the number of atoms is required.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Cmap object constructor. This is normally called by the ajCmapReadNew
function. Fore-knowledge of the dimension (number of residues) for the
contact map is required.
Synopsis
Prototype
AjPCmap ajCmapNew (
ajint n
);
Input
| n: | (Input) | Dimenion of contact map |
Returns
| AjPCmap: | Pointer to a Cmap object |
Description
Cmap object constructor. This is normally called by the ajCmapReadNew
function. Fore-knowledge of the dimension (number of residues) for the
contact map is required.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Pdbtosp object constructor. Fore-knowledge of the number of entries is
required. This is normally called by the ajPdbtospReadCNew /
ajPdbtospReadNew functions.
Synopsis
Prototype
AjPPdbtosp ajPdbtospNew (
ajint n
);
Input
| n: | (Input) | Number of entries |
Returns
| AjPPdbtosp: | Pointer to a Pdbtosp object |
Description
Pdbtosp object constructor. Fore-knowledge of the number of entries is
required. This is normally called by the ajPdbtospReadCNew /
ajPdbtospReadNew functions.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
All destructor functions receive the address of the instance to be
deleted. The original pointer is set to NULL so is ready for re-use.
Destructor for atom object.
Synopsis
Prototype
void ajAtomDel (
AjPAtom* ptr
);
Output
| ptr: | (Delete) | Atom object pointer |
Returns
Description
Destructor for atom object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for residue object.
Synopsis
Prototype
void ajResidueDel (
AjPResidue* ptr
);
Output
| ptr: | (Delete) | Residue object pointer |
Returns
Description
Destructor for residue object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for chain object.
Synopsis
Prototype
void ajChainDel (
AjPChain* ptr
);
Output
| ptr: | (Delete) | Chain object pointer |
Returns
Description
Destructor for chain object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for pdb object.
Synopsis
Prototype
void ajPdbDel (
AjPPdb* ptr
);
Output
| ptr: | (Delete) | Pdb object pointer |
Returns
Description
Destructor for pdb object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for Hetent object.
Synopsis
Prototype
void ajHetentDel (
AjPHetent* ptr
);
Output
| ptr: | (Delete) | Hetent object pointer |
Returns
Description
Destructor for Hetent object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for Het object.
Synopsis
Prototype
void ajHetDel (
AjPHet* ptr
);
Output
| ptr: | (Delete) | Het object pointer |
Returns
Description
Destructor for Het object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for Vdwall object.
Synopsis
Prototype
void ajVdwallDel (
AjPVdwall* ptr
);
Output
| ptr: | (Delete) | Vdwall object pointer |
Returns
Description
Destructor for Vdwall object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for Vdwres object.
Synopsis
Prototype
void ajVdwresDel (
AjPVdwres* ptr
);
Output
| ptr: | (Delete) | Vdwres object pointer |
Returns
Description
Destructor for Vdwres object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for Cmap object.
Synopsis
Prototype
void ajCmapDel (
AjPCmap* ptr
);
Output
| ptr: | (Delete) | Cmap object pointer |
Returns
Description
Destructor for Cmap object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Destructor for Pdbtosp object.
Synopsis
Prototype
void ajPdbtospDel (
AjPPdbtosp* ptr
);
Output
| ptr: | (Delete) | Pdbtosp object pointer |
Returns
Description
Destructor for Pdbtosp object.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.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.
Copies the data from an Atom object to an Atom object; the new object
is created if needed.
IMPORTANT - THIS DOES NOT COPY THE eNum & eType ELEMENTS, WHICH ARE SET
TO ZERO and '.' INSTEAD.
Synopsis
Prototype
AjBool ajAtomCopy (
AjPAtom* to,
const AjPAtom from
);
Input
| from: | (Input) | Atom object pointer |
Output
| to: | (Output) | Atom object pointer |
Returns
Description
Copies the data from an Atom object to an Atom object; the new object
is created if needed.
IMPORTANT - THIS DOES NOT COPY THE eNum & eType ELEMENTS, WHICH ARE SET
TO ZERO and '.' INSTEAD.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Copies the data from a Residue object to an Residue object; the new object
is created if needed.
IMPORTANT - THIS DOES NOT COPY THE eNum & eType ELEMENTS, WHICH ARE SET
TO ZERO and '.' INSTEAD.
Synopsis
Prototype
AjBool ajResidueCopy (
AjPResidue* to,
const AjPResidue from
);
Input
| from: | (Input) | Residue object pointer |
Output
| to: | (Output) | Residue object pointer |
Returns
Description
Copies the data from a Residue object to an Residue object; the new object
is created if needed.
IMPORTANT - THIS DOES NOT COPY THE eNum & eType ELEMENTS, WHICH ARE SET
TO ZERO and '.' INSTEAD.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a list of Atom structures and writes a copy of the list. The
data are copied and the list is created if necessary.
Synopsis
Prototype
AjBool ajAtomListCopy (
AjPList* to,
const AjPList from
);
Input
| from: | (Input) | List of Atom objects to read |
Output
| to: | (Output) | List of Atom objects to write |
Returns
| AjBool: | True if list was copied ok. |
Description
Read a list of Atom structures and writes a copy of the list. The
data are copied and the list is created if necessary.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Read a list of Residue structures and writes a copy of the list. The
data are copied and the list is created if necessary.
Synopsis
Prototype
AjBool ajResidueListCopy (
AjPList* to,
const AjPList from
);
Input
| from: | (Input) | List of Residue objects to read |
Output
| to: | (Output) | List of Residue objects to write |
Returns
| AjBool: | True if list was copied ok. |
Description
Read a list of Residue structures and writes a copy of the list. The
data are copied and the list is created if necessary.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Copies data from one Pdb object to another; the new object is
always created.
Synopsis
Prototype
AjBool ajPdbCopy (
AjPPdb* to,
const AjPPdb from
);
Input
| from: | (Input) | Pdb object pointer |
Output
| to: | (Output) | Pdb object pointer |
Returns
Description
Copies data from one Pdb object to another; the new object is
always created.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
These functions use the contents of an instance but do not make any
changes.
Assigns secondary structure environment of a residue
Synopsis
Prototype
AjBool ajResidueSSEnv (
const AjPResidue res,
char* SEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
Output
| SEnv: | (Output) | Character for the Secondary structure environment |
| logf: | (Output) | Log file |
Returns
Description
Assigns secondary structure environment of a residue
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv1 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv2 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv3 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv4 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv5 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv6 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv7 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv8 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv9 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based only of side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv10 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv11 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv12 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv13 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv14 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv15 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Synopsis
Prototype
ajint ajResidueEnv16 (
const AjPResidue res,
char SEnv,
AjPStr* OEnv,
AjPFile logf
);
Input
| res: | (Input) | Residue object |
| SEnv: | (Input) | Secondary structure environment code |
Output
| OEnv: | (Output) | Character for the overall environment class |
| logf: | (Output) | Log file |
Returns
| ajint: | Number of environments |
Description
Assigns environment based on side chain accessibility and secondary
structure. Assigns environment of "*" as default.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a Pdb object and writes a string with the secondary structure. The
string that is written is the same length as the full-length chain
(regardless of whether coordinates for a residue were available or not)
therefore it can be indexed into using residue numbers. The string is
allocated if necessary. If secondary structure assignment was not available
for a residue a '.' is given in the string.
Synopsis
Prototype
ajint ajPdbGetEStrideType (
const AjPPdb obj,
ajint chn,
AjPStr* EStrideType
);
Input
| obj: | (Input) | Pdb object |
| chn: | (Input) | Chain number |
Output
| EStrideType: | (Output) | String to hold secondary structure |
Returns
| ajint: | Length (residues) of array that was written or -1 (for
an error) |
Description
Reads a Pdb object and writes a string with the secondary structure. The
string that is written is the same length as the full-length chain
(regardless of whether coordinates for a residue were available or not)
therefore it can be indexed into using residue numbers. The string is
allocated if necessary. If secondary structure assignment was not available
for a residue a '.' is given in the string.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
These functions return the contents of an instance but do not make any
changes.
Finds the chain number for a given chain identifier in a pdb structure
Synopsis
Prototype
AjBool ajPdbChnidToNum (
char id,
const AjPPdb pdb,
ajint* chn
);
Input
| id: | (Input) | Chain identifier |
| pdb: | (Input) | Pdb object |
Output
Returns
Description
Finds the chain number for a given chain identifier in a pdb structure
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Performs a binary search for a PDB code over an array of Pdbtosp
structures (which of course must first have been sorted). This is a
case-insensitive search.
Synopsis
Prototype
ajint ajPdbtospArrFindPdbid (
const AjPPdbtosp* arr,
ajint siz,
const AjPStr id
);
Input
| arr: | (Input) | Array of AjOPdbtosp objects |
| siz: | (Input) | Size of array |
| id: | (Input) | Search term |
Returns
| ajint: | Index of first Pdbtosp object found with an PDB code
matching id, or -1 if id is not found. |
Description
Performs a binary search for a PDB code over an array of Pdbtosp
structures (which of course must first have been sorted). This is a
case-insensitive search.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
These functions are used for formatted input and output to file.
Writes a clean coordinate file for a protein.
Synopsis
Prototype
AjBool ajPdbWriteAll (
AjPFile outf,
const AjPPdb obj
);
Input
Output
| outf: | (Output) | Output file stream |
Returns
Description
Writes a clean coordinate file for a protein.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Writes a clean coordinate file for a segment, e.g. a domain. The segment
corresponds to a sequence that is passed to the function.
In the clean coordinate file, the coordinates are presented as belonging
to a single chain. Coordinates for heterogens are NOT written to file.
Synopsis
Prototype
AjBool ajPdbWriteSegment (
AjPFile outf,
const AjPPdb pdb,
const AjPStr segment,
char chnid,
const AjPStr domain,
AjPFile errf
);
Input
| pdb: | (Input) | Pdb object |
| segment: | (Input) | Sequence of segment to print out. |
| chnid: | (Input) | Chain id of segment |
| domain: | (Input) | Domain code for segment |
Output
| outf: | (Output) | Output file stream |
| errf: | (Output) | Output file stream for error messages |
Returns
Description
Writes a clean coordinate file for a segment, e.g. a domain. The segment
corresponds to a sequence that is passed to the function.
In the clean coordinate file, the coordinates are presented as belonging
to a single chain. Coordinates for heterogens are NOT written to file.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Writes the contents of a Het object to file.
Synopsis
Prototype
AjBool ajHetWrite (
AjPFile outf,
const AjPHet obj,
AjBool dogrep
);
Input
| obj: | (Input) | Het object |
| dogrep: | (Input) | Flag (True if we are to write
element of the Het object to file). |
Output
Returns
Description
Writes the contents of a Het object to file.
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Reads a list of Pdbtosp objects, e.g. taken from the swissprot:pdb
equivalence table available at URL:
(1) http://www.expasy.ch/cgi-bin/lists?pdbtosp.txt)
and writes the list out to file in embl-like format (see
documentation for DOMAINATRIX "pdbtosp" application).
Synopsis
Prototype
AjBool ajPdbtospWrite (
AjPFile outf,
const AjPList list
);
Input
| list: | (Input) | List of Pdbtosp objects |
Output
Returns
| AjBool: | True of file was written ok. |
Description
Reads a list of Pdbtosp objects, e.g. taken from the swissprot:pdb
equivalence table available at URL:
(1) http://www.expasy.ch/cgi-bin/lists?pdbtosp.txt)
and writes the list out to file in embl-like format (see
documentation for DOMAINATRIX "pdbtosp" application).
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0
Write a Cmap object to file in CON format (see documentation for
DOMAINATRIX "contacts" application).
Synopsis
Prototype
AjBool ajCmapWrite (
AjPFile outf,
const AjPCmap cmap
);
Input
| cmap: | (Input) | Cmap object pointer. |
Input & Output
| outf: | (Modify) | Output file stream. |
Returns
| AjBool: | True on success (object was written succesfully) |
Description
Write a Cmap object to file in CON format (see documentation for
DOMAINATRIX "contacts" application).
Usage
See source code
Example
In preparation
Errors
See source code
Dependencies
See source code
See Also
See other functions in this section
Availability
In release 3.0.0