bpp-seq3  3.0.0
bpp::SequenceWithAnnotationTools Class Reference

The SequenceWithAnnotationTools static class. More...

#include <Bpp/Seq/SequenceWithAnnotationTools.h>

Public Member Functions

std::unique_ptr< SequenceWithAnnotationcreateMaskAnnotation (const Sequence &seq)
 Parse a sequence with a CaseMaskedAlphabet and creates a new SequenceWithAnnotation object with original alphabet and a mask annotation. More...
 

Detailed Description

The SequenceWithAnnotationTools static class.

Implement methods to manipulate SequencesWithAnnotation

Author
Julien Dutheil

Definition at line 159 of file SequenceWithAnnotationTools.h.

Member Function Documentation

◆ createMaskAnnotation()

unique_ptr< SequenceWithAnnotation > SequenceWithAnnotationTools::createMaskAnnotation ( const Sequence seq)

Parse a sequence with a CaseMaskedAlphabet and creates a new SequenceWithAnnotation object with original alphabet and a mask annotation.

Parameters
seqThe sequence to parse.
Returns
A new SequenceWithAnnotation object.
Exceptions
AlphabetExceptionif the input sequence does not have a CaseMaskedAlphabet.

Definition at line 39 of file SequenceWithAnnotationTools.cpp.

References bpp::AbstractTemplateSymbolList< T >::getAlphabet(), bpp::SimpleCommentable::getComments(), bpp::AbstractCoreSequence::getName(), bpp::AbstractTemplateSymbolList< T >::size(), and bpp::Sequence::toString().


The documentation for this class was generated from the following files: