ajseq.c
Datatypes: AjPSeq AjPSeqall AjPSeqset AjPStr AjPSeqCvt AjPSeqDate AjPSeqDesc AjPList AjPSeqSubdesc AjPList AjPSeqGene AjPList AjPSeqXref AjPList AjPSeqRef AjPList AjPStr
Sequence
Sections: constructors destructors modifiers process element retrieval testing properties conversion calculated properties exit debug
All constructors return a new sequence by pointer. It is the
responsibility of the user to first destroy any previous
sequence. The target pointer does not need to be initialised to
NULL, but it is good programming practice to do so anyway.
Functions: ajSeqNew ajSeqNewNameC ajSeqNewNameS ajSeqNewRangeC ajSeqNewRangeS ajSeqNewRes ajSeqNewSeq
Creates and initialises a sequence object.
Synopsis
Prototype
AjPSeq ajSeqNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeq | | RETURN | New sequence object. |
Returns
| AjPSeq: | New sequence object. |
Description
Creates and initialises a sequence object.
See Also
See other functions in this section
Availability
In release 6.4.0
Creates and initialises a sequence object with a specified existing
sequence as a char
Synopsis
Prototype
AjPSeq ajSeqNewNameC (
const char* txt,
const char* name
);
| Type | Name | Read/Write | Description |
| const char* | txt | Input | Sequence string |
| const char* | name | Input | Sequence name |
| AjPSeq | | RETURN | New sequence object. |
Input
| txt: | (Input) | Sequence string |
| name: | (Input) | Sequence name |
Returns
| AjPSeq: | New sequence object. |
Description
Creates and initialises a sequence object with a specified existing
sequence as a char
See Also
See other functions in this section
Availability
In release 6.4.0
Creates and initialises a sequence object with a specified existing
sequence as a string
Synopsis
Prototype
AjPSeq ajSeqNewNameS (
const AjPStr str,
const AjPStr name
);
| Type | Name | Read/Write | Description |
| const AjPStr | str | Input | Sequence string |
| const AjPStr | name | Input | Sequence name |
| AjPSeq | | RETURN | New sequence object. |
Input
| str: | (Input) | Sequence string |
| name: | (Input) | Sequence name |
Returns
| AjPSeq: | New sequence object. |
Description
Creates and initialises a sequence object with a specified existing
sequence as a string
See Also
See other functions in this section
Availability
In release 6.4.0
Creates and initialises a sequence object with a specified existing
sequence as a string,and provides offsets, and direction.
The sequence is set to be already trimmed and if necessary reversed.
Start and end positions are 0 (full sequence), as it is trimmed.
Any start and end are represented by the offsets.
Synopsis
Prototype
AjPSeq ajSeqNewRangeC (
const char* txt,
ajint offset,
ajint offend,
AjBool rev
);
| Type | Name | Read/Write | Description |
| const char* | txt | Input | Sequence string |
| ajint | offset | Input | Offset at start |
| ajint | offend | Input | Offset at end |
| AjBool | rev | Input | Reversed if true (reverses offsets) |
| AjPSeq | | RETURN | New sequence object. |
Input
| txt: | (Input) | Sequence string |
| offset: | (Input) | Offset at start |
| offend: | (Input) | Offset at end |
| rev: | (Input) | Reversed if true (reverses offsets) |
Returns
| AjPSeq: | New sequence object. |
Description
Creates and initialises a sequence object with a specified existing
sequence as a string,and provides offsets, and direction.
The sequence is set to be already trimmed and if necessary reversed.
Start and end positions are 0 (full sequence), as it is trimmed.
Any start and end are represented by the offsets.
See Also
See other functions in this section
Availability
In release 6.4.0
Creates and initialises a sequence object with a specified existing
sequence as a string,and provides offsets, and direction.
The sequence is set to be already trimmed and if necessary reversed.
Start and end positions are 0 (full sequence), as it is trimmed.
Any start and end are represented by the offsets.
Synopsis
Prototype
AjPSeq ajSeqNewRangeS (
const AjPStr str,
ajint offset,
ajint offend,
AjBool rev
);
| Type | Name | Read/Write | Description |
| const AjPStr | str | Input | Sequence string |
| ajint | offset | Input | Offset at start |
| ajint | offend | Input | Offset at end |
| AjBool | rev | Input | Reversed if true (reverses offsets) |
| AjPSeq | | RETURN | New sequence object. |
Input
| str: | (Input) | Sequence string |
| offset: | (Input) | Offset at start |
| offend: | (Input) | Offset at end |
| rev: | (Input) | Reversed if true (reverses offsets) |
Returns
| AjPSeq: | New sequence object. |
Description
Creates and initialises a sequence object with a specified existing
sequence as a string,and provides offsets, and direction.
The sequence is set to be already trimmed and if necessary reversed.
Start and end positions are 0 (full sequence), as it is trimmed.
Any start and end are represented by the offsets.
See Also
See other functions in this section
Availability
In release 6.4.0
Creates and initialises a sequence object with a specified sequence length.
Synopsis
Prototype
AjPSeq ajSeqNewRes (
size_t size
);
| Type | Name | Read/Write | Description |
| size_t | size | Input | Reserved space for the sequence, including
a trailing null character. |
| AjPSeq | | RETURN | New sequence object. |
Input
| size: | (Input) | Reserved space for the sequence, including
a trailing null character. |
Returns
| AjPSeq: | New sequence object. |
Description
Creates and initialises a sequence object with a specified sequence length.
See Also
See other functions in this section
Availability
In release 6.4.0
Creates and initialises a sequence object with a specified existing
sequence.
Synopsis
Prototype
AjPSeq ajSeqNewSeq (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Old sequence object |
| AjPSeq | | RETURN | New sequence object. |
Input
| seq: | (Input) | Old sequence object |
Returns
| AjPSeq: | New sequence object. |
Description
Creates and initialises a sequence object with a specified existing
sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the sequence.
Functions: ajSeqDel ajSeqDelarray
Deletes a sequence object.
Synopsis
Prototype
void ajSeqDel (
AjPSeq* Pseq
);
| Type | Name | Read/Write | Description |
| AjPSeq* | Pseq | Delete | Sequence object |
| void | | RETURN | |
Output
| Pseq: | (Delete) | Sequence object |
Returns
Description
Deletes a sequence object.
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for array of sequence objects
Synopsis
Prototype
void ajSeqDelarray (
AjPSeq** PPseq
);
| Type | Name | Read/Write | Description |
| AjPSeq** | PPseq | Delete | Sequence object array |
| void | | RETURN | |
Output
| PPseq: | (Delete) | Sequence object array |
Returns
Description
Destructor for array of sequence objects
See Also
See other functions in this section
Availability
In release 6.4.0
These functions update contents of a sequence object.
Functions: ajSeqAddCmt ajSeqAddGene ajSeqAddKey ajSeqAddRef ajSeqAddXref ajSeqAssignAccC ajSeqAssignAccS ajSeqAssignDescC ajSeqAssignDescS ajSeqAssignEntryC ajSeqAssignEntryS ajSeqAssignFileC ajSeqAssignFileS ajSeqAssignFullC ajSeqAssignFullS ajSeqAssignGiC ajSeqAssignGiS ajSeqAssignNameC ajSeqAssignNameS ajSeqAssignQualLen ajSeqAssignSeqC ajSeqAssignSeqLenC ajSeqAssignSeqS ajSeqAssignSvC ajSeqAssignSvS ajSeqAssignUfoC ajSeqAssignUfoS ajSeqAssignUsaC ajSeqAssignUsaS ajSeqClear ajSeqSetName ajSeqSetNameMulti ajSeqSetOffsets ajSeqSetRange ajSeqSetRangeRev ajSeqSetUnique ajSeqTagRev
Adds a comment to a sequence object
Synopsis
Prototype
void ajSeqAddCmt (
AjPSeq seq,
AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| AjPStr | str | Modify | Comment. |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence object. |
| str: | (Modify) | Comment. |
Returns
Description
Adds a comment to a sequence object
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a gene to a sequence object
Synopsis
Prototype
void ajSeqAddGene (
AjPSeq seq,
AjPSeqGene gene
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| AjPSeqGene | gene | Modify | Gene object |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence object. |
| gene: | (Modify) | Gene object |
Returns
Description
Adds a gene to a sequence object
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a keyword to a sequence object
Synopsis
Prototype
void ajSeqAddKey (
AjPSeq seq,
AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| AjPStr | str | Modify | Comment. |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence object. |
| str: | (Modify) | Comment. |
Returns
Description
Adds a keyword to a sequence object
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a literature reference to a sequence object
Synopsis
Prototype
void ajSeqAddRef (
AjPSeq seq,
AjPSeqRef ref
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| AjPSeqRef | ref | Modify | Literature reference. |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence object. |
| ref: | (Modify) | Literature reference. |
Returns
Description
Adds a literature reference to a sequence object
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a cross-reference to a sequence object
Synopsis
Prototype
void ajSeqAddXref (
AjPSeq seq,
AjPSeqXref xref
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| AjPSeqXref | xref | Modify | Comment. |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence object. |
| xref: | (Modify) | Comment. |
Returns
Description
Adds a cross-reference to a sequence object
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence accession number.
Synopsis
Prototype
void ajSeqAssignAccC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | Accession number as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | Accession number as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence accession number.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence accession number.
Synopsis
Prototype
void ajSeqAssignAccS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | Accession number as a string. |
| void | | RETURN | |
Input
| str: | (Input) | Accession number as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence accession number.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns a modified description to an existing AjPSeq sequence.
Synopsis
Prototype
void ajSeqAssignDescC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | New description as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | New description as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns a modified description to an existing AjPSeq sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns a modified description to an existing AjPSeq sequence.
Synopsis
Prototype
void ajSeqAssignDescS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | New description as a string. |
| void | | RETURN | |
Input
| str: | (Input) | New description as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns a modified description to an existing AjPSeq sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence entryname.
Synopsis
Prototype
void ajSeqAssignEntryC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | Entry name as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | Entry name as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence entryname.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence entryname.
Synopsis
Prototype
void ajSeqAssignEntryS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | Entry name as a string. |
| void | | RETURN | |
Input
| str: | (Input) | Entry name as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence entryname.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence filename.
Synopsis
Prototype
void ajSeqAssignFileC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | File name as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | File name as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence filename.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence file name.
Synopsis
Prototype
void ajSeqAssignFileS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | File name as a string. |
| void | | RETURN | |
Input
| str: | (Input) | File name as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence file name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence name.
Synopsis
Prototype
void ajSeqAssignFullC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | Full name as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | Full name as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence full name.
Synopsis
Prototype
void ajSeqAssignFullS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | Full name as a string. |
| void | | RETURN | |
Input
| str: | (Input) | Full name as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence full name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the GI version number.
Synopsis
Prototype
void ajSeqAssignGiC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | GI number as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | GI number as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the GI version number.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the GI version number.
Synopsis
Prototype
void ajSeqAssignGiS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | GI number as a string. |
| void | | RETURN | |
Input
| str: | (Input) | GI number as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the GI version number.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence name.
Synopsis
Prototype
void ajSeqAssignNameC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | Name as a string. |
| void | | RETURN | |
Input
| txt: | (Input) | Name as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence name.
Synopsis
Prototype
void ajSeqAssignNameS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | Name as a string. |
| void | | RETURN | |
Input
| str: | (Input) | Name as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns base quality scores to an existing sequence.
Synopsis
Prototype
void ajSeqAssignQualLen (
AjPSeq seq,
const float* qual,
ajuint len
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const float* | qual | Input | Base quality scores. |
| ajuint | len | Input | Number of quality scores to use |
| void | | RETURN | |
Input
| qual: | (Input) | Base quality scores. |
| len: | (Input) | Number of quality scores to use |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns base quality scores to an existing sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns a modified sequence to an existing AjPSeq sequence.
Synopsis
Prototype
void ajSeqAssignSeqC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | New sequence as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | New sequence as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns a modified sequence to an existing AjPSeq sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns a modified sequence to an existing AjPSeq sequence.
Synopsis
Prototype
void ajSeqAssignSeqLenC (
AjPSeq seq,
const char* txt,
ajuint len
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | New sequence as a C character string. |
| ajuint | len | Input | Number of characters to use |
| void | | RETURN | |
Input
| txt: | (Input) | New sequence as a C character string. |
| len: | (Input) | Number of characters to use |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns a modified sequence to an existing AjPSeq sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns a modified sequence to an existing AjPSeq sequence.
Synopsis
Prototype
void ajSeqAssignSeqS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | New sequence as a string. |
| void | | RETURN | |
Input
| str: | (Input) | New sequence as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns a modified sequence to an existing AjPSeq sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence version number.
Synopsis
Prototype
void ajSeqAssignSvC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | SeqVersion number as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | SeqVersion number as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence version number.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence version number.
Synopsis
Prototype
void ajSeqAssignSvS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | SeqVersion number as a string. |
| void | | RETURN | |
Input
| str: | (Input) | SeqVersion number as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence version number.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence feature file name.
Synopsis
Prototype
void ajSeqAssignUfoC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | UFO as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | UFO as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence feature file name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence feature file name.
Synopsis
Prototype
void ajSeqAssignUfoS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | UFO as a string. |
| void | | RETURN | |
Input
| str: | (Input) | UFO as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence feature file name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence full name.
Synopsis
Prototype
void ajSeqAssignUsaC (
AjPSeq seq,
const char* txt
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const char* | txt | Input | USA as a C character string. |
| void | | RETURN | |
Input
| txt: | (Input) | USA as a C character string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence full name.
See Also
See other functions in this section
Availability
In release 6.4.0
Assigns the sequence full name.
Synopsis
Prototype
void ajSeqAssignUsaS (
AjPSeq seq,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object. |
| const AjPStr | str | Input | USA as a string. |
| void | | RETURN | |
Input
| str: | (Input) | USA as a string. |
Input & Output
| seq: | (Modify) | Sequence object. |
Returns
Description
Assigns the sequence full name.
See Also
See other functions in this section
Availability
In release 6.4.0
Resets all data for a sequence object so that it can be reused.
Synopsis
Prototype
void ajSeqClear (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Resets all data for a sequence object so that it can be reused.
See Also
See other functions in this section
Availability
In release 6.4.0
Provides a unique (for this program run) name for a sequence.
Synopsis
Prototype
void ajSeqSetName (
AjPSeq seq,
const AjPStr setname
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Output | Sequence object |
| const AjPStr | setname | Input | Name set by caller |
| void | | RETURN | |
Input
| setname: | (Input) | Name set by caller |
Output
| seq: | (Output) | Sequence object |
Returns
Description
Provides a unique (for this program run) name for a sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Provides a unique (for this program run) name for a sequence.
If a name is generated, append a count
Synopsis
Prototype
void ajSeqSetNameMulti (
AjPSeq seq,
const AjPStr setname
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Output | Sequence object |
| const AjPStr | setname | Input | Name set by caller |
| void | | RETURN | |
Input
| setname: | (Input) | Name set by caller |
Output
| seq: | (Output) | Sequence object |
Returns
Description
Provides a unique (for this program run) name for a sequence.
If a name is generated, append a count
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the offsets for each end of a subsequence.
Needed mainly for local alignments so the original sequence numbering
can be preserved.
Synopsis
Prototype
void ajSeqSetOffsets (
AjPSeq seq,
ajint offset,
ajint origlen
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object to be set. |
| ajint | offset | Input | Offset from start of original sequence |
| ajint | origlen | Input | Original length, used to calculate the offset
from the end. |
| void | | RETURN | |
Input
| offset: | (Input) | Offset from start of original sequence |
| origlen: | (Input) | Original length, used to calculate the offset
from the end. |
Input & Output
| seq: | (Modify) | Sequence object to be set. |
Returns
Description
Sets the offsets for each end of a subsequence.
Needed mainly for local alignments so the original sequence numbering
can be preserved.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the start and end positions for a sequence (not for a sequence set).
Trim the sequence to convert to the subsequence.
Synopsis
Prototype
void ajSeqSetRange (
AjPSeq seq,
ajint pos1,
ajint pos2
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object to be set. |
| ajint | pos1 | Input | Start position. Negative values are from the end. |
| ajint | pos2 | Input | End position. Negative values are from the end. |
| void | | RETURN | |
Input
| pos1: | (Input) | Start position. Negative values are from the end. |
| pos2: | (Input) | End position. Negative values are from the end. |
Input & Output
| seq: | (Modify) | Sequence object to be set. |
Returns
Description
Sets the start and end positions for a sequence (not for a sequence set).
Trim the sequence to convert to the subsequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the start and end positions for a sequence (not for a sequence set),
and set the sequence to be reversed.
Synopsis
Prototype
void ajSeqSetRangeRev (
AjPSeq seq,
ajint pos1,
ajint pos2
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object to be set. |
| ajint | pos1 | Input | Start position. Negative values are from the end. |
| ajint | pos2 | Input | End position. Negative values are from the end. |
| void | | RETURN | |
Input
| pos1: | (Input) | Start position. Negative values are from the end. |
| pos2: | (Input) | End position. Negative values are from the end. |
Input & Output
| seq: | (Modify) | Sequence object to be set. |
Returns
Description
Sets the start and end positions for a sequence (not for a sequence set),
and set the sequence to be reversed.
See Also
See other functions in this section
Availability
In release 6.4.0
Makes a sequence modifiable by making sure there is no duplicate
copy of the sequence.
Synopsis
Prototype
void ajSeqSetUnique (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Makes a sequence modifiable by making sure there is no duplicate
copy of the sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Adds a tag to the sequence description to note it has been reversed
Synopsis
Prototype
void ajSeqTagRev (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object to be set. |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence object to be set. |
Returns
Description
Adds a tag to the sequence description to note it has been reversed
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a sequence object to produce a
subsequence from the range, or to reverse a sequence whose direction
has been set to be reversed.
Functions: ajSeqComplement ajSeqFmtLower ajSeqFmtUpper ajSeqGapFill ajSeqGapStandard ajSeqReverseDo ajSeqReverseForce ajSeqReverseOnly ajSeqTrim
Complements but does not reverse a nucleotide sequence.
Synopsis
Prototype
void ajSeqComplement (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Complements but does not reverse a nucleotide sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Converts a sequence to lower case.
Synopsis
Prototype
void ajSeqFmtLower (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Converts a sequence to lower case.
See Also
See other functions in this section
Availability
In release 6.4.0
Converts a sequence to upper case.
Synopsis
Prototype
void ajSeqFmtUpper (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Converts a sequence to upper case.
See Also
See other functions in this section
Availability
In release 6.4.0
Fills a single sequence with gaps up to a specified length.
Synopsis
Prototype
void ajSeqGapFill (
AjPSeq seq,
ajuint len
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence object to be set. |
| ajuint | len | Input | Length to pad fill to. |
| void | | RETURN | |
Input
| len: | (Input) | Length to pad fill to. |
Input & Output
| seq: | (Modify) | Sequence object to be set. |
Returns
Description
Fills a single sequence with gaps up to a specified length.
See Also
See other functions in this section
Availability
In release 6.4.0
Makes all gaps in a string use a standard gap character
Synopsis
Prototype
void ajSeqGapStandard (
AjPSeq seq,
char gapchar
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Output | Sequence object |
| char | gapchar | Input | Gap character (or '-' if zero) |
| void | | RETURN | |
Input
| gapchar: | (Input) | Gap character (or '-' if zero) |
Output
| seq: | (Output) | Sequence object |
Returns
Description
Makes all gaps in a string use a standard gap character
See Also
See other functions in this section
Availability
In release 6.4.0
Reverses and complements a nucleotide sequence, unless it is already done.
If the sequence is not flagged for reversal, use ajSeqReverseForce instead.
Synopsis
Prototype
void ajSeqReverseDo (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Reverses and complements a nucleotide sequence, unless it is already done.
If the sequence is not flagged for reversal, use ajSeqReverseForce instead.
See Also
See other functions in this section
Availability
In release 6.4.0
Reverses and complements a nucleotide sequence.
Forces reversal to be done even if the sequence is flagged
as already reversed.
This happens, for example, where an input sequence has been reversed
with -sreverse on the command line, but the application needs to reverse it
in processing both directions.
Synopsis
Prototype
void ajSeqReverseForce (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Reverses and complements a nucleotide sequence.
Forces reversal to be done even if the sequence is flagged
as already reversed.
This happens, for example, where an input sequence has been reversed
with -sreverse on the command line, but the application needs to reverse it
in processing both directions.
See Also
See other functions in this section
Availability
In release 6.4.0
Reverses but does not complement a nucleotide sequence.
Intended for sequence display, but can be used to fix incorrect
sequence entries.
Synopsis
Prototype
void ajSeqReverseOnly (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence |
| void | | RETURN | |
Input & Output
Returns
Description
Reverses but does not complement a nucleotide sequence.
Intended for sequence display, but can be used to fix incorrect
sequence entries.
See Also
See other functions in this section
Availability
In release 6.4.0
Trim a sequence using the Begin and Ends.
Also reverse complements a nucleotide sequence if required.
Synopsis
Prototype
void ajSeqTrim (
AjPSeq seq
);
| Type | Name | Read/Write | Description |
| AjPSeq | seq | Modify | Sequence to be trimmed. |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence to be trimmed. |
Returns
Description
Trim a sequence using the Begin and Ends.
Also reverse complements a nucleotide sequence if required.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions return the contents of a sequence object.
Functions: ajSeqGetAccC ajSeqGetAccS ajSeqGetBegin ajSeqGetBeginTrue ajSeqGetDbC ajSeqGetDbS ajSeqGetDescC ajSeqGetDescS ajSeqGetEnd ajSeqGetEndTrue ajSeqGetEntryC ajSeqGetEntryS ajSeqGetFeat ajSeqGetFeatCopy ajSeqGetGiC ajSeqGetGiS ajSeqGetLen ajSeqGetLenTrimmed ajSeqGetLenTrue ajSeqGetLenUngapped ajSeqGetNameC ajSeqGetNameS ajSeqGetOffend ajSeqGetOffset ajSeqGetQual ajSeqGetRange ajSeqGetRev ajSeqGetSeqC ajSeqGetSeqS ajSeqGetSeqCopyC ajSeqGetSeqCopyS ajSeqGetSvC ajSeqGetSvS ajSeqGetTaxC ajSeqGetTaxS ajSeqGetTaxid ajSeqGetUsaC ajSeqGetUsaS ajSeqGetXrefs
Returns the sequence accession number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetAccC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | Accession number as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | Accession number as a character string. |
Description
Returns the sequence accession number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence accession number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetAccS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | Accession number as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | Accession number as a string. |
Description
Returns the sequence accession number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence start position within the current stored sequence,
or 1 if no start has been set.
To return the position within the original sequence, which may be different
if the sequence has been trimmed, use ajSeqGetBeginTrue
Synopsis
Prototype
ajuint ajSeqGetBegin (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Start position. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence start position within the current stored sequence,
or 1 if no start has been set.
To return the position within the original sequence, which may be different
if the sequence has been trimmed, use ajSeqGetBeginTrue
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence start position in the original sequence,
which may have been trimmed.
To return the position within the current stored sequence,
which may be different if the sequence has been trimmed, use ajSeqBegin
Synopsis
Prototype
ajuint ajSeqGetBeginTrue (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Start position. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence start position in the original sequence,
which may have been trimmed.
To return the position within the current stored sequence,
which may be different if the sequence has been trimmed, use ajSeqBegin
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence database name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetDbC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | Database name as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | Database name as a character string. |
Description
Returns the sequence database name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence database name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetDbS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | Database name as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | Database name as a string. |
Description
Returns the sequence database name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence description.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetDescC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | Description as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | Description as a character string. |
Description
Returns the sequence description.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence description.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetDescS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | Description as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | Description as a string. |
Description
Returns the sequence description.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence end position, or the sequence length if no end
has been set.
Synopsis
Prototype
ajuint ajSeqGetEnd (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | End position. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence end position, or the sequence length if no end
has been set.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence end position, or the sequence length if no end
has been set.
Synopsis
Prototype
ajuint ajSeqGetEndTrue (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | End position. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence end position, or the sequence length if no end
has been set.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence full text entry.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetEntryC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | Entry as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | Entry as a character string. |
Description
Returns the sequence full text entry.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence full text entry.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetEntryS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | Entry as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | Entry as a string. |
Description
Returns the sequence full text entry.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence feature table.
Because this is a pointer to the real internal table
the caller must take care not to change it in any way,
or to delete it.
If the table is to be changed or deleted then it must first
be copied with ajSeqCopyFeat
Synopsis
Prototype
const AjPFeattable ajSeqGetFeat (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPFeattable | | RETURN | feature table (if any) |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPFeattable: | feature table (if any) |
Description
Returns the sequence feature table.
Because this is a pointer to the real internal table
the caller must take care not to change it in any way,
or to delete it.
If the table is to be changed or deleted then it must first
be copied with ajSeqCopyFeat
See Also
See other functions in this section
Availability
In release 6.4.0
Returns a copy of the sequence feature table.
Because this is a copy of all the data, the caller is responsible
for deleting it after use.
If the table is not to be changed or deleted then ajSeqGetFeat
can return a copy of the internal pointer.
Synopsis
Prototype
AjPFeattable ajSeqGetFeatCopy (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| AjPFeattable | | RETURN | feature table (if any) |
Input
| seq: | (Input) | Sequence object. |
Returns
| AjPFeattable: | feature table (if any) |
Description
Returns a copy of the sequence feature table.
Because this is a copy of all the data, the caller is responsible
for deleting it after use.
If the table is not to be changed or deleted then ajSeqGetFeat
can return a copy of the internal pointer.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the GI version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetGiC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | SeqVersion number as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | SeqVersion number as a character string. |
Description
Returns the GI version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the GI version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetGiS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | SeqVersion number as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | SeqVersion number as a string. |
Description
Returns the GI version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence length.
Synopsis
Prototype
ajuint ajSeqGetLen (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Sequence length. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence length.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence length after trimming begin and end positions
Synopsis
Prototype
ajuint ajSeqGetLenTrimmed (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Sequence length. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence length after trimming begin and end positions
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the length of the original sequence, including any gap characters.
Synopsis
Prototype
ajuint ajSeqGetLenTrue (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Target sequence. |
| ajuint | | RETURN | string position between 1 and length. |
Input
| seq: | (Input) | Target sequence. |
Returns
| ajuint: | string position between 1 and length. |
Description
Returns the length of the original sequence, including any gap characters.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence length excluding all gap characters.
Synopsis
Prototype
ajuint ajSeqGetLenUngapped (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Sequence length. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence length excluding all gap characters.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetNameC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | Name as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | Name as a character string. |
Description
Returns the sequence name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetNameS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the sequence name.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence offend value.
This is the number of positions removed from the original end.
Synopsis
Prototype
ajuint ajSeqGetOffend (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Sequence offend. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence offend value.
This is the number of positions removed from the original end.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence offset from -sbegin originally.
Synopsis
Prototype
ajuint ajSeqGetOffset (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Sequence offset. |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the sequence offset from -sbegin originally.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the base quality scores as an array.
Because this is a pointer to the real internal array
the caller must take care not to change the array in any way.
Synopsis
Prototype
const float* ajSeqGetQual (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence. |
| const float* | | RETURN | Base quality scores. |
Input
Returns
| const float*: | Base quality scores. |
Description
Returns the base quality scores as an array.
Because this is a pointer to the real internal array
the caller must take care not to change the array in any way.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence range for a sequence.
Synopsis
Prototype
ajuint ajSeqGetRange (
const AjPSeq seq,
ajint* begin,
ajint* end
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| ajint* | begin | Output | Sequence range begin |
| ajint* | end | Output | Sequence range end |
| ajuint | | RETURN | Sequence range length |
Input
| seq: | (Input) | Sequence object. |
Output
| begin: | (Output) | Sequence range begin |
| end: | (Output) | Sequence range end |
Returns
| ajuint: | Sequence range length |
Description
Returns the sequence range for a sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence direction.
See ajSeqReversed for whether it has already been reverse-complemented
Synopsis
Prototype
AjBool ajSeqGetRev (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| AjBool | | RETURN | Sequence Direction. |
Input
| seq: | (Input) | Sequence object |
Returns
| AjBool: | Sequence Direction. |
Description
Returns the sequence direction.
See ajSeqReversed for whether it has already been reverse-complemented
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence in a sequence object as a character string.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetSeqC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence. |
| const char* | | RETURN | Sequence as a character string. |
Input
Returns
| const char*: | Sequence as a character string. |
Description
Returns the sequence in a sequence object as a character string.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence in a sequence object as a string.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetSeqS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence. |
| const AjPStr | | RETURN | Sequence as a string. |
Input
Returns
| const AjPStr: | Sequence as a string. |
Description
Returns the sequence in a sequence object as a string.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns a sequence as a C character string. This is a copy of the string
so the caller can do anything with it.
It must be copied back
to a sequence (e.g. with ajSeqReplace) before output.
Synopsis
Prototype
char* ajSeqGetSeqCopyC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| char* | | RETURN | Sequence as a null terminated character string. |
Input
| seq: | (Input) | Sequence object |
Returns
| char*: | Sequence as a null terminated character string. |
Description
Returns a sequence as a C character string. This is a copy of the string
so the caller can do anything with it.
It must be copied back
to a sequence (e.g. with ajSeqReplace) before output.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence in a sequence object as a string.
Because this is a copy of the internal string
the caller may change the string. It must be copied back
to a sequence (e.g. with ajSeqReplace) before output.
Synopsis
Prototype
AjPStr ajSeqGetSeqCopyS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence. |
| AjPStr | | RETURN | Sequence as a string. |
Input
Returns
| AjPStr: | Sequence as a string. |
Description
Returns the sequence in a sequence object as a string.
Because this is a copy of the internal string
the caller may change the string. It must be copied back
to a sequence (e.g. with ajSeqReplace) before output.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetSvC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | SeqVersion number as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | SeqVersion number as a character string. |
Description
Returns the sequence version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetSvS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | SeqVersion number as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | SeqVersion number as a string. |
Description
Returns the sequence version number.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence primary taxon (species).
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetTaxC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | Description as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | Description as a character string. |
Description
Returns the sequence primary taxon (species).
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence primary taxon (species).
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetTaxS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | Description as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | Description as a string. |
Description
Returns the sequence primary taxon (species).
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the numeric identifier of the sequence primary taxon (species).
This is an identifier from the NCBI taxonomy
Synopsis
Prototype
ajuint ajSeqGetTaxid (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| ajuint | | RETURN | Taxon ID. |
Input
| seq: | (Input) | Sequence object. |
Returns
Description
Returns the numeric identifier of the sequence primary taxon (species).
This is an identifier from the NCBI taxonomy
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the original USA of a sequence.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqGetUsaC (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const char* | | RETURN | USA as a character string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const char*: | USA as a character string. |
Description
Returns the original USA of a sequence.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the original USA of a sequence.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqGetUsaS (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| const AjPStr | | RETURN | USA as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | USA as a string. |
Description
Returns the original USA of a sequence.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the list of cross-references derived from the sequence
Synopsis
Prototype
ajuint ajSeqGetXrefs (
const AjPSeq seq,
AjPList list
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object. |
| AjPList | list | Modify | List of cross-reference objects |
| ajuint | | RETURN | NUmber of cross-references returned |
Input
| seq: | (Input) | Sequence object. |
Input & Output
| list: | (Modify) | List of cross-reference objects |
Returns
| ajuint: | NUmber of cross-references returned |
Description
Returns the list of cross-references derived from the sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajSeqIsNuc ajSeqIsProt ajSeqIsReversed ajSeqIsReversedTrue ajSeqIsSpeciesBsubtilis ajSeqIsSpeciesHuman ajSeqIsSpeciesMouse ajSeqIsSpeciesYeast ajSeqIsTaxon ajSeqIsTrimmed
Tests whether a sequence is nucleotide.
Synopsis
Prototype
AjBool ajSeqIsNuc (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| AjBool | | RETURN | ajTrue for a nucleotide sequence. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence. |
Description
Tests whether a sequence is nucleotide.
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence is protein.
Synopsis
Prototype
AjBool ajSeqIsProt (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| AjBool | | RETURN | ajTrue for a protein sequence. |
Input
Returns
| AjBool: | ajTrue for a protein sequence. |
Description
Tests whether a sequence is protein.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns whether the sequence has been reversed
Synopsis
Prototype
AjBool ajSeqIsReversed (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| AjBool | | RETURN | Sequence Direction. |
Input
| seq: | (Input) | Sequence object |
Returns
| AjBool: | Sequence Direction. |
Description
Returns whether the sequence has been reversed
See Also
See other functions in this section
Availability
In release 6.4.0
Returns ajTrue if the sequence is reversed relative to the original sequence
If the sequence has already been reversed, or is set to be reversed,
the result will be true.
Synopsis
Prototype
AjBool ajSeqIsReversedTrue (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| AjBool | | RETURN | ajTrue if sequence is set to be reversed |
Input
| seq: | (Input) | Sequence object |
Returns
| AjBool: | ajTrue if sequence is set to be reversed |
Description
Returns ajTrue if the sequence is reversed relative to the original sequence
If the sequence has already been reversed, or is set to be reversed,
the result will be true.
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence is annotated as B. subtilis
Synopsis
Prototype
AjBool ajSeqIsSpeciesBsubtilis (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| AjBool | | RETURN | ajTrue for a nucleotide sequence. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence. |
Description
Tests whether a sequence is annotated as B. subtilis
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence is annotated as human
Synopsis
Prototype
AjBool ajSeqIsSpeciesHuman (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| AjBool | | RETURN | ajTrue for a nucleotide sequence. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence. |
Description
Tests whether a sequence is annotated as human
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence is annotated as mouse
Synopsis
Prototype
AjBool ajSeqIsSpeciesMouse (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| AjBool | | RETURN | ajTrue for a nucleotide sequence. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence. |
Description
Tests whether a sequence is annotated as mouse
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence is annotated as yeast (S. cerevisiae)
Synopsis
Prototype
AjBool ajSeqIsSpeciesYeast (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| AjBool | | RETURN | ajTrue for a nucleotide sequence. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence. |
Description
Tests whether a sequence is annotated as yeast (S. cerevisiae)
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence is annotated as from a specific taxon ID.
Synopsis
Prototype
AjBool ajSeqIsTaxon (
const AjPSeq seq,
ajuint taxid
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| ajuint | taxid | Input | NCBI Taxonomy ID |
| AjBool | | RETURN | ajTrue for a nucleotide sequence. |
Input
| seq: | (Input) | Sequence |
| taxid: | (Input) | NCBI Taxonomy ID |
Returns
| AjBool: | ajTrue for a nucleotide sequence. |
Description
Tests whether a sequence is annotated as from a specific taxon ID.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns ajTrue if the sequence is already trimmed
Synopsis
Prototype
AjBool ajSeqIsTrimmed (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| AjBool | | RETURN | ajTrue if sequence is set to be reversed |
Input
| seq: | (Input) | Sequence object |
Returns
| AjBool: | ajTrue if sequence is set to be reversed |
Description
Returns ajTrue if the sequence is already trimmed
See Also
See other functions in this section
Availability
In release 6.4.0
Convert sequence to numbers for efficient processing
Functions: ajSeqConvertNum
Converts a string of sequence characters to numbers using
a conversion table.
Synopsis
Prototype
AjBool ajSeqConvertNum (
const AjPSeq seq,
const AjPSeqCvt cvt,
AjPStr* Pnumseq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence as a string |
| const AjPSeqCvt | cvt | Input | Conversion table. |
| AjPStr* | Pnumseq | Output | Output numeric version of the sequence. |
| AjBool | | RETURN | ajTrue on success. |
Input
| seq: | (Input) | Sequence as a string |
| cvt: | (Input) | Conversion table. |
Output
| Pnumseq: | (Output) | Output numeric version of the sequence. |
Returns
| AjBool: | ajTrue on success. |
Description
Converts a string of sequence characters to numbers using
a conversion table.
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajSeqCalcCheckgcg ajSeqCalcCount ajSeqCalcMolwt ajSeqCalcTruepos ajSeqCalcTrueposMin ajSeqCountGaps
Calculates a GCG checksum for a sequence.
Synopsis
Prototype
ajint ajSeqCalcCheckgcg (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence. |
| ajint | | RETURN | GCG checksum. |
Input
Returns
Description
Calculates a GCG checksum for a sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Counts the numbers of A, C, G and T in a nucleotide sequence.
Synopsis
Prototype
void ajSeqCalcCount (
const AjPSeq seq,
ajint* b
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajint* | b | Output | integer array, minimum size 5, to hold the results. |
| void | | RETURN | |
Input
| seq: | (Input) | Sequence object |
Output
| b: | (Output) | integer array, minimum size 5, to hold the results. |
Returns
Description
Counts the numbers of A, C, G and T in a nucleotide sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Calculates the molecular weight of a protein sequence.
Synopsis
Prototype
float ajSeqCalcMolwt (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence |
| float | | RETURN | Molecular weight. |
Input
Returns
Description
Calculates the molecular weight of a protein sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Converts a string position into a true position. If ipos is negative,
it is counted from the end of the string rather than the beginning.
For strings, the result can go off the end to the terminating NULL.
For sequences the maximum is the last base
Synopsis
Prototype
ajint ajSeqCalcTruepos (
const AjPSeq seq,
ajint ipos
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Target sequence. |
| ajint | ipos | Input | Position. |
| ajint | | RETURN | string position between 1 and length. |
Input
| seq: | (Input) | Target sequence. |
| ipos: | (Input) | Position. |
Returns
| ajint: | string position between 1 and length. |
Description
Converts a string position into a true position. If ipos is negative,
it is counted from the end of the string rather than the beginning.
For strings, the result can go off the end to the terminating NULL.
For sequences the maximum is the last base
See Also
See other functions in this section
Availability
In release 6.4.0
Converts a string position into a true position. If ipos is negative,
it is counted from the end of the string rather than the beginning.
imin is a minimum relative position, also counted from the end
if negative. Usually this is the start position when the end of a range
is being tested.
Synopsis
Prototype
ajint ajSeqCalcTrueposMin (
const AjPSeq seq,
ajint imin,
ajint ipos
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Target sequence. |
| ajint | imin | Input | Start position. |
| ajint | ipos | Input | Position. |
| ajint | | RETURN | string position between 1 and length. |
Input
| seq: | (Input) | Target sequence. |
| imin: | (Input) | Start position. |
| ipos: | (Input) | Position. |
Returns
| ajint: | string position between 1 and length. |
Description
Converts a string position into a true position. If ipos is negative,
it is counted from the end of the string rather than the beginning.
imin is a minimum relative position, also counted from the end
if negative. Usually this is the start position when the end of a range
is being tested.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the number of gaps in a sequence (counting any possible
gap character
Synopsis
Prototype
ajuint ajSeqCountGaps (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence object |
| ajuint | | RETURN | Number of gaps |
Input
| seq: | (Input) | Sequence object |
Returns
Description
Returns the number of gaps in a sequence (counting any possible
gap character
See Also
See other functions in this section
Availability
In release 6.4.0
Functions called on exit from the program by ajExit to do
any necessary cleanup and to report internal statistics to the debug file
Functions: ajSeqExit
Cleans up sequence processing internal memory
Synopsis
Prototype
void ajSeqExit (
void
);
| Type | Name | Read/Write | Description |
| void | | RETURN | |
Returns
Description
Cleans up sequence processing internal memory
See Also
See other functions in this section
Availability
In release 6.4.0
Reports sequence contents for debugging purposes
Functions: ajSeqTrace ajSeqTraceTitle
Debug calls to trace the data in a sequence object.
Synopsis
Prototype
void ajSeqTrace (
const AjPSeq seq
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | Sequence. |
| void | | RETURN | |
Input
Returns
Description
Debug calls to trace the data in a sequence object.
See Also
See other functions in this section
Availability
In release 6.4.0
Reports an AjPSeq object to debug output
Synopsis
Prototype
void ajSeqTraceTitle (
const AjPSeq seq,
const char* title
);
| Type | Name | Read/Write | Description |
| const AjPSeq | seq | Input | alignment object |
| const char* | title | Input | Trace report title |
| void | | RETURN | |
Input
| seq: | (Input) | alignment object |
| title: | (Input) | Trace report title |
Returns
Description
Reports an AjPSeq object to debug output
See Also
See other functions in this section
Availability
In release 6.4.0
Sequence stream
Sections: Sequence Stream Constructors destructors modifiers casts
Functions: ajSeqallNew
Creates a new sequence stream object to hold one sequence at a time.
Synopsis
Prototype
AjPSeqall ajSeqallNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqall | | RETURN | New sequence stream object. |
Returns
| AjPSeqall: | New sequence stream object. |
Description
Creates a new sequence stream object to hold one sequence at a time.
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the sequence.
Functions: ajSeqallDel
Destructor for sequence stream objects
Synopsis
Prototype
void ajSeqallDel (
AjPSeqall* Pseq
);
| Type | Name | Read/Write | Description |
| AjPSeqall* | Pseq | Delete | Sequence stream object reference |
| void | | RETURN | |
Output
| Pseq: | (Delete) | Sequence stream object reference |
Returns
Description
Destructor for sequence stream objects
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a sequence stream object and
update them.
Functions: ajSeqallClear ajSeqallClearStats ajSeqallSetRange ajSeqallSetRangeRev
Resets all data internals for a sequence stream object when
input has been read, but leaves statistics for reporting.
Synopsis
Prototype
void ajSeqallClear (
AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| AjPSeqall | seq | Modify | Sequence stream |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence stream |
Returns
Description
Resets all data internals for a sequence stream object when
input has been read, but leaves statistics for reporting.
See Also
See other functions in this section
Availability
In release 6.4.0
Resets all data for a sequence stream object so that it can be reused,
including statistics.
Synopsis
Prototype
void ajSeqallClearStats (
AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| AjPSeqall | seq | Modify | Sequence stream |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence stream |
Returns
Description
Resets all data for a sequence stream object so that it can be reused,
including statistics.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the start and end positions for a sequence stream.
Synopsis
Prototype
void ajSeqallSetRange (
AjPSeqall seq,
ajint pos1,
ajint pos2
);
| Type | Name | Read/Write | Description |
| AjPSeqall | seq | Modify | Sequence stream object to be set. |
| ajint | pos1 | Input | Start position. Negative values are from the end. |
| ajint | pos2 | Input | End position. Negative values are from the end. |
| void | | RETURN | |
Input
| pos1: | (Input) | Start position. Negative values are from the end. |
| pos2: | (Input) | End position. Negative values are from the end. |
Input & Output
| seq: | (Modify) | Sequence stream object to be set. |
Returns
Description
Sets the start and end positions for a sequence stream.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the start and end positions for a sequence stream,
and set the sequences to be reversed.
Synopsis
Prototype
void ajSeqallSetRangeRev (
AjPSeqall seq,
ajint pos1,
ajint pos2
);
| Type | Name | Read/Write | Description |
| AjPSeqall | seq | Modify | Sequence stream object to be set. |
| ajint | pos1 | Input | Start position. Negative values are from the end. |
| ajint | pos2 | Input | End position. Negative values are from the end. |
| void | | RETURN | |
Input
| pos1: | (Input) | Start position. Negative values are from the end. |
| pos2: | (Input) | End position. Negative values are from the end. |
Input & Output
| seq: | (Modify) | Sequence stream object to be set. |
Returns
Description
Sets the start and end positions for a sequence stream,
and set the sequences to be reversed.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions examine the contents of a sequence stream object
and return some derived information. Some of them provide access to
the internal components of a sequence stream object. They are
provided for programming convenience but should be used with
caution.
Functions: ajSeqallGetCount ajSeqallGetFilename ajSeqallGetName ajSeqallGetTotlength ajSeqallGetUsa ajSeqallGetseqBegin ajSeqallGetseqEnd ajSeqallGetseqLen ajSeqallGetseqName ajSeqallGetseqRange
Returns the number of sequences read by a seqall object
Synopsis
Prototype
ajlong ajSeqallGetCount (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Seqall object pointer. |
| ajlong | | RETURN | Number of sequences read. |
Input
| seq: | (Input) | Seqall object pointer. |
Returns
| ajlong: | Number of sequences read. |
Description
Returns the number of sequences read by a seqall object
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the filename of a seqall object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqallGetFilename (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Seqall object pointer. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Seqall object pointer. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the filename of a seqall object.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name of a sequence stream.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqallGetName (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Sequence stream object. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Sequence stream object. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the sequence name of a sequence stream.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the total length of sequences read by a seqall object
Synopsis
Prototype
ajlong ajSeqallGetTotlength (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Seqall object pointer. |
| ajlong | | RETURN | Total length of sequences read. |
Input
| seq: | (Input) | Seqall object pointer. |
Returns
| ajlong: | Total length of sequences read. |
Description
Returns the total length of sequences read by a seqall object
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name of a sequence stream.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqallGetUsa (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Sequence object. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Sequence object. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the sequence name of a sequence stream.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence stream start position, or 1 if no start has been set.
Synopsis
Prototype
ajint ajSeqallGetseqBegin (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Sequence stream object |
| ajint | | RETURN | Start position. |
Input
| seq: | (Input) | Sequence stream object |
Returns
Description
Returns the sequence stream start position, or 1 if no start has been set.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence stream end position, or the sequence length if no end
has been set.
Synopsis
Prototype
ajint ajSeqallGetseqEnd (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Sequence stream object |
| ajint | | RETURN | Start position. |
Input
| seq: | (Input) | Sequence stream object |
Returns
Description
Returns the sequence stream end position, or the sequence length if no end
has been set.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the length of a sequence stream, which is the length of the
latest sequence read.
Synopsis
Prototype
ajint ajSeqallGetseqLen (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Sequence stream object |
| ajint | | RETURN | sequence length. |
Input
| seq: | (Input) | Sequence stream object |
Returns
Description
Returns the length of a sequence stream, which is the length of the
latest sequence read.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name of a sequence stream.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqallGetseqName (
const AjPSeqall seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Sequence stream object. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Sequence stream object. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the sequence name of a sequence stream.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence range for a sequence stream
Synopsis
Prototype
ajint ajSeqallGetseqRange (
const AjPSeqall seq,
ajint* begin,
ajint* end
);
| Type | Name | Read/Write | Description |
| const AjPSeqall | seq | Input | Sequence stream object. |
| ajint* | begin | Output | Sequence range begin |
| ajint* | end | Output | Sequence range end |
| ajint | | RETURN | Sequence range length |
Input
| seq: | (Input) | Sequence stream object. |
Output
| begin: | (Output) | Sequence range begin |
| end: | (Output) | Sequence range end |
Returns
| ajint: | Sequence range length |
Description
Returns the sequence range for a sequence stream
See Also
See other functions in this section
Availability
In release 6.4.0
Sequence set
Sections: constructors destructors casts modifiers element assignment casts testing properties
All constructors return a new sequence set object by pointer. It is the
responsibility of the user to first destroy any previous
sequence. The target pointer does not need to be initialised to
NULL, but it is good programming practice to do so anyway.
Functions: ajSeqsetNew
Creates a new sequence set object to hold all sequences in memory.
Synopsis
Prototype
AjPSeqset ajSeqsetNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqset | | RETURN | New sequence set object. |
Returns
| AjPSeqset: | New sequence set object. |
Description
Creates a new sequence set object to hold all sequences in memory.
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the sequence.
Functions: ajSeqsetDel ajSeqsetDelarray
Destructor for sequence set objects
Synopsis
Prototype
void ajSeqsetDel (
AjPSeqset* Pseq
);
| Type | Name | Read/Write | Description |
| AjPSeqset* | Pseq | Delete | Sequence set object reference |
| void | | RETURN | |
Output
| Pseq: | (Delete) | Sequence set object reference |
Returns
Description
Destructor for sequence set objects
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for array of sequence set objects
Synopsis
Prototype
void ajSeqsetDelarray (
AjPSeqset** PPseq
);
| Type | Name | Read/Write | Description |
| AjPSeqset** | PPseq | Delete | Sequence set object array |
| void | | RETURN | |
Output
| PPseq: | (Delete) | Sequence set object array |
Returns
Description
Destructor for array of sequence set objects
See Also
See other functions in this section
Availability
In release 6.4.0
These functions examine the contents of a sequence set object
and return some derived information. Some of them provide access to
the internal components of a sequence stream object. They are
provided for programming convenience but should be used with
caution.
Functions: ajSeqsetGetFilename ajSeqsetGetFormat ajSeqsetGetOffend ajSeqsetGetOffset ajSeqsetGetRange ajSeqsetGetTotlength ajSeqsetGetUsa
Returns the filename of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqsetGetFilename (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Sequence set object. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the filename of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence format for a sequence set
Synopsis
Prototype
const AjPStr ajSeqsetGetFormat (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| const AjPStr | | RETURN | Sequence format |
Input
| seq: | (Input) | Sequence set object. |
Returns
| const AjPStr: | Sequence format |
Description
Returns the sequence format for a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence set offend value.
This is the number of positions removed from the original end.
Synopsis
Prototype
ajint ajSeqsetGetOffend (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajint | | RETURN | Sequence offend. |
Input
| seq: | (Input) | Sequence set object |
Returns
Description
Returns the sequence set offend value.
This is the number of positions removed from the original end.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence set offset value.
This is the number of positions removed from the original end.
Synopsis
Prototype
ajint ajSeqsetGetOffset (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajint | | RETURN | Sequence offset. |
Input
| seq: | (Input) | Sequence set object |
Returns
Description
Returns the sequence set offset value.
This is the number of positions removed from the original end.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence range for a sequence set
Synopsis
Prototype
ajint ajSeqsetGetRange (
const AjPSeqset seq,
ajint* begin,
ajint* end
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| ajint* | begin | Output | Sequence range begin |
| ajint* | end | Output | Sequence range end |
| ajint | | RETURN | Sequence range length |
Input
| seq: | (Input) | Sequence set object. |
Output
| begin: | (Output) | Sequence range begin |
| end: | (Output) | Sequence range end |
Returns
| ajint: | Sequence range length |
Description
Returns the sequence range for a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the total number of bases or residues in a sequence set,
ignoring any gap characters in aligned sequences.
Synopsis
Prototype
ajint ajSeqsetGetTotlength (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| ajint | | RETURN | Total ungapped length |
Input
| seq: | (Input) | Sequence set object. |
Returns
| ajint: | Total ungapped length |
Description
Returns the total number of bases or residues in a sequence set,
ignoring any gap characters in aligned sequences.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqsetGetUsa (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Sequence set object. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the sequence name of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a sequence set object and
update them.
Functions: ajSeqsetFill ajSeqsetFmtLower ajSeqsetFmtUpper ajSeqsetReverse ajSeqsetSortLen ajSeqsetTrim
Fills a sequence set with gaps at the ends of any shorter sequences.
Synopsis
Prototype
ajint ajSeqsetFill (
AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| AjPSeqset | seq | Modify | Sequence set object to be set. |
| ajint | | RETURN | Number of gaps inserted |
Input & Output
| seq: | (Modify) | Sequence set object to be set. |
Returns
| ajint: | Number of gaps inserted |
Description
Fills a sequence set with gaps at the ends of any shorter sequences.
See Also
See other functions in this section
Availability
In release 6.4.0
Converts all sequences in a set to lower case.
Synopsis
Prototype
void ajSeqsetFmtLower (
AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| AjPSeqset | seq | Modify | Sequence set object |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence set object |
Returns
Description
Converts all sequences in a set to lower case.
See Also
See other functions in this section
Availability
In release 6.4.0
Converts all sequences in a set to upper case.
Synopsis
Prototype
void ajSeqsetFmtUpper (
AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| AjPSeqset | seq | Modify | Sequence set object |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence set object |
Returns
Description
Converts all sequences in a set to upper case.
See Also
See other functions in this section
Availability
In release 6.4.0
Reverse complements all sequences in a sequence set.
Synopsis
Prototype
void ajSeqsetReverse (
AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| AjPSeqset | seq | Modify | Sequence set object |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence set object |
Returns
Description
Reverse complements all sequences in a sequence set.
See Also
See other functions in this section
Availability
In release 6.4.0
Sorts a sequence set by sequence length
Synopsis
Prototype
void ajSeqsetSortLen (
AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| AjPSeqset | seq | Modify | Sequence set object |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence set object |
Returns
Description
Sorts a sequence set by sequence length
See Also
See other functions in this section
Availability
In release 6.4.0
Trims a sequence set to start and end positions
Synopsis
Prototype
void ajSeqsetTrim (
AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| AjPSeqset | seq | Modify | Sequence set object |
| void | | RETURN | |
Input & Output
| seq: | (Modify) | Sequence set object |
Returns
Description
Trims a sequence set to start and end positions
See Also
See other functions in this section
Availability
In release 6.4.0
Functions for assigning elements of a sequence set object.
Functions: ajSeqsetSetRange
Sets the start and end positions for a sequence set.
Synopsis
Prototype
void ajSeqsetSetRange (
AjPSeqset seq,
ajint pos1,
ajint pos2
);
| Type | Name | Read/Write | Description |
| AjPSeqset | seq | Modify | Sequence set object to be set. |
| ajint | pos1 | Input | Start position. Negative values are from the end. |
| ajint | pos2 | Input | End position. Negative values are from the end. |
| void | | RETURN | |
Input
| pos1: | (Input) | Start position. Negative values are from the end. |
| pos2: | (Input) | End position. Negative values are from the end. |
Input & Output
| seq: | (Modify) | Sequence set object to be set. |
Returns
Description
Sets the start and end positions for a sequence set.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions examine the contents of a sequence set object and
return some derived information. Some of them provide access to the
internal components of a sequence set object. They are provided for
programming convenience but should be used with caution.
Functions: ajSeqsetGetBegin ajSeqsetGetEnd ajSeqsetGetLen ajSeqsetGetNameC ajSeqsetGetNameS ajSeqsetGetSeqarray ajSeqsetGetSize ajSeqsetGetTotweight ajSeqsetGetseqAccC ajSeqsetGetseqAccS ajSeqsetGetseqNameC ajSeqsetGetseqNameS ajSeqsetGetseqSeq ajSeqsetGetseqSeqC ajSeqsetGetseqSeqS ajSeqsetGetseqWeight
Returns the sequence set start position, or 1 if no start has been set.
Synopsis
Prototype
ajuint ajSeqsetGetBegin (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | | RETURN | Start position. |
Input
| seq: | (Input) | Sequence set object |
Returns
Description
Returns the sequence set start position, or 1 if no start has been set.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence set end position, or the sequence length if no end
has been set.
Synopsis
Prototype
ajuint ajSeqsetGetEnd (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | | RETURN | Start position. |
Input
| seq: | (Input) | Sequence set object |
Returns
Description
Returns the sequence set end position, or the sequence length if no end
has been set.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the length of a sequence set, which is the maximum sequence
length in the set.
Synopsis
Prototype
ajuint ajSeqsetGetLen (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | | RETURN | sequence set length. |
Input
| seq: | (Input) | Sequence set object |
Returns
| ajuint: | sequence set length. |
Description
Returns the length of a sequence set, which is the maximum sequence
length in the set.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqsetGetNameC (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| const char* | | RETURN | Name as a C character string. |
Input
| seq: | (Input) | Sequence set object. |
Returns
| const char*: | Name as a C character string. |
Description
Returns the sequence name of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence name of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqsetGetNameS (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| const AjPStr | | RETURN | Name as a string. |
Input
| seq: | (Input) | Sequence set object. |
Returns
| const AjPStr: | Name as a string. |
Description
Returns the sequence name of a sequence set.
Because this is a pointer to the real internal string
the caller must take care not to change the character string in any way.
If the string is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns an array of sequences.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
The array is 1 larger than the sequence set,
with the last element set to NULL.
Synopsis
Prototype
AjPSeq* ajSeqsetGetSeqarray (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| AjPSeq* | | RETURN | Sequence object. |
Input
| seq: | (Input) | Sequence set object. |
Returns
Description
Returns an array of sequences.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
The array is 1 larger than the sequence set,
with the last element set to NULL.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the number of sequences in a sequence set
Synopsis
Prototype
ajuint ajSeqsetGetSize (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | | RETURN | sequence set size. |
Input
| seq: | (Input) | Sequence set object |
Returns
| ajuint: | sequence set size. |
Description
Returns the number of sequences in a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the weight of all sequences in a sequence set
Synopsis
Prototype
float ajSeqsetGetTotweight (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| float | | RETURN | sequence weight as a float. |
Input
| seq: | (Input) | Sequence set object |
Returns
| float: | sequence weight as a float. |
Description
Returns the weight of all sequences in a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the accession number of a sequence in a sequence set
Synopsis
Prototype
const char* ajSeqsetGetseqAccC (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | i | Input | Sequence index |
| const char* | | RETURN | accession number as a string. |
Input
| seq: | (Input) | Sequence set object |
| i: | (Input) | Sequence index |
Returns
| const char*: | accession number as a string. |
Description
Returns the accession number of a sequence in a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the accession number of a sequence in a sequence set
Synopsis
Prototype
const AjPStr ajSeqsetGetseqAccS (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | i | Input | Sequence index |
| const AjPStr | | RETURN | accession number as a string. |
Input
| seq: | (Input) | Sequence set object |
| i: | (Input) | Sequence index |
Returns
| const AjPStr: | accession number as a string. |
Description
Returns the accession number of a sequence in a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the name of a sequence in a sequence set
Synopsis
Prototype
const char* ajSeqsetGetseqNameC (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | i | Input | Sequence index |
| const char* | | RETURN | sequence name as a string. |
Input
| seq: | (Input) | Sequence set object |
| i: | (Input) | Sequence index |
Returns
| const char*: | sequence name as a string. |
Description
Returns the name of a sequence in a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the name of a sequence in a sequence set
Synopsis
Prototype
const AjPStr ajSeqsetGetseqNameS (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | i | Input | Sequence index |
| const AjPStr | | RETURN | sequence name as a string. |
Input
| seq: | (Input) | Sequence set object |
| i: | (Input) | Sequence index |
Returns
| const AjPStr: | sequence name as a string. |
Description
Returns the name of a sequence in a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Returns one sequence from a sequence set.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPSeq ajSeqsetGetseqSeq (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| ajuint | i | Input | Sequence index number in set |
| const AjPSeq | | RETURN | Sequence object. |
Input
| seq: | (Input) | Sequence set object. |
| i: | (Input) | Sequence index number in set |
Returns
| const AjPSeq: | Sequence object. |
Description
Returns one sequence from a sequence set.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns one sequence from a sequence set.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const char* ajSeqsetGetseqSeqC (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| ajuint | i | Input | Sequence index number in set |
| const char* | | RETURN | Sequence as a C string. |
Input
| seq: | (Input) | Sequence set object. |
| i: | (Input) | Sequence index number in set |
Returns
| const char*: | Sequence as a C string. |
Description
Returns one sequence from a sequence set.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns one sequence from a sequence set.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
Synopsis
Prototype
const AjPStr ajSeqsetGetseqSeqS (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object. |
| ajuint | i | Input | Sequence index number in set |
| const AjPStr | | RETURN | Sequence object. |
Input
| seq: | (Input) | Sequence set object. |
| i: | (Input) | Sequence index number in set |
Returns
| const AjPStr: | Sequence object. |
Description
Returns one sequence from a sequence set.
Because this is a pointer to the real internal sequence
the caller must take care not to change the data in any way.
If the sequence is to be changed (case for example) then it must first
be copied.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the weight of a sequence in a sequence set
Synopsis
Prototype
float ajSeqsetGetseqWeight (
const AjPSeqset seq,
ajuint i
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set object |
| ajuint | i | Input | Sequence index |
| float | | RETURN | sequence weight as a float. |
Input
| seq: | (Input) | Sequence set object |
| i: | (Input) | Sequence index |
Returns
| float: | sequence weight as a float. |
Description
Returns the weight of a sequence in a sequence set
See Also
See other functions in this section
Availability
In release 6.4.0
Tests properties of a sequence set
Functions: ajSeqsetIsDna ajSeqsetIsNuc ajSeqsetIsProt ajSeqsetIsRna
Tests whether a sequence set is DNA.
Synopsis
Prototype
AjBool ajSeqsetIsDna (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set |
| AjBool | | RETURN | ajTrue for a nucleotide sequence set. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence set. |
Description
Tests whether a sequence set is DNA.
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence set is nucleotide.
Synopsis
Prototype
AjBool ajSeqsetIsNuc (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set |
| AjBool | | RETURN | ajTrue for a nucleotide sequence set. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence set. |
Description
Tests whether a sequence set is nucleotide.
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence set is protein.
Synopsis
Prototype
AjBool ajSeqsetIsProt (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set |
| AjBool | | RETURN | ajTrue for a protein sequence set. |
Input
Returns
| AjBool: | ajTrue for a protein sequence set. |
Description
Tests whether a sequence set is protein.
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a sequence set is RNA.
Synopsis
Prototype
AjBool ajSeqsetIsRna (
const AjPSeqset seq
);
| Type | Name | Read/Write | Description |
| const AjPSeqset | seq | Input | Sequence set |
| AjBool | | RETURN | ajTrue for a nucleotide sequence set. |
Input
Returns
| AjBool: | ajTrue for a nucleotide sequence set. |
Description
Tests whether a sequence set is RNA.
See Also
See other functions in this section
Availability
In release 6.4.0
sequence strings
Sections: conversion
Convert sequence to numbers for efficient processing
Functions: ajSeqstrConvertNum
Converts a string of sequence characters to numbers using
a conversion table.
Synopsis
Prototype
AjBool ajSeqstrConvertNum (
const AjPStr seq,
const AjPSeqCvt cvt,
AjPStr* Pnumseq
);
| Type | Name | Read/Write | Description |
| const AjPStr | seq | Input | Sequence as a string |
| const AjPSeqCvt | cvt | Input | Conversion table. |
| AjPStr* | Pnumseq | Output | Output numeric version of the sequence. |
| AjBool | | RETURN | ajTrue on success. |
Input
| seq: | (Input) | Sequence as a string |
| cvt: | (Input) | Conversion table. |
Output
| Pnumseq: | (Output) | Output numeric version of the sequence. |
Returns
| AjBool: | ajTrue on success. |
Description
Converts a string of sequence characters to numbers using
a conversion table.
See Also
See other functions in this section
Availability
In release 6.4.0
sequence conversion
Sections: Sequence Conversion Functions constructors Sequence Destructors element retrieval
Functions: ajSeqcvtTrace
Traces a conversion table with debug calls.
Synopsis
Prototype
void ajSeqcvtTrace (
const AjPSeqCvt cvt
);
| Type | Name | Read/Write | Description |
| const AjPSeqCvt | cvt | Input | Conversion table. |
| void | | RETURN | |
Input
| cvt: | (Input) | Conversion table. |
Returns
Description
Traces a conversion table with debug calls.
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajSeqcvtNewC ajSeqcvtNewEndC ajSeqcvtNewNumberC ajSeqcvtNewStr ajSeqcvtNewStrAsym
Generates a new conversion table in which the first character in the
string provided is converted to 1, the second to 2, and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are set to zero.
Synopsis
Prototype
AjPSeqCvt ajSeqcvtNewC (
const char* bases
);
| Type | Name | Read/Write | Description |
| const char* | bases | Input | Allowed sequence characters. |
| AjPSeqCvt | | RETURN | Conversion table. |
Input
| bases: | (Input) | Allowed sequence characters. |
Returns
| AjPSeqCvt: | Conversion table. |
Description
Generates a new conversion table in which the first character in the
string provided is converted to 1, the second to 2, and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are set to zero.
See Also
See other functions in this section
Availability
In release 6.4.0
Generates a new conversion table in which the first character in the
string provided is converted to 0, the second to 1, and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are converted to one more than the highest char.
Synopsis
Prototype
AjPSeqCvt ajSeqcvtNewEndC (
const char* bases
);
| Type | Name | Read/Write | Description |
| const char* | bases | Input | Allowed sequence characters. |
| AjPSeqCvt | | RETURN | Conversion table. |
Input
| bases: | (Input) | Allowed sequence characters. |
Returns
| AjPSeqCvt: | Conversion table. |
Description
Generates a new conversion table in which the first character in the
string provided is converted to 0, the second to 1, and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are converted to one more than the highest char.
See Also
See other functions in this section
Availability
In release 6.4.0
Generates a new conversion table in which the characters are retained
as upper case, numbers are set to -1 and all other characters
are set to -2.
Synopsis
Prototype
AjPSeqCvt ajSeqcvtNewNumberC (
const char* bases
);
| Type | Name | Read/Write | Description |
| const char* | bases | Input | Allowed sequence characters. |
| AjPSeqCvt | | RETURN | Conversion table. |
Input
| bases: | (Input) | Allowed sequence characters. |
Returns
| AjPSeqCvt: | Conversion table. |
Description
Generates a new conversion table in which the characters are retained
as upper case, numbers are set to -1 and all other characters
are set to -2.
See Also
See other functions in this section
Availability
In release 6.4.0
Generates a new conversion table in which the first character of the first
string in the array provided is converted to 1, the first character of the
second string is converted to 2, the first character of the third string is
converted to 3 and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are set to zero.
Synopsis
Prototype
AjPSeqCvt ajSeqcvtNewStr (
const AjPPStr basearray,
ajint numbases
);
| Type | Name | Read/Write | Description |
| const AjPPStr | basearray | Input | Allowed sequence character strings
(size specified by parameter n) |
| ajint | numbases | Input | Number of strings |
| AjPSeqCvt | | RETURN | Conversion table. |
Input
| basearray: | (Input) | Allowed sequence character strings
(size specified by parameter n) |
| numbases: | (Input) | Number of strings |
Returns
| AjPSeqCvt: | Conversion table. |
Description
Generates a new conversion table in which the first character of the first
string in the array provided is converted to 1, the first character of the
second string is converted to 2, the first character of the third string is
converted to 3 and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are set to zero.
See Also
See other functions in this section
Availability
In release 6.4.0
Generates a new conversion table in which the first character of the first
string in the array provided is converted to 1, the first character of the
second string is converted to 2, the first character of the third string is
converted to 3 and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are set to zero.
For use with asymmetrical matrices.
Synopsis
Prototype
AjPSeqCvt ajSeqcvtNewStrAsym (
const AjPPStr basearray,
ajint numbases,
const AjPPStr matchbases,
ajint nummatch
);
| Type | Name | Read/Write | Description |
| const AjPPStr | basearray | Input | Allowed sequence character strings
(size specified by parameter n) |
| ajint | numbases | Input | Number of strings |
| const AjPPStr | matchbases | Input | Allowed sequence character strings for
rows (size specified by parameter rn) |
| ajint | nummatch | Input | Number of strings (rows) |
| AjPSeqCvt | | RETURN | Conversion table. |
Input
| basearray: | (Input) | Allowed sequence character strings
(size specified by parameter n) |
| numbases: | (Input) | Number of strings |
| matchbases: | (Input) | Allowed sequence character strings for
rows (size specified by parameter rn) |
| nummatch: | (Input) | Number of strings (rows) |
Returns
| AjPSeqCvt: | Conversion table. |
Description
Generates a new conversion table in which the first character of the first
string in the array provided is converted to 1, the first character of the
second string is converted to 2, the first character of the third string is
converted to 3 and so on.
Upper and lower case characters are converted to the same numbers.
All other characters are set to zero.
For use with asymmetrical matrices.
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the sequence.
Functions: ajSeqcvtDel
Delete a conversion table
Synopsis
Prototype
void ajSeqcvtDel (
AjPSeqCvt* Pcvt
);
| Type | Name | Read/Write | Description |
| AjPSeqCvt* | Pcvt | Output | Conversion table reference |
| void | | RETURN | |
Output
| Pcvt: | (Output) | Conversion table reference |
Returns
Description
Delete a conversion table
See Also
See other functions in this section
Availability
In release 6.4.0
These functions use the contents of a sequence conversion object
Functions: ajSeqcvtGetCodeK ajSeqcvtGetCodeS ajSeqcvtGetCodeAsymS ajSeqcvtGetCodeAsymrowS ajSeqcvtGetLen
Returns the integer code corresponding to a sequence character
in a conversion table
Synopsis
Prototype
ajint ajSeqcvtGetCodeK (
const AjPSeqCvt cvt,
char ch
);
| Type | Name | Read/Write | Description |
| const AjPSeqCvt | cvt | Input | Conversion table |
| char | ch | Input | Sequence character |
| ajint | | RETURN | Conversion code |
Input
| cvt: | (Input) | Conversion table |
| ch: | (Input) | Sequence character |
Returns
Description
Returns the integer code corresponding to a sequence character
in a conversion table
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the integer code corresponding to a sequence character string
in a conversion table (for rows in asymmetrical matrices).
Synopsis
Prototype
ajint ajSeqcvtGetCodeS (
const AjPSeqCvt cvt,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| const AjPSeqCvt | cvt | Input | Conversion table |
| const AjPStr | str | Input | Sequence character string |
| ajint | | RETURN | Conversion code |
Input
| cvt: | (Input) | Conversion table |
| str: | (Input) | Sequence character string |
Returns
Description
Returns the integer code corresponding to a sequence character string
in a conversion table (for rows in asymmetrical matrices).
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the integer code corresponding to a sequence character string
in a conversion table (for columns in asymmetrical matrices).
Synopsis
Prototype
ajint ajSeqcvtGetCodeAsymS (
const AjPSeqCvt cvt,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| const AjPSeqCvt | cvt | Input | Conversion table |
| const AjPStr | str | Input | Sequence character string |
| ajint | | RETURN | Conversion code |
Input
| cvt: | (Input) | Conversion table |
| str: | (Input) | Sequence character string |
Returns
Description
Returns the integer code corresponding to a sequence character string
in a conversion table (for columns in asymmetrical matrices).
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the integer code corresponding to a sequence character string
in a conversion table (for rows in asymmetrical matrices).
Synopsis
Prototype
ajint ajSeqcvtGetCodeAsymrowS (
const AjPSeqCvt cvt,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| const AjPSeqCvt | cvt | Input | Conversion table |
| const AjPStr | str | Input | Sequence character string |
| ajint | | RETURN | Conversion code |
Input
| cvt: | (Input) | Conversion table |
| str: | (Input) | Sequence character string |
Returns
Description
Returns the integer code corresponding to a sequence character string
in a conversion table (for rows in asymmetrical matrices).
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the length of a conversion table string (number of sequence
characters explicitly included)
Synopsis
Prototype
ajuint ajSeqcvtGetLen (
const AjPSeqCvt cvt
);
| Type | Name | Read/Write | Description |
| const AjPSeqCvt | cvt | Input | Conversion table |
| ajuint | | RETURN | Length |
Input
| cvt: | (Input) | Conversion table |
Returns
Description
Returns the length of a conversion table string (number of sequence
characters explicitly included)
See Also
See other functions in this section
Availability
In release 6.4.0
sequence dates
Sections: sequence date constructors destructors modifiers
Functions: ajSeqdateNew ajSeqdateNewDate
Constructor for empty sequence date object
Synopsis
Prototype
AjPSeqDate ajSeqdateNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqDate | | RETURN | Empty sequence date object |
Returns
| AjPSeqDate: | Empty sequence date object |
Description
Constructor for empty sequence date object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a sequence date object
Synopsis
Prototype
AjPSeqDate ajSeqdateNewDate (
const AjPSeqDate date
);
| Type | Name | Read/Write | Description |
| const AjPSeqDate | date | Input | Sequence date object |
| AjPSeqDate | | RETURN | Empty sequence date object |
Input
| date: | (Input) | Sequence date object |
Returns
| AjPSeqDate: | Empty sequence date object |
Description
Constructor for copy of a sequence date object
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the sequence.
Functions: ajSeqdateDel
Deletes a sequence date object.
Synopsis
Prototype
void ajSeqdateDel (
AjPSeqDate* Pdate
);
| Type | Name | Read/Write | Description |
| AjPSeqDate* | Pdate | Delete | Sequence date object |
| void | | RETURN | |
Output
| Pdate: | (Delete) | Sequence date object |
Returns
Description
Deletes a sequence date object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions update contents of a sequence date object.
Functions: ajSeqdateClear ajSeqdateSetCreateS ajSeqdateSetModifyS ajSeqdateSetModseqS
Resets all data for a sequence date object.
Synopsis
Prototype
void ajSeqdateClear (
AjPSeqDate date
);
| Type | Name | Read/Write | Description |
| AjPSeqDate | date | Modify | Sequence date object |
| void | | RETURN | |
Input & Output
| date: | (Modify) | Sequence date object |
Returns
Description
Resets all data for a sequence date object.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the sequence creation date
Synopsis
Prototype
AjBool ajSeqdateSetCreateS (
AjPSeqDate date,
const AjPStr datestr
);
| Type | Name | Read/Write | Description |
| AjPSeqDate | date | Output | Sequence date |
| const AjPStr | datestr | Input | Date string |
| AjBool | | RETURN | ajTrue on success |
Input
| datestr: | (Input) | Date string |
Output
| date: | (Output) | Sequence date |
Returns
Description
Set the sequence creation date
See Also
See other functions in this section
Availability
In release 6.4.0
Set the entry modification date
Synopsis
Prototype
AjBool ajSeqdateSetModifyS (
AjPSeqDate date,
const AjPStr datestr
);
| Type | Name | Read/Write | Description |
| AjPSeqDate | date | Output | Sequence date |
| const AjPStr | datestr | Input | Date string |
| AjBool | | RETURN | ajTrue on success |
Input
| datestr: | (Input) | Date string |
Output
| date: | (Output) | Sequence date |
Returns
Description
Set the entry modification date
See Also
See other functions in this section
Availability
In release 6.4.0
Set the sequence modification date
Synopsis
Prototype
AjBool ajSeqdateSetModseqS (
AjPSeqDate date,
const AjPStr datestr
);
| Type | Name | Read/Write | Description |
| AjPSeqDate | date | Output | Sequence date |
| const AjPStr | datestr | Input | Date string |
| AjBool | | RETURN | ajTrue on success |
Input
| datestr: | (Input) | Date string |
Output
| date: | (Output) | Sequence date |
Returns
Description
Set the sequence modification date
See Also
See other functions in this section
Availability
In release 6.4.0
sequence descriptions
Sections: descriptions constructors destructors modifiers
Functions: ajSeqdescNew ajSeqdescNewDesc
Constructor for empty description object
Synopsis
Prototype
AjPSeqDesc ajSeqdescNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqDesc | | RETURN | Empty sequence description object |
Returns
| AjPSeqDesc: | Empty sequence description object |
Description
Constructor for empty description object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a description object
Synopsis
Prototype
AjPSeqDesc ajSeqdescNewDesc (
const AjPSeqDesc desc
);
| Type | Name | Read/Write | Description |
| const AjPSeqDesc | desc | Input | Description object |
| AjPSeqDesc | | RETURN | Copied description object |
Input
| desc: | (Input) | Description object |
Returns
| AjPSeqDesc: | Copied description object |
Description
Constructor for copy of a description object
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for a description object
Functions: ajSeqdescDel
Deletes a description object.
Synopsis
Prototype
void ajSeqdescDel (
AjPSeqDesc* Pdesc
);
| Type | Name | Read/Write | Description |
| AjPSeqDesc* | Pdesc | Delete | Description object |
| void | | RETURN | |
Output
| Pdesc: | (Delete) | Description object |
Returns
Description
Deletes a description object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions update contents of a description object.
Functions: ajSeqdescAppendName ajSeqdescClear ajSeqdescSetName
Append to the name of a description
Synopsis
Prototype
AjBool ajSeqdescAppendName (
AjPSeqDesc desc,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqDesc | desc | Modify | Description object |
| const AjPStr | str | Input | Name string |
| AjBool | | RETURN | True on success |
Input
Input & Output
| desc: | (Modify) | Description object |
Returns
Description
Append to the name of a description
See Also
See other functions in this section
Availability
In release 6.4.0
Resets data for a description object.
Synopsis
Prototype
void ajSeqdescClear (
AjPSeqDesc desc
);
| Type | Name | Read/Write | Description |
| AjPSeqDesc | desc | Modify | Description object |
| void | | RETURN | |
Input & Output
| desc: | (Modify) | Description object |
Returns
Description
Resets data for a description object.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the name of a description object
Synopsis
Prototype
AjBool ajSeqdescSetName (
AjPSeqDesc desc,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqDesc | desc | Modify | Description object |
| const AjPStr | str | Input | Synonyms string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Synonyms string |
Input & Output
| desc: | (Modify) | Description object |
Returns
Description
Set the name of a description object
See Also
See other functions in this section
Availability
In release 6.4.0
Description list operations
Sections: Description list operations
Manipulating lists of descriptions
Functions: ajSeqdesclistClone
Copy a list of genes to another list
Synopsis
Prototype
AjBool ajSeqdesclistClone (
const AjPList src,
AjPList dest
);
| Type | Name | Read/Write | Description |
| const AjPList | src | Input | Source list of descriptions |
| AjPList | dest | Output | Destination list of descriptions |
| AjBool | | RETURN | True on success |
Input
| src: | (Input) | Source list of descriptions |
Output
| dest: | (Output) | Destination list of descriptions |
Returns
Description
Copy a list of genes to another list
See Also
See other functions in this section
Availability
In release 6.4.0
sequence sub-descriptions
Sections: sub-descriptions constructors destructors modifiers
Functions: ajSeqsubdescNew ajSeqsubdescNewSubdesc
Constructor for empty sub-description object
Synopsis
Prototype
AjPSeqSubdesc ajSeqsubdescNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqSubdesc | | RETURN | Empty sequence sub-description object |
Returns
| AjPSeqSubdesc: | Empty sequence sub-description object |
Description
Constructor for empty sub-description object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a sub-description object
Synopsis
Prototype
AjPSeqSubdesc ajSeqsubdescNewSubdesc (
const AjPSeqSubdesc desc
);
| Type | Name | Read/Write | Description |
| const AjPSeqSubdesc | desc | Input | Sub-description object |
| AjPSeqSubdesc | | RETURN | Copied sub-description object |
Input
| desc: | (Input) | Sub-description object |
Returns
| AjPSeqSubdesc: | Copied sub-description object |
Description
Constructor for copy of a sub-description object
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for a sub-description object
Functions: ajSeqsubdescDel
Deletes a sub-description object.
Synopsis
Prototype
void ajSeqsubdescDel (
AjPSeqSubdesc* Pdesc
);
| Type | Name | Read/Write | Description |
| AjPSeqSubdesc* | Pdesc | Delete | Sub-description object |
| void | | RETURN | |
Output
| Pdesc: | (Delete) | Sub-description object |
Returns
Description
Deletes a sub-description object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions update contents of a sub-description object.
Functions: ajSeqsubdescAppendName ajSeqsubdescClear ajSeqsubdescSetName
Append to the name of a description
Synopsis
Prototype
AjBool ajSeqsubdescAppendName (
AjPSeqSubdesc desc,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqSubdesc | desc | Modify | Description object |
| const AjPStr | str | Input | Name string |
| AjBool | | RETURN | True on success |
Input
Input & Output
| desc: | (Modify) | Description object |
Returns
Description
Append to the name of a description
See Also
See other functions in this section
Availability
In release 6.4.0
Resets data for a sub-description object.
Synopsis
Prototype
void ajSeqsubdescClear (
AjPSeqSubdesc desc
);
| Type | Name | Read/Write | Description |
| AjPSeqSubdesc | desc | Modify | Sub-description object |
| void | | RETURN | |
Input & Output
| desc: | (Modify) | Sub-description object |
Returns
Description
Resets data for a sub-description object.
See Also
See other functions in this section
Availability
In release 6.4.0
Set the name of a sub-description object
Synopsis
Prototype
AjBool ajSeqsubdescSetName (
AjPSeqSubdesc desc,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqSubdesc | desc | Modify | Sub-description object |
| const AjPStr | str | Input | Synonyms string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Synonyms string |
Input & Output
| desc: | (Modify) | Sub-description object |
Returns
Description
Set the name of a sub-description object
See Also
See other functions in this section
Availability
In release 6.4.0
Description list operations
Sections: Description list operations
Manipulating lists of sub-descriptions
Functions: ajSeqsubdesclistClone
Copy a list of sub-descriptions to another list
Synopsis
Prototype
AjBool ajSeqsubdesclistClone (
const AjPList src,
AjPList dest
);
| Type | Name | Read/Write | Description |
| const AjPList | src | Input | Source list of sub-descriptions |
| AjPList | dest | Output | Destination list of sub-descriptions |
| AjBool | | RETURN | True on success |
Input
| src: | (Input) | Source list of sub-descriptions |
Output
| dest: | (Output) | Destination list of sub-descriptions |
Returns
Description
Copy a list of sub-descriptions to another list
See Also
See other functions in this section
Availability
In release 6.4.0
gene names
Sections: gene names constructors destructors modifiers
Functions: ajSeqgeneNew ajSeqgeneNewGene ajSeqgeneNewName
Constructor for empty gene object
Synopsis
Prototype
AjPSeqGene ajSeqgeneNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | | RETURN | Empty sequence gene object |
Returns
| AjPSeqGene: | Empty sequence gene object |
Description
Constructor for empty gene object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a gene object
Synopsis
Prototype
AjPSeqGene ajSeqgeneNewGene (
const AjPSeqGene gene
);
| Type | Name | Read/Write | Description |
| const AjPSeqGene | gene | Input | Gene object |
| AjPSeqGene | | RETURN | Copied gene object |
Input
Returns
| AjPSeqGene: | Copied gene object |
Description
Constructor for copy of a gene object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for gene with given name
Synopsis
Prototype
AjPSeqGene ajSeqgeneNewName (
const AjPStr str
);
| Type | Name | Read/Write | Description |
| const AjPStr | str | Input | Gene name |
| AjPSeqGene | | RETURN | New gene object |
Input
Returns
| AjPSeqGene: | New gene object |
Description
Constructor for gene with given name
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for a gene object
Functions: ajSeqgeneDel
Deletes a gene object.
Synopsis
Prototype
void ajSeqgeneDel (
AjPSeqGene* Pgene
);
| Type | Name | Read/Write | Description |
| AjPSeqGene* | Pgene | Delete | Gene object |
| void | | RETURN | |
Output
| Pgene: | (Delete) | Gene object |
Returns
Description
Deletes a gene object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions update contents of a gene object.
Functions: ajSeqgeneAppendName ajSeqgeneAppendOln ajSeqgeneAppendOrf ajSeqgeneAppendSynonyms ajSeqgeneSetName ajSeqgeneSetOln ajSeqgeneSetOrf ajSeqgeneSetSynonyms
Append to the name of a gene
Synopsis
Prototype
AjBool ajSeqgeneAppendName (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | Name string |
| AjBool | | RETURN | True on success |
Input
Input & Output
Returns
Description
Append to the name of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Append to ordered locus names of a gene
Synopsis
Prototype
AjBool ajSeqgeneAppendOln (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | Ordered locus names string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Ordered locus names string |
Input & Output
Returns
Description
Append to ordered locus names of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the ORF name of a gene
Synopsis
Prototype
AjBool ajSeqgeneAppendOrf (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | ORF name string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | ORF name string |
Input & Output
Returns
Description
Append to the ORF name of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the name of a gene
Synopsis
Prototype
AjBool ajSeqgeneAppendSynonyms (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | Synonyms string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Synonyms string |
Input & Output
Returns
Description
Append to the name of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Set the name of a gene
Synopsis
Prototype
AjBool ajSeqgeneSetName (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | Name string |
| AjBool | | RETURN | True on success |
Input
Input & Output
Returns
Description
Set the name of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Set the ordered locus names of a gene
Synopsis
Prototype
AjBool ajSeqgeneSetOln (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | Ordered locus names string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Ordered locus names string |
Input & Output
Returns
Description
Set the ordered locus names of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Set the ORF name of a gene
Synopsis
Prototype
AjBool ajSeqgeneSetOrf (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | ORF name string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | ORF name string |
Input & Output
Returns
Description
Set the ORF name of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Set the name of a gene
Synopsis
Prototype
AjBool ajSeqgeneSetSynonyms (
AjPSeqGene gene,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqGene | gene | Modify | Gene object |
| const AjPStr | str | Input | Synonyms string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Synonyms string |
Input & Output
Returns
Description
Set the name of a gene
See Also
See other functions in this section
Availability
In release 6.4.0
Reference list operations
Sections: Reference list operations
Manipulating lists of genes
Functions: ajSeqgenelistClone
Copy a list of genes to another list
Synopsis
Prototype
AjBool ajSeqgenelistClone (
const AjPList src,
AjPList dest
);
| Type | Name | Read/Write | Description |
| const AjPList | src | Input | Source list of genes |
| AjPList | dest | Output | Destination list of genes |
| AjBool | | RETURN | True on success |
Input
| src: | (Input) | Source list of genes |
Output
| dest: | (Output) | Destination list of genes |
Returns
Description
Copy a list of genes to another list
See Also
See other functions in this section
Availability
In release 6.4.0
sequence citations
Sections: sequence cross-reference constructors destructors
Functions: ajSeqxrefNew ajSeqxrefNewDbC ajSeqxrefNewDbS ajSeqxrefNewRef
Constructor for empty sequence citation object
Synopsis
Prototype
AjPSeqXref ajSeqxrefNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqXref | | RETURN | Empty sequence cross-reference object |
Returns
| AjPSeqXref: | Empty sequence cross-reference object |
Description
Constructor for empty sequence citation object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a sequence citation object
Synopsis
Prototype
AjPSeqXref ajSeqxrefNewDbC (
const AjPStr id,
const char* db,
ajuint reftype
);
| Type | Name | Read/Write | Description |
| const AjPStr | id | Input | Primary identifier |
| const char* | db | Input | Database name |
| ajuint | reftype | Input | Reference type |
| AjPSeqXref | | RETURN | New sequence cross-reference object |
Input
| id: | (Input) | Primary identifier |
| db: | (Input) | Database name |
| reftype: | (Input) | Reference type |
Returns
| AjPSeqXref: | New sequence cross-reference object |
Description
Constructor for copy of a sequence citation object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a sequence citation object
Synopsis
Prototype
AjPSeqXref ajSeqxrefNewDbS (
const AjPStr id,
const AjPStr db,
ajuint reftype
);
| Type | Name | Read/Write | Description |
| const AjPStr | id | Input | Primary identifier |
| const AjPStr | db | Input | Database name |
| ajuint | reftype | Input | Reference type |
| AjPSeqXref | | RETURN | New sequence cross-reference object |
Input
| id: | (Input) | Primary identifier |
| db: | (Input) | Database name |
| reftype: | (Input) | Reference type |
Returns
| AjPSeqXref: | New sequence cross-reference object |
Description
Constructor for copy of a sequence citation object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a sequence citation object
Synopsis
Prototype
AjPSeqXref ajSeqxrefNewRef (
const AjPSeqXref xref
);
| Type | Name | Read/Write | Description |
| const AjPSeqXref | xref | Input | Sequence cross-reference object |
| AjPSeqXref | | RETURN | Copied sequence cross-reference object |
Input
| xref: | (Input) | Sequence cross-reference object |
Returns
| AjPSeqXref: | Copied sequence cross-reference object |
Description
Constructor for copy of a sequence citation object
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the sequence cross-reference
Functions: ajSeqxrefDel
Deletes a sequence cross-reference object.
Synopsis
Prototype
void ajSeqxrefDel (
AjPSeqXref* Pxref
);
| Type | Name | Read/Write | Description |
| AjPSeqXref* | Pxref | Delete | Sequence cross-reference object |
| void | | RETURN | |
Output
| Pxref: | (Delete) | Sequence cross-reference object |
Returns
Description
Deletes a sequence cross-reference object.
See Also
See other functions in this section
Availability
In release 6.4.0
Cross-reference list operations
Sections: Reference list operations
Manipulating lists of sequence cross-references
Functions: ajSeqxreflistClone
Copy a list of cross-references to another list
Synopsis
Prototype
AjBool ajSeqxreflistClone (
const AjPList src,
AjPList dest
);
| Type | Name | Read/Write | Description |
| const AjPList | src | Input | Source list of cross-references |
| AjPList | dest | Output | Destination list of cross-references |
| AjBool | | RETURN | True on success |
Input
| src: | (Input) | Source list of cross-references |
Output
| dest: | (Output) | Destination list of cross-references |
Returns
Description
Copy a list of cross-references to another list
See Also
See other functions in this section
Availability
In release 6.4.0
Sort a list of cross-references
Synopsis
Prototype
AjBool ajSeqxreflistSort (
AjPList list
);
| Type | Name | Read/Write | Description |
| AjPList | list | Modify | Source list of cross-references |
| AjBool | | RETURN | True on success |
Input & Output
| list: | (Modify) | Source list of cross-references |
Returns
Description
Sort a list of cross-references
See Also
See other functions in this section
Availability
In release 6.4.0
sequence citations
Sections: sequence citation constructors destructors modifiers
Functions: ajSeqrefNew ajSeqrefNewRef
Constructor for empty sequence citation object
Synopsis
Prototype
AjPSeqRef ajSeqrefNew (
void
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | | RETURN | Empty sequence citation object |
Returns
| AjPSeqRef: | Empty sequence citation object |
Description
Constructor for empty sequence citation object
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for copy of a sequence citation object
Synopsis
Prototype
AjPSeqRef ajSeqrefNewRef (
const AjPSeqRef ref
);
| Type | Name | Read/Write | Description |
| const AjPSeqRef | ref | Input | Sequence citation object |
| AjPSeqRef | | RETURN | Copied sequence citation object |
Input
| ref: | (Input) | Sequence citation object |
Returns
| AjPSeqRef: | Copied sequence citation object |
Description
Constructor for copy of a sequence citation object
See Also
See other functions in this section
Availability
In release 6.4.0
Destruction destroys all internal data structures and frees the
memory allocated for the sequence citation
Functions: ajSeqrefDel
Deletes a sequence citation object.
Synopsis
Prototype
void ajSeqrefDel (
AjPSeqRef* Pref
);
| Type | Name | Read/Write | Description |
| AjPSeqRef* | Pref | Delete | Sequence citation object |
| void | | RETURN | |
Output
| Pref: | (Delete) | Sequence citation object |
Returns
Description
Deletes a sequence citation object.
See Also
See other functions in this section
Availability
In release 6.4.0
These functions update contents of a sequence citation object.
Functions: ajSeqrefAppendAuthors ajSeqrefAppendComment ajSeqrefAppendGroupname ajSeqrefAppendLocation ajSeqrefAppendPosition ajSeqrefAppendTitle ajSeqrefAppendXref ajSeqrefFmtAuthorsEmbl ajSeqrefFmtAuthorsGb ajSeqrefFmtLocationEmbl ajSeqrefFmtLocationGb ajSeqrefFmtTitleGb ajSeqrefSetAuthors ajSeqrefSetComment ajSeqrefSetGroupname ajSeqrefSetLocation ajSeqrefSetLoctype ajSeqrefSetPosition ajSeqrefSetTitle ajSeqrefSetXref ajSeqrefSetnumNumber ajSeqrefStandard
Append to the Authors string of a citation
Synopsis
Prototype
AjBool ajSeqrefAppendAuthors (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Authors string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Authors string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Append to the Authors string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the Comment string of a citation
Synopsis
Prototype
AjBool ajSeqrefAppendComment (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Comment string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Comment string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Append to the Comment string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the group name string of a citation
Synopsis
Prototype
AjBool ajSeqrefAppendGroupname (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Group name string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Group name string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Append to the group name string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the location string of a citation
Synopsis
Prototype
AjBool ajSeqrefAppendLocation (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Location string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Location string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Append to the location string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the position string of a citation
Synopsis
Prototype
AjBool ajSeqrefAppendPosition (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Position string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Position string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Append to the position string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the title string of a citation
Synopsis
Prototype
AjBool ajSeqrefAppendTitle (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Title string |
| AjBool | | RETURN | True on success |
Input
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Append to the title string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Append to the Cross reference string of a citation
Synopsis
Prototype
AjBool ajSeqrefAppendXref (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Xref string |
| AjBool | | RETURN | True on success |
Input
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Append to the Cross reference string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Return the Authors string of a citation in EMBL format
Synopsis
Prototype
AjBool ajSeqrefFmtAuthorsEmbl (
const AjPSeqRef ref,
AjPStr* Pdest
);
| Type | Name | Read/Write | Description |
| const AjPSeqRef | ref | Input | Sequence citation object |
| AjPStr* | Pdest | Output | Authors string in EMBL format |
| AjBool | | RETURN | True if author list exists |
Input
| ref: | (Input) | Sequence citation object |
Output
| Pdest: | (Output) | Authors string in EMBL format |
Returns
| AjBool: | True if author list exists |
Description
Return the Authors string of a citation in EMBL format
See Also
See other functions in this section
Availability
In release 6.4.0
Return the Authors string of a citation in Genbank format
Synopsis
Prototype
AjBool ajSeqrefFmtAuthorsGb (
const AjPSeqRef ref,
AjPStr* Pdest
);
| Type | Name | Read/Write | Description |
| const AjPSeqRef | ref | Input | Sequence citation object |
| AjPStr* | Pdest | Output | Authors string in Genbank format |
| AjBool | | RETURN | True if author list exists |
Input
| ref: | (Input) | Sequence citation object |
Output
| Pdest: | (Output) | Authors string in Genbank format |
Returns
| AjBool: | True if author list exists |
Description
Return the Authors string of a citation in Genbank format
See Also
See other functions in this section
Availability
In release 6.4.0
Return the location string of a citation in EMBL format
Synopsis
Prototype
AjBool ajSeqrefFmtLocationEmbl (
const AjPSeqRef ref,
AjPStr* Pdest
);
| Type | Name | Read/Write | Description |
| const AjPSeqRef | ref | Input | Sequence citation object |
| AjPStr* | Pdest | Output | Authors string in EMBL format |
| AjBool | | RETURN | True if author list exists |
Input
| ref: | (Input) | Sequence citation object |
Output
| Pdest: | (Output) | Authors string in EMBL format |
Returns
| AjBool: | True if author list exists |
Description
Return the location string of a citation in EMBL format
See Also
See other functions in this section
Availability
In release 6.4.0
Return the location string of a citation in Genbank format
Synopsis
Prototype
AjBool ajSeqrefFmtLocationGb (
const AjPSeqRef ref,
AjPStr* Pdest
);
| Type | Name | Read/Write | Description |
| const AjPSeqRef | ref | Input | Sequence citation object |
| AjPStr* | Pdest | Output | Authors string in Genbank format |
| AjBool | | RETURN | True if author list exists |
Input
| ref: | (Input) | Sequence citation object |
Output
| Pdest: | (Output) | Authors string in Genbank format |
Returns
| AjBool: | True if author list exists |
Description
Return the location string of a citation in Genbank format
See Also
See other functions in this section
Availability
In release 6.4.0
Return the title string of a citation in Genbank format
Synopsis
Prototype
AjBool ajSeqrefFmtTitleGb (
const AjPSeqRef ref,
AjPStr* Pdest
);
| Type | Name | Read/Write | Description |
| const AjPSeqRef | ref | Input | Sequence citation object |
| AjPStr* | Pdest | Output | Authors string in Genbank format |
| AjBool | | RETURN | True if author list exists |
Input
| ref: | (Input) | Sequence citation object |
Output
| Pdest: | (Output) | Authors string in Genbank format |
Returns
| AjBool: | True if author list exists |
Description
Return the title string of a citation in Genbank format
See Also
See other functions in this section
Availability
In release 6.4.0
Set the Authors string of a citation
Synopsis
Prototype
AjBool ajSeqrefSetAuthors (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Authors string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Authors string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the Authors string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Set the Comment string of a citation
Synopsis
Prototype
AjBool ajSeqrefSetComment (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Comment string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Comment string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the Comment string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Set the group name string of a citation
Synopsis
Prototype
AjBool ajSeqrefSetGroupname (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Groupname string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Groupname string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the group name string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Set the location string of a citation
Synopsis
Prototype
AjBool ajSeqrefSetLocation (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Location string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Location string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the location string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Set the location type of a citation
Synopsis
Prototype
AjBool ajSeqrefSetLoctype (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Location string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | Location string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the location type of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Set the position string of a citation
Synopsis
Prototype
AjBool ajSeqrefSetPosition (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | pPosition string |
| AjBool | | RETURN | True on success |
Input
| str: | (Input) | pPosition string |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the position string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Set the title string of a citation
Synopsis
Prototype
AjBool ajSeqrefSetTitle (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Title string |
| AjBool | | RETURN | True on success |
Input
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the title string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Set the cross reference string of a citation
Synopsis
Prototype
AjBool ajSeqrefSetXref (
AjPSeqRef ref,
const AjPStr str
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| const AjPStr | str | Input | Xref string |
| AjBool | | RETURN | True on success |
Input
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Set the cross reference string of a citation
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the citation number
Synopsis
Prototype
AjBool ajSeqrefSetnumNumber (
AjPSeqRef ref,
ajuint num
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| ajuint | num | Input | Citation number |
| AjBool | | RETURN | True on success |
Input
| num: | (Input) | Citation number |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Sets the citation number
See Also
See other functions in this section
Availability
In release 6.4.0
Standardise internal representation of a sequence reference
Synopsis
Prototype
AjBool ajSeqrefStandard (
AjPSeqRef ref
);
| Type | Name | Read/Write | Description |
| AjPSeqRef | ref | Modify | Sequence citation object |
| AjBool | | RETURN | True on success |
Input & Output
| ref: | (Modify) | Sequence citation object |
Returns
Description
Standardise internal representation of a sequence reference
See Also
See other functions in this section
Availability
In release 6.4.0
Reference list operations
Sections: Reference list operations element retrieval
Manipulating lists of sequence citations
Functions: ajSeqreflistClone
Copy a list of citations to another list
Synopsis
Prototype
AjBool ajSeqreflistClone (
const AjPList src,
AjPList dest
);
| Type | Name | Read/Write | Description |
| const AjPList | src | Input | Source list of citations |
| AjPList | dest | Output | Destination list of citations |
| AjBool | | RETURN | True on success |
Input
| src: | (Input) | Source list of citations |
Output
| dest: | (Output) | Destination list of citations |
Returns
Description
Copy a list of citations to another list
See Also
See other functions in this section
Availability
In release 6.4.0
These functions return contents of a list of sequence cross-reference
objects.
Functions: ajSeqreflistGetXrefs
Copy a cross-reference list
Synopsis
Prototype
ajuint ajSeqreflistGetXrefs (
const AjPList src,
AjPList* Plist
);
| Type | Name | Read/Write | Description |
| const AjPList | src | Input | Source cross-reference list |
| AjPList* | Plist | Output | Target list,
created if it does not already exist |
| ajuint | | RETURN | number of cross-references copied |
Input
| src: | (Input) | Source cross-reference list |
Output
| Plist: | (Output) | Target list,
created if it does not already exist |
Returns
| ajuint: | number of cross-references copied |
Description
Copy a cross-reference list
See Also
See other functions in this section
Availability
In release 6.4.0
string tests
Sections: string tests
Functions: ajSeqtestIsAccession ajSeqtestIsSeqversion
Tests whether a string is a potential sequence accession number.
The current definition is one or two alpha characters,
then a possible underscore (for REFSEQ accessions),
followed by a string of digits and a minimum length of 6.
Revised for new Swiss-Prot accession number format AnXXXn
Synopsis
Prototype
AjBool ajSeqtestIsAccession (
const AjPStr str
);
| Type | Name | Read/Write | Description |
| const AjPStr | str | Input | String to be tested |
| AjBool | | RETURN | ajTrue if the string is a possible accession number. |
Input
| str: | (Input) | String to be tested |
Returns
| AjBool: | ajTrue if the string is a possible accession number. |
Description
Tests whether a string is a potential sequence accession number.
The current definition is one or two alpha characters,
then a possible underscore (for REFSEQ accessions),
followed by a string of digits and a minimum length of 6.
Revised for new Swiss-Prot accession number format AnXXXn
See Also
See other functions in this section
Availability
In release 6.4.0
Tests whether a string is a potential sequence version number.
The current definition is an accession number, followed by a dot and
a number.
Revised for new Swiss-Prot accession number format AnXXXn
Revised for REFSEQ accession number format NM_nnnnnn
Revised for protein ID format XXXnnnnnn.nnn
Synopsis
Prototype
const AjPStr ajSeqtestIsSeqversion (
const AjPStr str
);
| Type | Name | Read/Write | Description |
| const AjPStr | str | Input | String to be tested |
| const AjPStr | | RETURN | accession number part of the string if successful |
Input
| str: | (Input) | String to be tested |
Returns
| const AjPStr: | accession number part of the string if successful |
Description
Tests whether a string is a potential sequence version number.
The current definition is an accession number, followed by a dot and
a number.
Revised for new Swiss-Prot accession number format AnXXXn
Revised for REFSEQ accession number format NM_nnnnnn
Revised for protein ID format XXXnnnnnn.nnn
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajSeqstrCalcMolwt ajSeqstrCountGaps
Calculates the molecular weight of a protein sequence
using average molecular weights
Synopsis
Prototype
float ajSeqstrCalcMolwt (
const AjPStr seq
);
| Type | Name | Read/Write | Description |
| const AjPStr | seq | Input | Sequence |
| float | | RETURN | Molecular weight. |
Input
Returns
Description
Calculates the molecular weight of a protein sequence
using average molecular weights
See Also
See other functions in this section
Availability
In release 6.4.0
Complements but does not reverse a nucleotide sequence provided as a string.
Synopsis
Prototype
ajuint ajSeqstrCountGaps (
const AjPStr seq
);
| Type | Name | Read/Write | Description |
| const AjPStr | seq | Input | Sequence as a string. |
| ajuint | | RETURN | Number of gap characters |
Input
| seq: | (Input) | Sequence as a string. |
Returns
| ajuint: | Number of gap characters |
Description
Complements but does not reverse a nucleotide sequence provided as a string.
See Also
See other functions in this section
Availability
In release 6.4.0
Functions: ajSeqstrComplement ajSeqstrReverse
Complements but does not reverse a nucleotide sequence provided as a string.
Synopsis
Prototype
void ajSeqstrComplement (
AjPStr* Pseq
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pseq | Modify | Sequence as a string. |
| void | | RETURN | |
Input & Output
| Pseq: | (Modify) | Sequence as a string. |
Returns
Description
Complements but does not reverse a nucleotide sequence provided as a string.
See Also
See other functions in this section
Availability
In release 6.4.0
Reverses and complements a nucleotide sequence provided as a string.
Synopsis
Prototype
void ajSeqstrReverse (
AjPStr* Pseq
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pseq | Modify | Sequence as a string. |
| void | | RETURN | |
Input & Output
| Pseq: | (Modify) | Sequence as a string. |
Returns
Description
Reverses and complements a nucleotide sequence provided as a string.
See Also
See other functions in this section
Availability
In release 6.4.0
Assign values for sequence entry classes
Functions: ajSeqclsSetEmbl ajSeqclsSetGb
Sets the internal entry class for a sequence
Synopsis
Prototype
AjBool ajSeqclsSetEmbl (
AjPStr* Pcls,
const AjPStr clsembl
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pcls | Modify | Internal entry class name |
| const AjPStr | clsembl | Input | EMBL database entry class |
| AjBool | | RETURN | True if a known type |
Input
| clsembl: | (Input) | EMBL database entry class |
Input & Output
| Pcls: | (Modify) | Internal entry class name |
Returns
| AjBool: | True if a known type |
Description
Sets the internal entry class for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the internal entry class for a sequence
Synopsis
Prototype
AjBool ajSeqclsSetGb (
AjPStr* Pcls,
const AjPStr clsgb
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pcls | Modify | Internal entry class name |
| const AjPStr | clsgb | Input | Genbank database entry class |
| AjBool | | RETURN | True if a known type |
Input
| clsgb: | (Input) | Genbank database entry class |
Input & Output
| Pcls: | (Modify) | Internal entry class name |
Returns
| AjBool: | True if a known type |
Description
Sets the internal entry class for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Return values for sequence entry class
Functions: ajSeqclsGetEmbl
Returns the EMBL entry class for a sequence
Synopsis
Prototype
const char* ajSeqclsGetEmbl (
const AjPStr cls
);
| Type | Name | Read/Write | Description |
| const AjPStr | cls | Input | Internal entry class name |
| const char* | | RETURN | EMBL entry class name |
Input
| cls: | (Input) | Internal entry class name |
Returns
| const char*: | EMBL entry class name |
Description
Returns the EMBL entry class for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Assign values for sequence entry division
Functions: ajSeqdivSetEmbl ajSeqdivSetGb
Sets the internal database division for a sequence
Synopsis
Prototype
AjBool ajSeqdivSetEmbl (
AjPStr* Pdivi,
const AjPStr divembl
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pdivi | Modify | Internal database division |
| const AjPStr | divembl | Input | EMBL database division |
| AjBool | | RETURN | True if a known type |
Input
| divembl: | (Input) | EMBL database division |
Input & Output
| Pdivi: | (Modify) | Internal database division |
Returns
| AjBool: | True if a known type |
Description
Sets the internal database division for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the internal database division for a sequence
Synopsis
Prototype
AjBool ajSeqdivSetGb (
AjPStr* Pdivi,
const AjPStr divgb
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pdivi | Modify | Internal database division |
| const AjPStr | divgb | Input | Genbank database division |
| AjBool | | RETURN | True if a known type |
Input
| divgb: | (Input) | Genbank database division |
Input & Output
| Pdivi: | (Modify) | Internal database division |
Returns
| AjBool: | True if a known type |
Description
Sets the internal database division for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Return values for sequence entry division
Functions: ajSeqdivGetEmbl ajSeqdivGetGb
Returns the EMBL database division for a sequence
Synopsis
Prototype
const char* ajSeqdivGetEmbl (
const AjPStr divi
);
| Type | Name | Read/Write | Description |
| const AjPStr | divi | Input | Internal database division |
| const char* | | RETURN | EMBL database division |
Input
| divi: | (Input) | Internal database division |
Returns
| const char*: | EMBL database division |
Description
Returns the EMBL database division for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the Genbank database division for a sequence
Synopsis
Prototype
const char* ajSeqdivGetGb (
const AjPStr divi
);
| Type | Name | Read/Write | Description |
| const AjPStr | divi | Input | Internal database division |
| const char* | | RETURN | Genbank database division |
Input
| divi: | (Input) | Internal database division |
Returns
| const char*: | Genbank database division |
Description
Returns the Genbank database division for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Assign values for sequence entry molecule types
Functions: ajSeqmolSetEmbl ajSeqmolSetGb
Sets the internal molecule type for a sequence
Synopsis
Prototype
AjBool ajSeqmolSetEmbl (
AjPStr* Pmol,
const AjPStr molembl
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pmol | Modify | Sequence object |
| const AjPStr | molembl | Input | Molecule type |
| AjBool | | RETURN | True if a known type |
Input
| molembl: | (Input) | Molecule type |
Input & Output
| Pmol: | (Modify) | Sequence object |
Returns
| AjBool: | True if a known type |
Description
Sets the internal molecule type for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the internal molecule type for a sequence
Synopsis
Prototype
AjBool ajSeqmolSetGb (
AjPStr* Pmol,
const AjPStr molgb
);
| Type | Name | Read/Write | Description |
| AjPStr* | Pmol | Modify | Sequence object |
| const AjPStr | molgb | Input | Molecule type |
| AjBool | | RETURN | True if a known type |
Input
| molgb: | (Input) | Molecule type |
Input & Output
| Pmol: | (Modify) | Sequence object |
Returns
| AjBool: | True if a known type |
Description
Sets the internal molecule type for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Return values for sequence molecule type division
Functions: ajSeqmolGetEmbl ajSeqmolGetGb
Returns the EMBL molecule type for a sequence
Synopsis
Prototype
const char* ajSeqmolGetEmbl (
const AjPStr mol
);
| Type | Name | Read/Write | Description |
| const AjPStr | mol | Input | Internal molecule type |
| const char* | | RETURN | EMBL molecule type |
Input
| mol: | (Input) | Internal molecule type |
Returns
| const char*: | EMBL molecule type |
Description
Returns the EMBL molecule type for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the Genbank molecule type for a sequence
Synopsis
Prototype
const char* ajSeqmolGetGb (
const AjPStr mol
);
| Type | Name | Read/Write | Description |
| const AjPStr | mol | Input | Internal molecule type |
| const char* | | RETURN | Genbank molecule type |
Input
| mol: | (Input) | Internal molecule type |
Returns
| const char*: | Genbank molecule type |
Description
Returns the Genbank molecule type for a sequence
See Also
See other functions in this section
Availability
In release 6.4.0