Class Specialization
Dna5
Alphabet for DNA including 'N' character.

FiniteOrderedAlphabetConcept

SimpleType

Dna5

Dna5
Include Headers
seqan/basic.h
Remarks
The ValueSize of Dna5 is 5. The nucleotides are enumerated this way: 'A' = 0, 'C' = 1, 'G' = 2, 'T' = 3. The 'N' character ("unkown nucleotide") is encoded by 4.
Objects of type Dna5 can be converted to various other types and vice versa. An object that has a value not in {'A', 'C', 'G', 'T'} is converted to 'N'.
Dna5 is typedef for SimpleType<char,Dna5_>, while Dna5_ is a helper specialization tag class.
Specialization of
SimpleType
Implements
FiniteOrderedAlphabetConcept
Metafunctions

IsSimple | Tests type to be simple. (SimpleType)
Spec | The spec of a class. (SimpleType)
Value | Type of the items in the container or behind an iterator. (SimpleType)

Functions

assign | Assigns one object to another object. (SimpleType)
ordValue | Maps an alphabet 1-to-1 to the interval [0..ValueSize). (SimpleType)

Example Programs
Alphabets
See Also
ValueSize, Dna5Iterator, readDna5IgnoringWhitespaces, Dna, Dna5String
SeqAn - Sequence Analysis Library - www.seqan.de

Page built @2014/10/13 16:13:00