50 string subseq =
toString().substr(startAt, length);
51 size_t begin = begin_;
52 if (hasCoordinates_) {
53 for (
size_t i = 0; i < startAt; ++i) {
54 if (! getAlphabet()->isGap(
operator[](i))) begin++;
60 vector<string> anno = getAnnotationTypes();
61 for (
size_t i = 0; i < anno.size(); ++i) {
62 newSeq->
addAnnotation(getAnnotation(anno[i]).getPartAnnotation(startAt, length));
A sequence class which is used to store data from MAF files.
MafSequence * subSequence(size_t startAt, size_t length) const
Extract a sub-sequence.
virtual void addAnnotation(SequenceAnnotation *anno)
std::string toString(T t)