ajalign.c
Defines a sequence set as an alignment. The sequences are stored internally
and may be edited by alignment processing.
Synopsis
Prototype
AjBool ajAlignDefine (
AjPAlign thys,
AjPSeqset seqset
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
AjPSeqset | seqset | Modify | Sequence set object |
AjBool | | RETURN | ajTrue on success |
Input & Output
thys: | (Modify) | Alignment object |
seqset: | (Modify) | Sequence set object |
Returns
Description
Defines a sequence set as an alignment. The sequences are stored internally
and may be edited by alignment processing.
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a sequence pair as an alignment. Either new copies of the
sequences or direct references to them are made depending on the value
of the SeqExternal attribute of the alignment object.
Synopsis
Prototype
AjBool ajAlignDefineSS (
AjPAlign thys,
const AjPSeq seqa,
const AjPSeq seqb
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPSeq | seqa | Input | Sequence object |
const AjPSeq | seqb | Input | Second sequence object |
AjBool | | RETURN | ajTrue on success |
Input
seqa: | (Input) | Sequence object |
seqb: | (Input) | Second sequence object |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines a sequence pair as an alignment. Either new copies of the
sequences or direct references to them are made depending on the value
of the SeqExternal attribute of the alignment object.
See Also
See other functions in this section
Availability
In release 6.4.0
Defines a pair of char* strings as an alignment
Synopsis
Prototype
AjBool ajAlignDefineCC (
AjPAlign thys,
const char* seqa,
const char* seqb,
const char* namea,
const char* nameb
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const char* | seqa | Input | First sequence |
const char* | seqb | Input | Second sequence |
const char* | namea | Input | Name of first sequence |
const char* | nameb | Input | Name of second sequence |
AjBool | | RETURN | ajTrue on success |
Input
seqa: | (Input) | First sequence |
seqb: | (Input) | Second sequence |
namea: | (Input) | Name of first sequence |
nameb: | (Input) | Name of second sequence |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines a pair of char* strings as an alignment
See Also
See other functions in this section
Availability
In release 6.4.0
Destructor for Alignment objects
Synopsis
Prototype
void ajAlignDel (
AjPAlign* pthys
);
Type | Name | Read/Write | Description |
AjPAlign* | pthys | Delete | Alignment object reference |
void | | RETURN | |
Output
pthys: | (Delete) | Alignment object reference |
Returns
Description
Destructor for Alignment objects
See Also
See other functions in this section
Availability
In release 6.4.0
Reset for Alignment objects
Synopsis
Prototype
void ajAlignReset (
AjPAlign thys
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Output | Alignment object reference |
void | | RETURN | |
Output
thys: | (Output) | Alignment object reference |
Returns
Description
Reset for Alignment objects
See Also
See other functions in this section
Availability
In release 6.4.0
Opens a new align file
Synopsis
Prototype
AjBool ajAlignOpen (
AjPAlign thys,
const AjPStr name
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | name | Input | File name |
AjBool | | RETURN | ajTrue on success |
Input
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Opens a new align file
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the default format for an alignment
Synopsis
Prototype
AjBool ajAlignFormatDefault (
AjPStr* pformat
);
Type | Name | Read/Write | Description |
AjPStr* | pformat | Output | Default format returned |
AjBool | | RETURN | ajTrue if format was returned |
Output
pformat: | (Output) | Default format returned |
Returns
AjBool: | ajTrue if format was returned |
Description
Sets the default format for an alignment
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the filename for an alignment. If the alignment has more than one
sub-alignment, returns the total.
Synopsis
Prototype
ajint ajAlignGetLen (
const AjPAlign thys
);
Type | Name | Read/Write | Description |
const AjPAlign | thys | Input | Alignment object. |
ajint | | RETURN | Alignment length. |
Input
thys: | (Input) | Alignment object. |
Returns
Description
Returns the filename for an alignment. If the alignment has more than one
sub-alignment, returns the total.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the filename for an alignment.
Synopsis
Prototype
const char* ajAlignGetFilename (
const AjPAlign thys
);
Type | Name | Read/Write | Description |
const AjPAlign | thys | Input | Alignment object. |
const char* | | RETURN | Filename. |
Input
thys: | (Input) | Alignment object. |
Returns
Description
Returns the filename for an alignment.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns the sequence format for an alignment.
Synopsis
Prototype
const AjPStr ajAlignGetFormat (
const AjPAlign thys
);
Type | Name | Read/Write | Description |
const AjPAlign | thys | Input | Alignment object. |
const AjPStr | | RETURN | Alignment format |
Input
thys: | (Input) | Alignment object. |
Returns
const AjPStr: | Alignment format |
Description
Returns the sequence format for an alignment.
See Also
See other functions in this section
Availability
In release 6.4.0
Returns whether current alignment format includes sequences in output
Synopsis
Prototype
AjBool ajAlignFormatShowsSequences (
const AjPAlign thys
);
Type | Name | Read/Write | Description |
const AjPAlign | thys | Input | Alignment object |
AjBool | | RETURN | true if sequences appear in output |
Input
thys: | (Input) | Alignment object |
Returns
AjBool: | true if sequences appear in output |
Description
Returns whether current alignment format includes sequences in output
See Also
See other functions in this section
Availability
In release 6.4.0
Looks for the specified align format in the internal definitions and
returns the index.
Synopsis
Prototype
AjBool ajAlignFindFormat (
const AjPStr format,
ajint* iformat
);
Type | Name | Read/Write | Description |
const AjPStr | format | Input | Format required. |
ajint* | iformat | Output | Index |
AjBool | | RETURN | ajTrue on success. |
Input
format: | (Input) | Format required. |
Output
Returns
AjBool: | ajTrue on success. |
Description
Looks for the specified align format in the internal definitions and
returns the index.
See Also
See other functions in this section
Availability
In release 6.4.0
Test for an alignment object.
Checks the format works with the number of sequences.
Checks the format works with the type (protein or nucleotide).
Synopsis
Prototype
AjBool ajAlignValid (
AjPAlign thys
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
AjBool | | RETURN | ajTrue on success |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Test for an alignment object.
Checks the format works with the number of sequences.
Checks the format works with the type (protein or nucleotide).
See Also
See other functions in this section
Availability
In release 6.4.0
Constructor for an alignment object
Synopsis
Prototype
AjPAlign ajAlignNew (
void
);
Type | Name | Read/Write | Description |
AjPAlign | | RETURN | New Alignment object |
Returns
AjPAlign: | New Alignment object |
Description
Constructor for an alignment object
See Also
See other functions in this section
Availability
In release 6.4.0
Writes an alignment file
Synopsis
Prototype
void ajAlignWrite (
AjPAlign thys
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Writes an alignment file
See Also
See other functions in this section
Availability
In release 6.4.0
Closes an alignment
Synopsis
Prototype
void ajAlignClose (
AjPAlign thys
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Closes an alignment
See Also
See other functions in this section
Availability
In release 6.4.0
Writes an alignment header.
Synopsis
Prototype
void ajAlignWriteHeader (
AjPAlign thys
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object. Internal count is updated
to avoid duplicate headers |
void | | RETURN | |
Input & Output
thys: | (Modify) | Alignment object. Internal count is updated
to avoid duplicate headers |
Returns
Description
Writes an alignment header.
See Also
See other functions in this section
Availability
In release 6.4.0
Writes an alignment tail
Synopsis
Prototype
void ajAlignWriteTail (
AjPAlign thys
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Writes an alignment tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment header
Synopsis
Prototype
void ajAlignSetHeader (
AjPAlign thys,
const AjPStr header
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | header | Input | Align header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Align header with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment header
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment header
Synopsis
Prototype
void ajAlignSetHeaderC (
AjPAlign thys,
const char* header
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const char* | header | Input | Align header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Align header with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment header
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to an alignment header
Synopsis
Prototype
void ajAlignSetHeaderApp (
AjPAlign thys,
const AjPStr header
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | header | Input | Align header with embedded newlines |
void | | RETURN | |
Input
header: | (Input) | Align header with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Appends to an alignment header
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment tail
Synopsis
Prototype
void ajAlignSetTail (
AjPAlign thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | tail | Input | Align tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Align tail with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment tail
Synopsis
Prototype
void ajAlignSetTailC (
AjPAlign thys,
const char* tail
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const char* | tail | Input | Align tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Align tail with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment tail
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to an alignment tail
Synopsis
Prototype
void ajAlignSetTailApp (
AjPAlign thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | tail | Input | Align tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Align tail with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Appends to an alignment tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment tail
Synopsis
Prototype
void ajAlignSetSubTail (
AjPAlign thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | tail | Input | Align tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Align tail with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment tail
Synopsis
Prototype
void ajAlignSetSubTailC (
AjPAlign thys,
const char* tail
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const char* | tail | Input | Align tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Align tail with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment tail
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to an alignment tail
Synopsis
Prototype
void ajAlignSetSubTailApp (
AjPAlign thys,
const AjPStr tail
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | tail | Input | Align tail with embedded newlines |
void | | RETURN | |
Input
tail: | (Input) | Align tail with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Appends to an alignment tail
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment subheader (cleared after printing so it can
be set again for the next alignment)
Synopsis
Prototype
void ajAlignSetSubHeader (
AjPAlign thys,
const AjPStr subheader
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | subheader | Input | Align subheader with embedded newlines |
void | | RETURN | |
Input
subheader: | (Input) | Align subheader with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment subheader (cleared after printing so it can
be set again for the next alignment)
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment header (cleared after printing so it can
be set again for the next alignment)
Synopsis
Prototype
void ajAlignSetSubHeaderC (
AjPAlign thys,
const char* subheader
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const char* | subheader | Input | Align subheader with embedded newlines |
void | | RETURN | |
Input
subheader: | (Input) | Align subheader with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment header (cleared after printing so it can
be set again for the next alignment)
See Also
See other functions in this section
Availability
In release 6.4.0
Appends to an alignment subheader (cleared after printing so it can
be set again for the next alignment)
Synopsis
Prototype
void ajAlignSetSubHeaderApp (
AjPAlign thys,
const AjPStr subheader
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | subheader | Input | Align subheader with embedded newlines |
void | | RETURN | |
Input
subheader: | (Input) | Align subheader with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Appends to an alignment subheader (cleared after printing so it can
be set again for the next alignment)
See Also
See other functions in this section
Availability
In release 6.4.0
Prepends to an alignment subheader (cleared after printing so it can
be set again for the next alignment)
Synopsis
Prototype
void ajAlignSetSubHeaderPre (
AjPAlign thys,
const AjPStr subheader
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | subheader | Input | Align subheader with embedded newlines |
void | | RETURN | |
Input
subheader: | (Input) | Align subheader with embedded newlines |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Prepends to an alignment subheader (cleared after printing so it can
be set again for the next alignment)
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment matrix
Synopsis
Prototype
void ajAlignSetMatrixName (
AjPAlign thys,
const AjPStr matrix
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const AjPStr | matrix | Input | Matrix name |
void | | RETURN | |
Input
matrix: | (Input) | Matrix name |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment matrix
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment matrix
Synopsis
Prototype
void ajAlignSetMatrixNameC (
AjPAlign thys,
const char* matrix
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
const char* | matrix | Input | Matrix name |
void | | RETURN | |
Input
matrix: | (Input) | Matrix name |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines an alignment matrix
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment matrix
Synopsis
Prototype
void ajAlignSetMatrixInt (
AjPAlign thys,
AjPMatrix matrix
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
AjPMatrix | matrix | Modify | Matrix object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Alignment object |
matrix: | (Modify) | Matrix object |
Returns
Description
Defines an alignment matrix
See Also
See other functions in this section
Availability
In release 6.4.0
Defines an alignment matrix
Synopsis
Prototype
void ajAlignSetMatrixFloat (
AjPAlign thys,
AjPMatrixf matrix
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
AjPMatrixf | matrix | Modify | Matrix (floating point version) object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Alignment object |
matrix: | (Modify) | Matrix (floating point version) object |
Returns
Description
Defines an alignment matrix
See Also
See other functions in this section
Availability
In release 6.4.0
Defines alignment gap penalties
Synopsis
Prototype
void ajAlignSetGapI (
AjPAlign thys,
ajint gappen,
ajint extpen
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajint | gappen | Input | Gap penalty |
ajint | extpen | Input | Gap extension penalty |
void | | RETURN | |
Input
gappen: | (Input) | Gap penalty |
extpen: | (Input) | Gap extension penalty |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines alignment gap penalties
See Also
See other functions in this section
Availability
In release 6.4.0
Defines alignment gap penalties
Synopsis
Prototype
void ajAlignSetGapR (
AjPAlign thys,
float gappen,
float extpen
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
float | gappen | Input | Gap penalty |
float | extpen | Input | Gap extension penalty |
void | | RETURN | |
Input
gappen: | (Input) | Gap penalty |
extpen: | (Input) | Gap extension penalty |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines alignment gap penalties
See Also
See other functions in this section
Availability
In release 6.4.0
Defines alignment score
Synopsis
Prototype
void ajAlignSetScoreI (
AjPAlign thys,
ajint score
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajint | score | Input | score |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines alignment score
See Also
See other functions in this section
Availability
In release 6.4.0
Defines alignment score
Synopsis
Prototype
void ajAlignSetScoreL (
AjPAlign thys,
ajlong score
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajlong | score | Input | score |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines alignment score
See Also
See other functions in this section
Availability
In release 6.4.0
Defines alignment score
Synopsis
Prototype
void ajAlignSetScoreR (
AjPAlign thys,
float score
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
float | score | Input | score |
void | | RETURN | |
Input
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Defines alignment score
See Also
See other functions in this section
Availability
In release 6.4.0
Sets standard properties for an alignment subheader. These are:
Length, Identity, Gaps, Similarity, Score
Synopsis
Prototype
void ajAlignSetStats (
AjPAlign thys,
ajint iali,
ajint len,
ajint ident,
ajint sim,
ajint gaps,
const AjPStr score
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajint | iali | Input | Alignment number |
ajint | len | Input | Alignment length |
ajint | ident | Input | Number of identities |
ajint | sim | Input | Number of similarities |
ajint | gaps | Input | Number of gaps |
const AjPStr | score | Input | Alignment score (as saved by
ajAlignSetScoreI or ajAlignSetScoreR) |
void | | RETURN | |
Input
iali: | (Input) | Alignment number |
len: | (Input) | Alignment length |
ident: | (Input) | Number of identities |
sim: | (Input) | Number of similarities |
gaps: | (Input) | Number of gaps |
score: | (Input) | Alignment score (as saved by
ajAlignSetScoreI or ajAlignSetScoreR) |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Sets standard properties for an alignment subheader. These are:
Length, Identity, Gaps, Similarity, Score
See Also
See other functions in this section
Availability
In release 6.4.0
Sets standard subheader using the properties for an alignment.
These are:
Length, Identity, Gaps, Similarity, Score
Synopsis
Prototype
void ajAlignSetSubStandard (
AjPAlign thys,
ajint iali
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajint | iali | Input | Alignment number (or -1 for the latest) |
void | | RETURN | |
Input
iali: | (Input) | Alignment number (or -1 for the latest) |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Sets standard subheader using the properties for an alignment.
These are:
Length, Identity, Gaps, Similarity, Score
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the align type (if it is not set already)
Synopsis
Prototype
void ajAlignSetType (
AjPAlign thys
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
void | | RETURN | |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Sets the align type (if it is not set already)
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the align object to use external sequence references, which are
to be copied pointers rather than clones of the whole sequence.
Intended for alignments of large sequences where there is no need to
keep many copies. An example is the EMBOSS application wordmatch.
Synopsis
Prototype
void ajAlignSetExternal (
AjPAlign thys,
AjBool external
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
AjBool | external | Input | If true, do not make copies of sequence data
and do not delete internal sequence data |
void | | RETURN | |
Input
external: | (Input) | If true, do not make copies of sequence data
and do not delete internal sequence data |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Sets the align object to use external sequence references, which are
to be copied pointers rather than clones of the whole sequence.
Intended for alignments of large sequences where there is no need to
keep many copies. An example is the EMBOSS application wordmatch.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the index of the reference sequence.
Synopsis
Prototype
void ajAlignSetRefSeqIndx (
AjPAlign thys,
ajint refseq
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajint | refseq | Input | index of the reference sequence |
void | | RETURN | |
Input
refseq: | (Input) | index of the reference sequence |
Input & Output
thys: | (Modify) | Alignment object |
Returns
Description
Sets the index of the reference sequence.
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the alignment range in each sequence, but only for a
pairwise alignment
Synopsis
Prototype
AjBool ajAlignSetRange (
AjPAlign thys,
ajint start1,
ajint end1,
ajint len1,
ajint off1,
ajint start2,
ajint end2,
ajint len2,
ajint off2
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajint | start1 | Input | Start in sequence 1 |
ajint | end1 | Input | End in sequence 1 |
ajint | len1 | Input | Length of sequence 1 |
ajint | off1 | Input | Offset of sequence 1 |
ajint | start2 | Input | Start in sequence 2 |
ajint | end2 | Input | End in sequence 2 |
ajint | len2 | Input | Length of sequence 2 |
ajint | off2 | Input | Offset of sequence 2 |
AjBool | | RETURN | ajTrue on success. Failure also writes an error message. |
Input
start1: | (Input) | Start in sequence 1 |
end1: | (Input) | End in sequence 1 |
len1: | (Input) | Length of sequence 1 |
off1: | (Input) | Offset of sequence 1 |
start2: | (Input) | Start in sequence 2 |
end2: | (Input) | End in sequence 2 |
len2: | (Input) | Length of sequence 2 |
off2: | (Input) | Offset of sequence 2 |
Input & Output
thys: | (Modify) | Alignment object |
Returns
AjBool: | ajTrue on success. Failure also writes an error message. |
Description
Sets the alignment range in each sequence, but only for a
pairwise alignment
See Also
See other functions in this section
Availability
In release 6.4.0
Sets the local alignment sub range in each sequence, but only for a
pairwise alignment.
This sets the SubOffset in addition to the Start and End values,
for use where the alignment has a large sequence, but only part of
it is to be reported.
The usual example is where there are many matches in a long sequence,
defined with SeqExternal so we use pointers to one original to avoid
making multiple copies in memory while building the AjPAlign and AlignPData
structure.
Resets the alignment length to be the length of the longest subsequence
Synopsis
Prototype
AjBool ajAlignSetSubRange (
AjPAlign thys,
ajint substart1,
ajint start1,
ajint end1,
AjBool rev1,
ajint len1,
ajint substart2,
ajint start2,
ajint end2,
AjBool rev2,
ajint len2
);
Type | Name | Read/Write | Description |
AjPAlign | thys | Modify | Alignment object |
ajint | substart1 | Input | Subsequence offset in sequence 1 |
ajint | start1 | Input | Subsequence start in sequence 1 |
ajint | end1 | Input | Subsequence end in sequence 1 |
AjBool | rev1 | Input | ajTrue if sequence 1 is reversed |
ajint | len1 | Input | Length of sequence 1 |
ajint | substart2 | Input | Subsequence offset in sequence 2 |
ajint | start2 | Input | Subsequence start in sequence 2 |
ajint | end2 | Input | Subsequence end in sequence 2 |
AjBool | rev2 | Input | ajTrue if sequence 2 is reversed |
ajint | len2 | Input | Length of sequence 2 |
AjBool | | RETURN | ajTrue on success. Failure also writes an error message. |
Input
substart1: | (Input) | Subsequence offset in sequence 1 |
start1: | (Input) | Subsequence start in sequence 1 |
end1: | (Input) | Subsequence end in sequence 1 |
rev1: | (Input) | ajTrue if sequence 1 is reversed |
len1: | (Input) | Length of sequence 1 |
substart2: | (Input) | Subsequence offset in sequence 2 |
start2: | (Input) | Subsequence start in sequence 2 |
end2: | (Input) | Subsequence end in sequence 2 |
rev2: | (Input) | ajTrue if sequence 2 is reversed |
len2: | (Input) | Length of sequence 2 |
Input & Output
thys: | (Modify) | Alignment object |
Returns
AjBool: | ajTrue on success. Failure also writes an error message. |
Description
Sets the local alignment sub range in each sequence, but only for a
pairwise alignment.
This sets the SubOffset in addition to the Start and End values,
for use where the alignment has a large sequence, but only part of
it is to be reported.
The usual example is where there are many matches in a long sequence,
defined with SeqExternal so we use pointers to one original to avoid
making multiple copies in memory while building the AjPAlign and AlignPData
structure.
Resets the alignment length to be the length of the longest subsequence
See Also
See other functions in this section
Availability
In release 6.4.0
Reports an AjPAlign object to debug output
Synopsis
Prototype
void ajAlignTraceT (
const AjPAlign thys,
const char* title
);
Type | Name | Read/Write | Description |
const AjPAlign | thys | Input | alignment object |
const char* | title | Input | Trace report title |
void | | RETURN | |
Input
thys: | (Input) | alignment object |
title: | (Input) | Trace report title |
Returns
Description
Reports an AjPAlign object to debug output
See Also
See other functions in this section
Availability
In release 6.4.0
Reports an AjPAlign object to debug output
Synopsis
Prototype
void ajAlignTrace (
const AjPAlign thys
);
Type | Name | Read/Write | Description |
const AjPAlign | thys | Input | alignment object |
void | | RETURN | |
Input
thys: | (Input) | alignment object |
Returns
Description
Reports an AjPAlign object to debug output
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the internal data structures
Synopsis
Prototype
void ajAlignPrintFormat (
AjPFile outf,
AjBool full
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
AjBool | full | Input | Full report (usually ajFalse) |
void | | RETURN | |
Input
full: | (Input) | Full report (usually ajFalse) |
Input & Output
Returns
Description
Reports the internal data structures
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the alignment format internals as Docbook text
Synopsis
Prototype
void ajAlignPrintbookFormat (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the alignment format internals as Docbook text
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the internal data structures
Synopsis
Prototype
void ajAlignPrinthtmlFormat (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the internal data structures
See Also
See other functions in this section
Availability
In release 6.4.0
Reports the alignment format internals as wikitext
Synopsis
Prototype
void ajAlignPrintwikiFormat (
AjPFile outf
);
Type | Name | Read/Write | Description |
AjPFile | outf | Modify | Output file |
void | | RETURN | |
Input & Output
Returns
Description
Reports the alignment format internals as wikitext
See Also
See other functions in this section
Availability
In release 6.4.0
Calculates alignment consensus of ambiguity characters from a sequence set.
Synopsis
Prototype
AjBool ajAlignConsAmbig (
const AjPSeqset thys,
AjPStr* cons
);
Type | Name | Read/Write | Description |
const AjPSeqset | thys | Input | Sequence set. |
AjPStr* | cons | Output | the created consensus sequence |
AjBool | | RETURN | ajTrue on success |
Input
thys: | (Input) | Sequence set. |
Output
cons: | (Output) | the created consensus sequence |
Returns
Description
Calculates alignment consensus of ambiguity characters from a sequence set.
See Also
See other functions in this section
Availability
In release 6.4.0
Calculates alignment consensus of ambiguity characters from a sequence set.
Synopsis
Prototype
AjBool ajAlignConsAmbigNuc (
const AjPSeqset thys,
AjPStr* cons
);
Type | Name | Read/Write | Description |
const AjPSeqset | thys | Input | Sequence set. |
AjPStr* | cons | Output | the created consensus sequence |
AjBool | | RETURN | ajTrue on success |
Input
thys: | (Input) | Sequence set. |
Output
cons: | (Output) | the created consensus sequence |
Returns
Description
Calculates alignment consensus of ambiguity characters from a sequence set.
See Also
See other functions in this section
Availability
In release 6.4.0
Calculates alignment consensus of ambiguity characters from a sequence set.
Synopsis
Prototype
AjBool ajAlignConsAmbigProt (
const AjPSeqset thys,
AjPStr* cons
);
Type | Name | Read/Write | Description |
const AjPSeqset | thys | Input | Sequence set. |
AjPStr* | cons | Output | the created consensus sequence |
AjBool | | RETURN | ajTrue on success |
Input
thys: | (Input) | Sequence set. |
Output
cons: | (Output) | the created consensus sequence |
Returns
Description
Calculates alignment consensus of ambiguity characters from a sequence set.
See Also
See other functions in this section
Availability
In release 6.4.0
Calculates alignment statistics (and a consensus) from a sequence set.
Synopsis
Prototype
AjBool ajAlignConsStats (
const AjPSeqset thys,
AjPMatrix mymatrix,
AjPStr* cons,
ajint* retident,
ajint* retsim,
ajint* retgap,
ajint* retlen
);
Type | Name | Read/Write | Description |
const AjPSeqset | thys | Input | Sequence set. |
AjPMatrix | mymatrix | Output | User-defined matrix, or NULL for the default |
AjPStr* | cons | Output | the created consensus sequence |
ajint* | retident | Output | number of residues identical in all sequences |
ajint* | retsim | Output | number of residues similar in all sequences |
ajint* | retgap | Output | number of residues with a gap in 1 sequence |
ajint* | retlen | Output | length of the alignment |
AjBool | | RETURN | ajTrue on success |
Input
thys: | (Input) | Sequence set. |
Output
mymatrix: | (Output) | User-defined matrix, or NULL for the default |
cons: | (Output) | the created consensus sequence |
retident: | (Output) | number of residues identical in all sequences |
retsim: | (Output) | number of residues similar in all sequences |
retgap: | (Output) | number of residues with a gap in 1 sequence |
retlen: | (Output) | length of the alignment |
Returns
Description
Calculates alignment statistics (and a consensus) from a sequence set.
See Also
See other functions in this section
Availability
In release 6.4.0
Cleans up report processing internal memory
Synopsis
Prototype
void ajAlignExit (
void
);
Type | Name | Read/Write | Description |
void | | RETURN | |
Returns
Description
Cleans up report processing internal memory
See Also
See other functions in this section
Availability
In release 6.4.0