embcons.c


Function embConsCalc

Calculates a consensus.

Synopsis

Prototype
void embConsCalc (
      const AjPSeqset seqset,
      const AjPMatrix cmpmatrix,
      ajint nseqs,
      ajint mlen,
      float fplural,
      float setcase,
      ajint identity,
      AjBool gaps,
      AjPStr* cons
);

TypeNameRead/WriteDescription
const AjPSeqsetseqsetInputmultiple alignment
const AjPMatrixcmpmatrixInputcomparison scoring matrix
ajintnseqsInputnumber of sequences in alignment
ajintmlenInputlength of alignment
floatfpluralInputno. of +ve scoring matches below which there is no consensus
floatsetcaseInputcase set if score above/below +ve matching threshold
ajintidentityInputnumber of identical symbols required for consesnsus
AjBoolgapsInputAllow gap characters in the consensus
AjPStr*consOutputthe created consensus sequence
void RETURN

Input
seqset:(Input)multiple alignment
cmpmatrix:(Input)comparison scoring matrix
nseqs:(Input)number of sequences in alignment
mlen:(Input)length of alignment
fplural:(Input)no. of +ve scoring matches below which there is no consensus
setcase:(Input)case set if score above/below +ve matching threshold
identity:(Input)number of identical symbols required for consesnsus
gaps:(Input)Allow gap characters in the consensus
Output
cons:(Output)the created consensus sequence
Returns
void:No return value

Description

Calculates a consensus.

Usage

See source code

Example

In preparation

Errors

See source code

Dependencies

See source code

See Also

See other functions in this section

Availability

In release 6.4.0