embsig.c
Sigdat object constructor. This is normally called by the
embSignatureReadNew function. Fore-knowledge of the number of empirical
residues and gaps is required.
Important: Functions which manipulate the Sigdat object rely on data in
the gap arrays (gsiz and grfq) being filled in order of increasing gap
size.
Synopsis
Prototype
EmbPSigdat embSigdatNew (
ajuint nres,
ajuint ngap
);
Type | Name | Read/Write | Description |
ajuint | nres | Input | Number of emprical residues / environments. |
ajuint | ngap | Input | Number of emprical gaps. |
EmbPSigdat | | RETURN | Pointer to a Sigdat object |
Input
nres: | (Input) | Number of emprical residues / environments. |
ngap: | (Input) | Number of emprical gaps. |
Returns
EmbPSigdat: | Pointer to a Sigdat object |
Description
Sigdat object constructor. This is normally called by the
embSignatureReadNew function. Fore-knowledge of the number of empirical
residues and gaps is required.
Important: Functions which manipulate the Sigdat object rely on data in
the gap arrays (gsiz and grfq) being filled in order of increasing gap
size.
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 6.4.0
Sigpos object constructor. This is normally called by the
embSignatureCompile function. Fore-knowledge of the number of permissible
gaps is required.
Synopsis
Prototype
EmbPSigpos embSigposNew (
ajuint ngap
);
Type | Name | Read/Write | Description |
ajuint | ngap | Input | Number of permissible gaps. |
EmbPSigpos | | RETURN | Pointer to a Sigpos object |
Input
ngap: | (Input) | Number of permissible gaps. |
Returns
EmbPSigpos: | Pointer to a Sigpos object |
Description
Sigpos object constructor. This is normally called by the
embSignatureCompile function. Fore-knowledge of the number of permissible
gaps 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 6.4.0
Destructor for Sigpos object.
Synopsis
Prototype
void embSigposDel (
EmbPSigpos* pthis
);
Type | Name | Read/Write | Description |
EmbPSigpos* | pthis | Output | Sigpos object pointer |
void | | RETURN | |
Output
pthis: | (Output) | Sigpos object pointer |
Returns
Description
Destructor for Sigpos 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 6.4.0
Destructor for Sigdat object.
Synopsis
Prototype
void embSigdatDel (
EmbPSigdat* pthis
);
Type | Name | Read/Write | Description |
EmbPSigdat* | pthis | Output | Sigdat object pointer |
void | | RETURN | |
Output
pthis: | (Output) | Sigdat object pointer |
Returns
Description
Destructor for Sigdat 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 6.4.0
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.
Functions: embHitlistNew embHitNew embSignatureNew
Hitlist object constructor. This is normally called by the embHitlistRead
function. Fore-knowledge of the number of hits is required.
Synopsis
Prototype
EmbPHitlist embHitlistNew (
ajuint n
);
Type | Name | Read/Write | Description |
ajuint | n | Input | Number of hits |
EmbPHitlist | | RETURN | Pointer to a hitlist object |
Input
Returns
EmbPHitlist: | Pointer to a hitlist object |
Description
Hitlist object constructor. This is normally called by the embHitlistRead
function. Fore-knowledge of the number of hits 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 6.4.0
Hit object constructor. This is normally called by the embHitlistNew
function.
Synopsis
Prototype
EmbPHit embHitNew (
void
);
Type | Name | Read/Write | Description |
EmbPHit | | RETURN | Pointer to a hit object |
Returns
EmbPHit: | Pointer to a hit object |
Description
Hit object constructor. This is normally called by the embHitlistNew
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 6.4.0
Signature object constructor. This is normally called by the
embSignatureReadNew function. Fore-knowledge of the number of signature
positions is required.
Synopsis
Prototype
EmbPSignature embSignatureNew (
ajuint n
);
Type | Name | Read/Write | Description |
ajuint | n | Input | Number of signature positions |
EmbPSignature | | RETURN | Pointer to a Signature object |
Input
n: | (Input) | Number of signature positions |
Returns
EmbPSignature: | Pointer to a Signature object |
Description
Signature object constructor. This is normally called by the
embSignatureReadNew function. Fore-knowledge of the number of signature
positions 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 6.4.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.
Functions: embHitlistDel embHitDel embSignatureDel
Destructor for hitlist object.
Synopsis
Prototype
void embHitlistDel (
EmbPHitlist* ptr
);
Type | Name | Read/Write | Description |
EmbPHitlist* | ptr | Output | Hitlist object pointer |
void | | RETURN | |
Output
ptr: | (Output) | Hitlist object pointer |
Returns
Description
Destructor for hitlist 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 6.4.0
Destructor for hit object.
Synopsis
Prototype
void embHitDel (
EmbPHit* ptr
);
Type | Name | Read/Write | Description |
EmbPHit* | ptr | Output | Hit object pointer |
void | | RETURN | |
Output
ptr: | (Output) | Hit object pointer |
Returns
Description
Destructor for hit 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 6.4.0
Destructor for Signature object.
Synopsis
Prototype
void embSignatureDel (
EmbPSignature* ptr
);
Type | Name | Read/Write | Description |
EmbPSignature* | ptr | Output | Signature object pointer |
void | | RETURN | |
Output
ptr: | (Output) | Signature object pointer |
Returns
Description
Destructor for Signature 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 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: embHitMerge
Creates a new Hit object which corresponds to a merging of the two
sequences from the Hit objects hit1 and hit2.
Synopsis
Prototype
EmbPHit embHitMerge (
const EmbPHit hit1,
const EmbPHit hit2
);
Type | Name | Read/Write | Description |
const EmbPHit | hit1 | Input | Hit 1 |
const EmbPHit | hit2 | Input | Hit 2 |
EmbPHit | | RETURN | Pointer to Hit object. |
Input
hit1: | (Input) | Hit 1 |
hit2: | (Input) | Hit 2 |
Returns
EmbPHit: | Pointer to Hit object. |
Description
Creates a new Hit object which corresponds to a merging of the two
sequences from the Hit objects hit1 and hit2.
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 6.4.0
These functions use the contents of an instance but do not make any
changes.
Functions: embHitlistMatchFold embMatchScore embMatchinvScore embMatchLigid embMatchSN
Function to sort Hitlist object by Fold element.
Synopsis
Prototype
ajint embHitlistMatchFold (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Hitlist object 1 |
const void* | hit2 | Input | Pointer to Hitlist object 2 |
ajint | | RETURN | -1 if Fold1 should sort before Fold2, +1 if the Fold2
should sort first. 0 if they are identical. |
Input
hit1: | (Input) | Pointer to Hitlist object 1 |
hit2: | (Input) | Pointer to Hitlist object 2 |
Returns
ajint: | -1 if Fold1 should sort before Fold2, +1 if the Fold2
should sort first. 0 if they are identical. |
Description
Function to sort Hitlist object by Fold element.
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 6.4.0
Function to sort Hit objects by score record. Usually called by
ajListSort.
Synopsis
Prototype
ajint embMatchScore (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Hit object 1 |
const void* | hit2 | Input | Pointer to Hit object 2 |
ajint | | RETURN | 1 if score1<score2, 0 if score1==score2, else -1. |
Input
hit1: | (Input) | Pointer to Hit object 1 |
hit2: | (Input) | Pointer to Hit object 2 |
Returns
Description
Function to sort Hit objects by score record. Usually called by
ajListSort.
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 6.4.0
Function to sort Hit objects by score record. Usually called by
ajListSort. The sorting order is inverted - i.e. it returns -1 if score1
> score2 (as opposed to embMatchScore).
Synopsis
Prototype
ajint embMatchinvScore (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Hit object 1 |
const void* | hit2 | Input | Pointer to Hit object 2 |
ajint | | RETURN | 1 if score1<score2, 0 if score1==score2, else -1. |
Input
hit1: | (Input) | Pointer to Hit object 1 |
hit2: | (Input) | Pointer to Hit object 2 |
Returns
Description
Function to sort Hit objects by score record. Usually called by
ajListSort. The sorting order is inverted - i.e. it returns -1 if score1
> score2 (as opposed to embMatchScore).
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 6.4.0
Function to sort Hit objects by Ligid record (referenced via Sig element).
Synopsis
Prototype
ajint embMatchLigid (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Hit object 1 |
const void* | hit2 | Input | Pointer to Hit object 2 |
ajint | | RETURN | -1 if Ligid1 should sort before Ligid2, +1 if the Ligid2
should sort first. 0 if they are identical. |
Input
hit1: | (Input) | Pointer to Hit object 1 |
hit2: | (Input) | Pointer to Hit object 2 |
Returns
ajint: | -1 if Ligid1 should sort before Ligid2, +1 if the Ligid2
should sort first. 0 if they are identical. |
Description
Function to sort Hit objects by Ligid record (referenced via Sig element).
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 6.4.0
Function to sort Hit objects by sn element within Sig element. Usually
called by ajListSort.
Synopsis
Prototype
ajint embMatchSN (
const void* hit1,
const void* hit2
);
Type | Name | Read/Write | Description |
const void* | hit1 | Input | Pointer to Hit object 1 |
const void* | hit2 | Input | Pointer to Hit object 2 |
ajint | | RETURN | 1 if sn1<sn2, 0 if sn1==sn2, else -1. |
Input
hit1: | (Input) | Pointer to Hit object 1 |
hit2: | (Input) | Pointer to Hit object 2 |
Returns
Description
Function to sort Hit objects by sn element within Sig element. Usually
called by ajListSort.
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 6.4.0
These functions return the contents of an instance but do not make any
changes.
Functions: embHitsOverlap
Checks for overlap between two hits.
Synopsis
Prototype
AjBool embHitsOverlap (
const EmbPHit hit1,
const EmbPHit hit2,
ajuint n
);
Type | Name | Read/Write | Description |
const EmbPHit | hit1 | Input | Pointer to hit object 1 |
const EmbPHit | hit2 | Input | Pointer to hit object 2 |
ajuint | n | Input | Threshold number of residues for overlap |
AjBool | | RETURN | True if the overlap between the sequences is at least as
long as the threshold. False otherwise. |
Input
hit1: | (Input) | Pointer to hit object 1 |
hit2: | (Input) | Pointer to hit object 2 |
n: | (Input) | Threshold number of residues for overlap |
Returns
AjBool: | True if the overlap between the sequences is at least as
long as the threshold. False otherwise. |
Description
Checks for overlap between two hits.
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 6.4.0
These functions are used for formatted input and output to file.
Functions: embHitReadFasta embHitlistRead embHitlistReadFasta embHitlistReadNode embHitlistReadNodeFasta embHitlistWrite embHitlistWriteSubset embHitlistWriteFasta embHitlistWriteSubsetFasta embHitlistWriteHitFasta embSignatureReadNew embSignatureWrite embSignatureHitsRead embSignatureHitsWrite
Read a hit object from a file in extended FASTA format
(see documentation for the DOMAINATRIX "seqsearch" application).
Synopsis
Prototype
EmbPHit embHitReadFasta (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
EmbPHit | | RETURN | Hit object, or NULL if the file was not in extended
FASTA (DHF) format (indicated by a token count of the the lines
beginning with '>'). |
Input & Output
inf: | (Modify) | Input file stream |
Returns
EmbPHit: | Hit object, or NULL if the file was not in extended
FASTA (DHF) format (indicated by a token count of the the lines
beginning with '>'). |
Description
Read a hit object from a file in extended FASTA format
(see documentation for the DOMAINATRIX "seqsearch" 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 6.4.0
Read a hitlist object from a file in embl-like format (see documentation
for the DOMAINATRIX "seqsearch" application).
Synopsis
Prototype
EmbPHitlist embHitlistRead (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
EmbPHitlist | | RETURN | Hitlist object |
Input & Output
inf: | (Modify) | Input file stream |
Returns
EmbPHitlist: | Hitlist object |
Description
Read a hitlist object from a file in embl-like format (see documentation
for the DOMAINATRIX "seqsearch" 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 6.4.0
Read a hitlist object from a file in extended FASTA format
(see documentation for the DOMAINATRIX "seqsearch" application).
Synopsis
Prototype
EmbPHitlist embHitlistReadFasta (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
EmbPHitlist | | RETURN | Hitlist object |
Input & Output
inf: | (Modify) | Input file stream |
Returns
EmbPHitlist: | Hitlist object |
Description
Read a hitlist object from a file in extended FASTA format
(see documentation for the DOMAINATRIX "seqsearch" 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 6.4.0
Reads a scop families file (see documentation for the EMBASSY
DOMAINATRIX package) and writes a list of Hitlist objects containing
all domains matching the scop classification provided.
Synopsis
Prototype
AjPList embHitlistReadNode (
AjPFile inf,
const AjPStr fam,
const AjPStr sfam,
const AjPStr fold,
const AjPStr klass
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | File containing multiple Hitlist objects |
const AjPStr | fam | Input | Family. |
const AjPStr | sfam | Input | Superfamily. |
const AjPStr | fold | Input | Fold. |
const AjPStr | klass | Input | Class. |
AjPList | | RETURN | List of Hitlist objects or NULL. |
Input
fam: | (Input) | Family. |
sfam: | (Input) | Superfamily. |
fold: | (Input) | Fold. |
klass: | (Input) | Class. |
Input & Output
inf: | (Modify) | File containing multiple Hitlist objects |
Returns
AjPList: | List of Hitlist objects or NULL. |
Description
Reads a scop families file (see documentation for the EMBASSY
DOMAINATRIX package) and writes a list of Hitlist objects containing
all domains matching the scop classification provided.
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 6.4.0
Reads a domain families file (see documentation for the EMBASSY
DOMAINATRIX package) and writes a list of Hitlist objects containing
all domains matching the domain classification provided.
Synopsis
Prototype
AjPList embHitlistReadNodeFasta (
AjPFile inf,
const AjPStr fam,
const AjPStr sfam,
const AjPStr fold,
const AjPStr klass
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | File containing multiple Hitlist objects |
const AjPStr | fam | Input | Family. |
const AjPStr | sfam | Input | Superfamily. |
const AjPStr | fold | Input | Fold. |
const AjPStr | klass | Input | Class. |
AjPList | | RETURN | List of Hitlist objects or NULL. |
Input
fam: | (Input) | Family. |
sfam: | (Input) | Superfamily. |
fold: | (Input) | Fold. |
klass: | (Input) | Class. |
Input & Output
inf: | (Modify) | File containing multiple Hitlist objects |
Returns
AjPList: | List of Hitlist objects or NULL. |
Description
Reads a domain families file (see documentation for the EMBASSY
DOMAINATRIX package) and writes a list of Hitlist objects containing
all domains matching the domain classification provided.
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 6.4.0
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Text for Class, Fold, Superfamily and Family is only written if the text
is available.
Synopsis
Prototype
AjBool embHitlistWrite (
AjPFile outf,
const EmbPHitlist obj
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const EmbPHitlist | obj | Input | Hitlist object |
AjBool | | RETURN | True on success |
Input
obj: | (Input) | Hitlist object |
Input & Output
outf: | (Modify) | Output file stream |
Returns
Description
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Text for Class, Fold, Superfamily and Family is only written if the text
is available.
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 6.4.0
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Only those hits are written for which a 1 is given in the corresponding
position in array of integers.
Text for Class, Architecture, Topology, Fold, Superfamily and Family is
only written if the text is available.
Synopsis
Prototype
AjBool embHitlistWriteSubset (
AjPFile outf,
const EmbPHitlist obj,
const AjPUint ok
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const EmbPHitlist | obj | Input | Hitlist object |
const AjPUint | ok | Input | Whether hits are to be printed or not |
AjBool | | RETURN | True on success |
Input
obj: | (Input) | Hitlist object |
ok: | (Input) | Whether hits are to be printed or not |
Input & Output
outf: | (Modify) | Output file stream |
Returns
Description
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Only those hits are written for which a 1 is given in the corresponding
position in array of integers.
Text for Class, Architecture, Topology, Fold, Superfamily and Family is
only written if the text is available.
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 6.4.0
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Text for Class, Fold, Superfamily and Family is only written if the text
is available.
Synopsis
Prototype
AjBool embHitlistWriteFasta (
AjPFile outf,
const EmbPHitlist obj
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const EmbPHitlist | obj | Input | Hitlist object |
AjBool | | RETURN | True on success |
Input
obj: | (Input) | Hitlist object |
Input & Output
outf: | (Modify) | Output file stream |
Returns
Description
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Text for Class, Fold, Superfamily and Family is only written if the text
is available.
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 6.4.0
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Only those hits are written for which a 1 is given in the corresponding
position in array of integers.
Text for Class, Architecture, Topology, Fold, Superfamily and Family is
only written if the text is available.
Synopsis
Prototype
AjBool embHitlistWriteSubsetFasta (
AjPFile outf,
const EmbPHitlist obj,
const AjPUint ok
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const EmbPHitlist | obj | Input | Hitlist object |
const AjPUint | ok | Input | Whether hits are to be printed or not |
AjBool | | RETURN | True on success |
Input
obj: | (Input) | Hitlist object |
ok: | (Input) | Whether hits are to be printed or not |
Input & Output
outf: | (Modify) | Output file stream |
Returns
Description
Write contents of a Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Only those hits are written for which a 1 is given in the corresponding
position in array of integers.
Text for Class, Architecture, Topology, Fold, Superfamily and Family is
only written if the text is available.
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 6.4.0
Write contents of one Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Text for Class, Fold, Superfamily and Family is only written if the text
is available.
Synopsis
Prototype
AjBool embHitlistWriteHitFasta (
AjPFile outf,
ajuint n,
const EmbPHitlist obj
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
ajuint | n | Input | Number of hit |
const EmbPHitlist | obj | Input | Hitlist object |
AjBool | | RETURN | True on success |
Input
n: | (Input) | Number of hit |
obj: | (Input) | Hitlist object |
Input & Output
outf: | (Modify) | Output file stream |
Returns
Description
Write contents of one Hitlist object to an output file in embl-like format
(see documentation for the DOMAINATRIX "seqsearch" application).
Text for Class, Fold, Superfamily and Family is only written if the text
is available.
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 6.4.0
Read a Signature object from a file in embl-like format (see documentation
for the DOMAINATRIX "sigscan" application).
Synopsis
Prototype
EmbPSignature embSignatureReadNew (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
EmbPSignature | | RETURN | Signature object |
Input & Output
inf: | (Modify) | Input file stream |
Returns
EmbPSignature: | Signature object |
Description
Read a Signature object from a file in embl-like format (see documentation
for the DOMAINATRIX "sigscan" 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 6.4.0
Write contents of a Signature object to an output file in embl-like
format (see documentation for the DOMAINATRIX "sigscan" application).
Synopsis
Prototype
AjBool embSignatureWrite (
AjPFile outf,
const EmbPSignature obj
);
Type | Name | Read/Write | Description |
AjPFile | outf | Output | Output file stream |
const EmbPSignature | obj | Input | Signature object |
AjBool | | RETURN | ajTrue on success |
Input
obj: | (Input) | Signature object |
Output
outf: | (Output) | Output file stream |
Returns
Description
Write contents of a Signature object to an output file in embl-like
format (see documentation for the DOMAINATRIX "sigscan" 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 6.4.0
Reads a signature hits file, allocates a Hitlist object and writes it
with hits from a signature hits file (see documentation for the
DOMAINATRIX "sigscan" application). In other words, this function reads
the results of a scan of a signature against a protein sequence database.
Synopsis
Prototype
EmbPHitlist embSignatureHitsRead (
AjPFile inf
);
Type | Name | Read/Write | Description |
AjPFile | inf | Modify | Input file stream |
EmbPHitlist | | RETURN | Hitlist object that was allocated. |
Input & Output
inf: | (Modify) | Input file stream |
Returns
EmbPHitlist: | Hitlist object that was allocated. |
Description
Reads a signature hits file, allocates a Hitlist object and writes it
with hits from a signature hits file (see documentation for the
DOMAINATRIX "sigscan" application). In other words, this function reads
the results of a scan of a signature against a protein sequence database.
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 6.4.0
Writes a list of AjOHit objects to an output file (see documentation
for the DOMAINATRIX "sigscan" application). This is intended for
displaying the results from scans of a signature against a protein sequence
database. The Hitlist must have first been classified by a call to
embHitlistClassify. Hits up to the first user-specified number of false
hits are written.
Synopsis
Prototype
AjBool embSignatureHitsWrite (
AjPFile outf,
const EmbPSignature sig,
const EmbPHitlist hitlist,
ajuint n
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file stream |
const EmbPSignature | sig | Input | Signature object |
const EmbPHitlist | hitlist | Input | Hitlist objects with hits from scan |
ajuint | n | Input | Max. no. false hits to output |
AjBool | | RETURN | True if file was written |
Input
sig: | (Input) | Signature object |
hitlist: | (Input) | Hitlist objects with hits from scan |
n: | (Input) | Max. no. false hits to output |
Input & Output
outf: | (Modify) | Output file stream |
Returns
AjBool: | True if file was written |
Description
Writes a list of AjOHit objects to an output file (see documentation
for the DOMAINATRIX "sigscan" application). This is intended for
displaying the results from scans of a signature against a protein sequence
database. The Hitlist must have first been classified by a call to
embHitlistClassify. Hits up to the first user-specified number of false
hits are written.
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 6.4.0
These functions may have diverse functions that do not fit into the other
categories.
Functions: embHitlistClassify embSignatureCompile embSignatureAlignSeq embSignatureAlignSeqall embSigExit
Classifies a list of signature-sequence hits (held in a Hitlist object)
according to list of target sequences (a list of Hitlist objects).
The following classification of hits is taken from the documentation
for the DOMAINATRIX "sigscan" application :
Definition of classes of hit
The primary classification is an objective definition of the hit and has
one of the following values:
SEED - the sequence was included in the original alignment from which the
signature was generated.
HIT - A protein which was detected by psiblast (see psiblasts.c) to
be a homologue to at least one of the proteins in the family from which
the signature was derived. Such proteins are identified by the 'HIT'
record in the scop families file.
OTHER - A true member of the family but not a homologue as detected by
psi-blast. Such proteins may have been found from the literature and
manually added to the scop families file or may have been detected by the
EMBOSS program swissparse (see swissparse.c). They are identified in the
scop families file by the 'OTHER' record.
CROSS - A protein which is homologous to a protein of the same fold,
but differnt family, of the proteins from which the signature was
derived.
FALSE - A homologue to a protein with a different fold to the family
of the signature.
UNKNOWN - The protein is not known to be CROSS, FALSE or a true hit (a
SEED, HIT or OTHER).
The secondary classification is provided for convenience and a value as
follows:
Hits of SEED, HIT and OTHER classification are all listed as TRUE.
Hits of CROSS, FALSE or UNKNOWN objective
classification are listed as CROSS,
FALSE or UNKNOWN respectively.
The Group element is copied from the target sequence for 'TRUE' objective
hits, whereas 'NOT_APPLICABLE' is given for other types of hit.
The subjective column allows for hand-annotation of the hits files so that
proteins of UNKNOWN objective classification can re-classified by a human
expert as TRUE, FALSE, CROSS or otherwise
left as UNKNOWN for the purpose of
generating signature performance plots with the EMBOSS application sigplot.
Writes the Group, Typeobj (primary classification) & Typesbj (secondary
classification) elements depending on how the SCOP classification
records of the Hit object and target sequence in question compare.
Synopsis
Prototype
AjBool embHitlistClassify (
EmbPHitlist hitlist,
const AjPList targets,
ajuint thresh
);
Type | Name | Read/Write | Description |
EmbPHitlist | hitlist | Modify | Hitlist object with hits |
const AjPList | targets | Input | List of AjOHitlist objects with targets |
ajuint | thresh | Input | Minimum length (residues) of overlap
required for two hits with the same code to be counted as the same hit. |
AjBool | | RETURN | True on success, else False |
Input
targets: | (Input) | List of AjOHitlist objects with targets |
thresh: | (Input) | Minimum length (residues) of overlap
required for two hits with the same code to be counted as the same hit. |
Input & Output
hitlist: | (Modify) | Hitlist object with hits |
Returns
AjBool: | True on success, else False |
Description
Classifies a list of signature-sequence hits (held in a Hitlist object)
according to list of target sequences (a list of Hitlist objects).
The following classification of hits is taken from the documentation
for the DOMAINATRIX "sigscan" application :
Definition of classes of hit
The primary classification is an objective definition of the hit and has
one of the following values:
SEED - the sequence was included in the original alignment from which the
signature was generated.
HIT - A protein which was detected by psiblast (see psiblasts.c) to
be a homologue to at least one of the proteins in the family from which
the signature was derived. Such proteins are identified by the 'HIT'
record in the scop families file.
OTHER - A true member of the family but not a homologue as detected by
psi-blast. Such proteins may have been found from the literature and
manually added to the scop families file or may have been detected by the
EMBOSS program swissparse (see swissparse.c). They are identified in the
scop families file by the 'OTHER' record.
CROSS - A protein which is homologous to a protein of the same fold,
but differnt family, of the proteins from which the signature was
derived.
FALSE - A homologue to a protein with a different fold to the family
of the signature.
UNKNOWN - The protein is not known to be CROSS, FALSE or a true hit (a
SEED, HIT or OTHER).
The secondary classification is provided for convenience and a value as
follows:
Hits of SEED, HIT and OTHER classification are all listed as TRUE.
Hits of CROSS, FALSE or UNKNOWN objective
classification are listed as CROSS,
FALSE or UNKNOWN respectively.
The Group element is copied from the target sequence for 'TRUE' objective
hits, whereas 'NOT_APPLICABLE' is given for other types of hit.
The subjective column allows for hand-annotation of the hits files so that
proteins of UNKNOWN objective classification can re-classified by a human
expert as TRUE, FALSE, CROSS or otherwise
left as UNKNOWN for the purpose of
generating signature performance plots with the EMBOSS application sigplot.
Writes the Group, Typeobj (primary classification) & Typesbj (secondary
classification) elements depending on how the SCOP classification
records of the Hit object and target sequence in question compare.
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 6.4.0
Function to compile a signature: calls embSigposNew to allocate an array
of AjOSigpos objects within an AjOSignature object, and then writes this
array. The signature must first have been allocated by using the
embSignatureNew function.
Synopsis
Prototype
AjBool embSignatureCompile (
EmbPSignature* S,
float gapo,
float gape,
const AjPMatrixf matrix
);
Type | Name | Read/Write | Description |
EmbPSignature* | S | Output | Signature object |
float | gapo | Input | Gap opening penalty |
float | gape | Input | Gap extension penalty |
const AjPMatrixf | matrix | Input | Residue substitution matrix |
AjBool | | RETURN | True if array was written succesfully. |
Input
gapo: | (Input) | Gap opening penalty |
gape: | (Input) | Gap extension penalty |
matrix: | (Input) | Residue substitution matrix |
Output
S: | (Output) | Signature object |
Returns
AjBool: | True if array was written succesfully. |
Description
Function to compile a signature: calls embSigposNew to allocate an array
of AjOSigpos objects within an AjOSignature object, and then writes this
array. The signature must first have been allocated by using the
embSignatureNew 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 6.4.0
Performs an alignment of a signature to a protein sequence. The signature
must have first been compiled by calling the embSignatureCompile
function.
A Hit object is written.
Synopsis
Prototype
AjBool embSignatureAlignSeq (
const EmbPSignature S,
const AjPSeq seq,
EmbPHit* hit,
ajuint nterm
);
Type | Name | Read/Write | Description |
const EmbPSignature | S | Input | Signature object |
const AjPSeq | seq | Input | Protein sequence |
EmbPHit* | hit | Output | Hit object pointer |
ajuint | nterm | Input | N-terminal matching option |
AjBool | | RETURN | True if a signature-sequence alignment was successful and
the Hit object was written. Returns False if there was an internal error,
bad arg's etc. or in cases where a sequence is rejected because of
N-terminal matching options). |
Input
S: | (Input) | Signature object |
seq: | (Input) | Protein sequence |
nterm: | (Input) | N-terminal matching option |
Output
hit: | (Output) | Hit object pointer |
Returns
AjBool: | True if a signature-sequence alignment was successful and
the Hit object was written. Returns False if there was an internal error,
bad arg's etc. or in cases where a sequence is rejected because of
N-terminal matching options). |
Description
Performs an alignment of a signature to a protein sequence. The signature
must have first been compiled by calling the embSignatureCompile
function.
A Hit object is written.
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 6.4.0
Aligns a signature to a set of sequences and writes a Hitlist object with
the results. The top-scoring <n> hits are written. The signature must have
first been compiled by calling the embSignatureCompile function.
Memory for an Hitlist object must be allocated beforehand by using the
Hitlist constructor with an arg. of 0.
Synopsis
Prototype
AjBool embSignatureAlignSeqall (
const EmbPSignature sig,
AjPSeqall db,
ajuint n,
EmbPHitlist* hitlist,
ajuint nterm
);
Type | Name | Read/Write | Description |
const EmbPSignature | sig | Input | Signature object |
AjPSeqall | db | Modify | Protein sequences |
ajuint | n | Input | Max. number of top-scoring hits to store |
EmbPHitlist* | hitlist | Output | Hitlist object pointer |
ajuint | nterm | Input | N-terminal matching option |
AjBool | | RETURN | True if Hitlist object was written succesfully. |
Input
sig: | (Input) | Signature object |
n: | (Input) | Max. number of top-scoring hits to store |
nterm: | (Input) | N-terminal matching option |
Output
hitlist: | (Output) | Hitlist object pointer |
Input & Output
db: | (Modify) | Protein sequences |
Returns
AjBool: | True if Hitlist object was written succesfully. |
Description
Aligns a signature to a set of sequences and writes a Hitlist object with
the results. The top-scoring <n> hits are written. The signature must have
first been compiled by calling the embSignatureCompile function.
Memory for an Hitlist object must be allocated beforehand by using the
Hitlist constructor with an arg. of 0.
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 6.4.0
Cleanup of signature function internals.
Synopsis
Prototype
void embSigExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleanup of signature function internals.
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 6.4.0