Class
Segment
A contiguous part of a sequence.
Segment<THost, TSpec>
Include Headers
seqan/sequence.h
Parameters
THost
Type of the whole sequence.
Instances of Segment<THost, TSpec> are subsequences of THost objects.
Metafunctions: Host
TSpec
The specializing type.
Metafunctions: Spec
Default: InfixSegment.
Specializations
InfixSegmentAn arbitrary segment.
PrefixSegmentFirst part of a sequence.
SuffixSegmentEnd part segment of a sequence.
Metafunctions
DefaultOverflowExplicitThe default overflow strategy for explicit resize.
DefaultOverflowImplicitThe default overflow strategy for implicit resize.
GetValueType for reading values.
HostType of the object a given object depends on.
IsContiguousDetermines whether a container stores its elements in a contiguous array.
IsSequenceDetermines whether a container stores its elements in sequential order.
IteratorType of iterator objects that are used to traverse the container.
ReferenceReference type.
SizeType of an object that is suitable to hold size information.
SpecThe spec of a class.
ValueType of the items in the container or behind an iterator.
Functions
assignAssigns one object to another object.
atBeginDetermines whether an iterator is at the beginning position.
atEndDetermines whether an iterator is at the end position.
beginThe begin of a container.
beginPositionBegin position of object in host.
capacityThe maximal length.
complementComplement a sequence or a StringSet in-place.
emptyTest a container for being empty.
endPositionEnd position of object in host.
getObjectIdA value that identifies the underlying sequence.
goBeginIterates to the first position of a container.
goDownIterates down one edge or a path in a tree.
goEndIterates to the last position of a container.
goNextIterates to next position.
goPreviousIterates to pevious position.
hostThe object a given object depends on.
lengthThe number of items/characters.
reverseComplementReverse and complement a sequence or a StringSet in-place.
setHostSets the host of an object.
shareResourcesDetermines whether two sequences share the same resource.
toLowerConvert characters in sequence or StringSet to lower case in-place.
toUpperConvert characters in sequence or StringSet to lower case in-place.
valueReference to the value.
Examples
File "infix.cpp"
1#include <seqan/basic.h>
2#include <seqan/sequence.h>
3#include <seqan/file.h>  // for I/O
4
5
6using namespace seqan;
7
8int main()
9{
10    String<Dna> dnaSeq = "TATACGCGAAAA";
11    Infix<String<Dna> >::Type inf = infix(dnaSeq, 4, 8);
12    std::cout << "Infix: " << inf << std::endl;
13
14    return 0;
15}
The output is as follows:
Infix: CGCG
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2013/07/11 09:12:35