ajpat.c
Constructor for a sequence pattern object. Sets all but compiled object.
That is set with search function. Adds the pattern to a pattern list.
Synopsis
Prototype
AjPPatternSeq ajPatternSeqNewList (
AjPPatlistSeq plist,
const AjPStr name,
const AjPStr pat,
ajuint mismatch
);
Type | Name | Read/Write | Description |
AjPPatlistSeq | plist | Modify | Pattern list |
const AjPStr | name | Input | Name of the pattern |
const AjPStr | pat | Input | Pattern as string |
ajuint | mismatch | Input | mismatch value |
AjPPatternSeq | | RETURN | New pattern object |
Input
name: | (Input) | Name of the pattern |
pat: | (Input) | Pattern as string |
mismatch: | (Input) | mismatch value |
Input & Output
plist: | (Modify) | Pattern list |
Returns
AjPPatternSeq: | New pattern object |
Description
Constructor for a sequence pattern object. Sets all but compiled object.
That is set with search function. Adds the pattern to a pattern list.
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a pattern object. Sets all but compiled object. That is set
with search function. Adds the pattern to a pattern list.
Synopsis
Prototype
AjPPatternRegex ajPatternRegexNewList (
AjPPatlistRegex plist,
const AjPStr name,
const AjPStr pat
);
Type | Name | Read/Write | Description |
AjPPatlistRegex | plist | Modify | Regular expression pattern list |
const AjPStr | name | Input | Name of the pattern |
const AjPStr | pat | Input | Pattern as string |
AjPPatternRegex | | RETURN | New regular expression pattern object |
Input
name: | (Input) | Name of the pattern |
pat: | (Input) | Pattern as string |
Input & Output
plist: | (Modify) | Regular expression pattern list |
Returns
AjPPatternRegex: | New regular expression pattern object |
Description
Constructor for a pattern object. Sets all but compiled object. That is set
with search function. Adds the pattern to a pattern list.
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for a regular expression pattern object
Synopsis
Prototype
void ajPatternRegexDel (
AjPPatternRegex* pthys
);
Type | Name | Read/Write | Description |
AjPPatternRegex* | pthys | Delete | Pattern object reference |
void | | RETURN | |
Output
pthys: | (Delete) | Pattern object reference |
Returns
Description
Destructor for a regular expression pattern object
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for a pattern object
Synopsis
Prototype
void ajPatternSeqDel (
AjPPatternSeq* pthys
);
Type | Name | Read/Write | Description |
AjPPatternSeq* | pthys | Delete | Pattern object reference |
void | | RETURN | |
Output
pthys: | (Delete) | Pattern object reference |
Returns
Description
Destructor for a pattern object
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the name of the pattern.
Synopsis
Prototype
const AjPStr ajPatternSeqGetName (
const AjPPatternSeq thys
);
Type | Name | Read/Write | Description |
const AjPPatternSeq | thys | Input | Pattern |
const AjPStr | | RETURN | Name of the pattern. Real pointer in structure. |
Input
Returns
const AjPStr: | Name of the pattern. Real pointer in structure. |
Description
Returns the name of the pattern.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the name of the pattern.
Synopsis
Prototype
const AjPStr ajPatternRegexGetName (
const AjPPatternRegex thys
);
Type | Name | Read/Write | Description |
const AjPPatternRegex | thys | Input | Pattern |
const AjPStr | | RETURN | Name of the pattern. Real pointer in structure. |
Input
Returns
const AjPStr: | Name of the pattern. Real pointer in structure. |
Description
Returns the name of the pattern.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns pattern in string format.
Synopsis
Prototype
const AjPStr ajPatternSeqGetPattern (
const AjPPatternSeq thys
);
Type | Name | Read/Write | Description |
const AjPPatternSeq | thys | Input | Pattern |
const AjPStr | | RETURN | Pattern. Real pointer in structure. |
Input
Returns
const AjPStr: | Pattern. Real pointer in structure. |
Description
Returns pattern in string format.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns pattern in string format.
Synopsis
Prototype
const AjPStr ajPatternRegexGetPattern (
const AjPPatternRegex thys
);
Type | Name | Read/Write | Description |
const AjPPatternRegex | thys | Input | Pattern |
const AjPStr | | RETURN | Pattern. Real pointer in structure. |
Input
Returns
const AjPStr: | Pattern. Real pointer in structure. |
Description
Returns pattern in string format.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns void pointer to compiled pattern.
Synopsis
Prototype
AjPPatComp ajPatternSeqGetCompiled (
const AjPPatternSeq thys
);
Type | Name | Read/Write | Description |
const AjPPatternSeq | thys | Input | Pattern |
AjPPatComp | | RETURN | Reference for compiled pattern |
Input
Returns
AjPPatComp: | Reference for compiled pattern |
Description
Returns void pointer to compiled pattern.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns void pointer to compiled pattern. Compiles expression if not
yet done.
Synopsis
Prototype
AjPRegexp ajPatternRegexGetCompiled (
const AjPPatternRegex thys
);
Type | Name | Read/Write | Description |
const AjPPatternRegex | thys | Input | Pattern |
AjPRegexp | | RETURN | Reference for compiled pattern |
Input
Returns
AjPRegexp: | Reference for compiled pattern |
Description
Returns void pointer to compiled pattern. Compiles expression if not
yet done.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns true if the pattern is for a protein sequence.
Synopsis
Prototype
AjBool ajPatternSeqGetProtein (
const AjPPatternSeq thys
);
Type | Name | Read/Write | Description |
const AjPPatternSeq | thys | Input | Pattern |
AjBool | | RETURN | ajTrue for a protein pattern |
Input
Returns
AjBool: | ajTrue for a protein pattern |
Description
Returns true if the pattern is for a protein sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the type of the pattern.
Synopsis
Prototype
ajuint ajPatternRegexGetType (
const AjPPatternRegex thys
);
Type | Name | Read/Write | Description |
const AjPPatternRegex | thys | Input | Pattern |
ajuint | | RETURN | Type of the pattern. |
Input
Returns
ajuint: | Type of the pattern. |
Description
Returns the type of the pattern.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the mismatch of the pattern.
Synopsis
Prototype
ajuint ajPatternSeqGetMismatch (
const AjPPatternSeq thys
);
Type | Name | Read/Write | Description |
const AjPPatternSeq | thys | Input | Pattern |
ajuint | | RETURN | Mismatch value of the pattern. |
Input
Returns
ajuint: | Mismatch value of the pattern. |
Description
Returns the mismatch of the pattern.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the compiled pattern
Synopsis
Prototype
void ajPatternSeqSetCompiled (
AjPPatternSeq thys,
void* pat
);
Type | Name | Read/Write | Description |
AjPPatternSeq | thys | Modify | Pattern |
void* | pat | Modify | Compiled pattern |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern |
pat: | (Modify) | Compiled pattern |
Returns
Description
Sets the compiled pattern
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the compiled pattern
Synopsis
Prototype
void ajPatternRegexSetCompiled (
AjPPatternRegex thys,
AjPRegexp pat
);
Type | Name | Read/Write | Description |
AjPPatternRegex | thys | Modify | Pattern |
AjPRegexp | pat | Modify | Compiled pattern |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern |
pat: | (Modify) | Compiled pattern |
Returns
Description
Sets the compiled pattern
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a pattern list object
Synopsis
Prototype
void ajPatternSeqDebug (
const AjPPatternSeq pat
);
Type | Name | Read/Write | Description |
const AjPPatternSeq | pat | Input | Pattern object |
void | | RETURN | |
Input
pat: | (Input) | Pattern object |
Returns
Description
Constructor for a pattern list object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a pattern list object
Synopsis
Prototype
void ajPatternRegexDebug (
const AjPPatternRegex pat
);
Type | Name | Read/Write | Description |
const AjPPatternRegex | pat | Input | Pattern object |
void | | RETURN | |
Input
pat: | (Input) | Pattern object |
Returns
Description
Constructor for a pattern list object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a pattern list object
Synopsis
Prototype
AjPPatlistRegex ajPatlistRegexNew (
void
);
Type | Name | Read/Write | Description |
AjPPatlistRegex | | RETURN | New pattern list object |
Returns
AjPPatlistRegex: | New pattern list object |
Description
Constructor for a pattern list object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a pattern list object with a specified type
Synopsis
Prototype
AjPPatlistRegex ajPatlistRegexNewType (
ajuint type
);
Type | Name | Read/Write | Description |
ajuint | type | Input | type value |
AjPPatlistRegex | | RETURN | New pattern list object |
Input
Returns
AjPPatlistRegex: | New pattern list object |
Description
Constructor for a pattern list object with a specified type
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a pattern list object. Defaults to protein.
Synopsis
Prototype
AjPPatlistSeq ajPatlistSeqNew (
void
);
Type | Name | Read/Write | Description |
AjPPatlistSeq | | RETURN | New pattern list object |
Returns
AjPPatlistSeq: | New pattern list object |
Description
Constructor for a pattern list object. Defaults to protein.
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for a pattern list object
Synopsis
Prototype
AjPPatlistSeq ajPatlistSeqNewType (
AjBool type
);
Type | Name | Read/Write | Description |
AjBool | type | Input | True for a protein pattern |
AjPPatlistSeq | | RETURN | New pattern list object |
Input
type: | (Input) | True for a protein pattern |
Returns
AjPPatlistSeq: | New pattern list object |
Description
Constructor for a pattern list object
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for a pattern list object
Synopsis
Prototype
void ajPatlistRegexDel (
AjPPatlistRegex* pthys
);
Type | Name | Read/Write | Description |
AjPPatlistRegex* | pthys | Delete | Pattern list object reference |
void | | RETURN | |
Output
pthys: | (Delete) | Pattern list object reference |
Returns
Description
Destructor for a pattern list object
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for a pattern list object
Synopsis
Prototype
void ajPatlistSeqDel (
AjPPatlistSeq* pthys
);
Type | Name | Read/Write | Description |
AjPPatlistSeq* | pthys | Delete | Pattern list object reference |
void | | RETURN | |
Output
pthys: | (Delete) | Pattern list object reference |
Returns
Description
Destructor for a pattern list object
See Also
See other functions in this section
Availability
In release 6.4.0
Parses a file into pattern list object. If there is not mismatch value on
pattern in file, it is assumed to be 0.
Synopsis
Prototype
AjPPatlistSeq ajPatlistSeqRead (
const AjPStr patspec,
const AjPStr patname,
const AjPStr fmt,
AjBool protein,
ajuint mismatches
);
Type | Name | Read/Write | Description |
const AjPStr | patspec | Input | Pattern specification |
const AjPStr | patname | Input | Default pattern name prefix |
const AjPStr | fmt | Input | Pattern file format |
AjBool | protein | Input | ajTrue for protein patterns |
ajuint | mismatches | Input | default number of mismatches |
AjPPatlistSeq | | RETURN | Pattern list |
Input
patspec: | (Input) | Pattern specification |
patname: | (Input) | Default pattern name prefix |
fmt: | (Input) | Pattern file format |
protein: | (Input) | ajTrue for protein patterns |
mismatches: | (Input) | default number of mismatches |
Returns
AjPPatlistSeq: | Pattern list |
Description
Parses a file into pattern list object. If there is not mismatch value on
pattern in file, it is assumed to be 0.
See Also
See other functions in this section
Availability
In release 6.4.0
Parses a file of regular expressions into a pattern list object.
Synopsis
Prototype
AjPPatlistRegex ajPatlistRegexRead (
const AjPStr patspec,
const AjPStr patname,
const AjPStr fmt,
ajuint type,
AjBool upper,
AjBool lower
);
Type | Name | Read/Write | Description |
const AjPStr | patspec | Input | Name of the file with patterns |
const AjPStr | patname | Input | Default pattern name prefix |
const AjPStr | fmt | Input | Pattern file format |
ajuint | type | Input | Type of the patterns |
AjBool | upper | Input | Convert to upper case |
AjBool | lower | Input | Convert to lower case |
AjPPatlistRegex | | RETURN | Pattern list |
Input
patspec: | (Input) | Name of the file with patterns |
patname: | (Input) | Default pattern name prefix |
fmt: | (Input) | Pattern file format |
type: | (Input) | Type of the patterns |
upper: | (Input) | Convert to upper case |
lower: | (Input) | Convert to lower case |
Returns
AjPPatlistRegex: | Pattern list |
Description
Parses a file of regular expressions into a pattern list object.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets number of patterns from list.
Synopsis
Prototype
ajuint ajPatlistSeqGetSize (
const AjPPatlistSeq thys
);
Type | Name | Read/Write | Description |
const AjPPatlistSeq | thys | Input | Pattern list object |
ajuint | | RETURN | Number of patterns |
Input
thys: | (Input) | Pattern list object |
Returns
ajuint: | Number of patterns |
Description
Gets number of patterns from list.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets number of patterns from list.
Synopsis
Prototype
ajuint ajPatlistRegexGetSize (
const AjPPatlistRegex thys
);
Type | Name | Read/Write | Description |
const AjPPatlistRegex | thys | Input | Pattern list object |
ajuint | | RETURN | Number of patterns |
Input
thys: | (Input) | Pattern list object |
Returns
ajuint: | Number of patterns |
Description
Gets number of patterns from list.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets next available pattern from list.
Synopsis
Prototype
AjBool ajPatlistSeqGetNext (
AjPPatlistSeq thys,
AjPPatternSeq* pattern
);
Type | Name | Read/Write | Description |
AjPPatlistSeq | thys | Modify | Pattern list object |
AjPPatternSeq* | pattern | Output | Pattern object reference |
AjBool | | RETURN | ajTrue if there was next object |
Output
pattern: | (Output) | Pattern object reference |
Input & Output
thys: | (Modify) | Pattern list object |
Returns
AjBool: | ajTrue if there was next object |
Description
Gets next available pattern from list.
See Also
See other functions in this section
Availability
In release 6.4.0
Gets next available pattern from list.
Synopsis
Prototype
AjBool ajPatlistRegexGetNext (
AjPPatlistRegex thys,
AjPPatternRegex* pattern
);
Type | Name | Read/Write | Description |
AjPPatlistRegex | thys | Modify | Pattern list object |
AjPPatternRegex* | pattern | Output | Pattern object reference |
AjBool | | RETURN | ajTrue if there was next object |
Output
pattern: | (Output) | Pattern object reference |
Input & Output
thys: | (Modify) | Pattern list object |
Returns
AjBool: | ajTrue if there was next object |
Description
Gets next available pattern from list.
See Also
See other functions in this section
Availability
In release 6.4.0
Resets the pattern list iteration.
Synopsis
Prototype
void ajPatlistRegexRewind (
AjPPatlistRegex thys
);
Type | Name | Read/Write | Description |
AjPPatlistRegex | thys | Modify | Pattern list object reference |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern list object reference |
Returns
Description
Resets the pattern list iteration.
See Also
See other functions in this section
Availability
In release 6.4.0
Resets the pattern list iteration.
Synopsis
Prototype
void ajPatlistSeqRewind (
AjPPatlistSeq thys
);
Type | Name | Read/Write | Description |
AjPPatlistSeq | thys | Modify | Pattern list object reference |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern list object reference |
Returns
Description
Resets the pattern list iteration.
See Also
See other functions in this section
Availability
In release 6.4.0
Removes current pattern from pattern list. If looping has not started or
pattern list has just been rewound then nothing is removed.
Synopsis
Prototype
void ajPatlistRegexRemoveCurrent (
AjPPatlistRegex thys
);
Type | Name | Read/Write | Description |
AjPPatlistRegex | thys | Modify | Pattern list from which to remove |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern list from which to remove |
Returns
Description
Removes current pattern from pattern list. If looping has not started or
pattern list has just been rewound then nothing is removed.
See Also
See other functions in this section
Availability
In release 6.4.0
Removes current pattern from pattern list. If looping has not started or
pattern list has just been rewound then nothing is removed.
Synopsis
Prototype
void ajPatlistSeqRemoveCurrent (
AjPPatlistSeq thys
);
Type | Name | Read/Write | Description |
AjPPatlistSeq | thys | Modify | Pattern list from which to remove |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern list from which to remove |
Returns
Description
Removes current pattern from pattern list. If looping has not started or
pattern list has just been rewound then nothing is removed.
See Also
See other functions in this section
Availability
In release 6.4.0
Adds pattern into patternlist
Synopsis
Prototype
void ajPatlistAddSeq (
AjPPatlistSeq thys,
AjPPatternSeq pat
);
Type | Name | Read/Write | Description |
AjPPatlistSeq | thys | Modify | Pattern list object reference |
AjPPatternSeq | pat | Modify | Pattern to be added |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern list object reference |
pat: | (Modify) | Pattern to be added |
Returns
Description
Adds pattern into patternlist
See Also
See other functions in this section
Availability
In release 6.4.0
Adds pattern into patternlist
Synopsis
Prototype
void ajPatlistAddRegex (
AjPPatlistRegex thys,
AjPPatternRegex pat
);
Type | Name | Read/Write | Description |
AjPPatlistRegex | thys | Modify | Pattern list object reference |
AjPPatternRegex | pat | Modify | Pattern to be added |
void | | RETURN | |
Input & Output
thys: | (Modify) | Pattern list object reference |
pat: | (Modify) | Pattern to be added |
Returns
Description
Adds pattern into patternlist
See Also
See other functions in this section
Availability
In release 6.4.0
Create prosite pattern structure.
Synopsis
Prototype
AjPPatComp ajPatCompNew (
void
);
Type | Name | Read/Write | Description |
AjPPatComp | | RETURN | pattern structure |
Returns
AjPPatComp: | pattern structure |
Description
Create prosite pattern structure.
See Also
See other functions in this section
Availability
In release 6.4.0
Delete prosite pattern structure.
Synopsis
Prototype
void ajPatCompDel (
AjPPatComp* pthys
);
Type | Name | Read/Write | Description |
AjPPatComp* | pthys | Delete | Prosite pattern structure |
void | | RETURN | |
Output
pthys: | (Delete) | Prosite pattern structure |
Returns
Description
Delete prosite pattern structure.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns type associated with a named type of regular expression
Synopsis
Prototype
ajuint ajPatternRegexType (
const AjPStr type
);
Type | Name | Read/Write | Description |
const AjPStr | type | Input | Regular expression type |
ajuint | | RETURN | Type number, defaults to 0 (string) |
Input
type: | (Input) | Regular expression type |
Returns
ajuint: | Type number, defaults to 0 (string) |
Description
Returns type associated with a named type of regular expression
See Also
See other functions in this section
Availability
In release 6.4.0
Documents patterns to a formatted string
Synopsis
Prototype
ajuint ajPatlistRegexDoc (
AjPPatlistRegex plist,
AjPStr* Pdoc
);
Type | Name | Read/Write | Description |
AjPPatlistRegex | plist | Modify | Pattern list object |
AjPStr* | Pdoc | Output | Formatted string |
ajuint | | RETURN | Number of patterns |
Output
Pdoc: | (Output) | Formatted string |
Input & Output
plist: | (Modify) | Pattern list object |
Returns
ajuint: | Number of patterns |
Description
Documents patterns to a formatted string
See Also
See other functions in this section
Availability
In release 6.4.0
Documents patterns to a formatted string
Synopsis
Prototype
ajuint ajPatlistSeqDoc (
AjPPatlistSeq plist,
AjPStr* Pdoc
);
Type | Name | Read/Write | Description |
AjPPatlistSeq | plist | Modify | Pattern list object |
AjPStr* | Pdoc | Output | Formatted string |
ajuint | | RETURN | Number of patterns |
Output
Pdoc: | (Output) | Formatted string |
Input & Output
plist: | (Modify) | Pattern list object |
Returns
ajuint: | Number of patterns |
Description
Documents patterns to a formatted string
See Also
See other functions in this section
Availability
In release 6.4.0