X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fseq_span.hpp;h=8d1991360df0bdcebee6e83cab7b926686630a9a;hp=ec94c2717cf8d074933261f7d61863497b663b4d;hb=f1724abab87d2e5b160620b10cb81eabf56aadeb;hpb=7d4fbcb6060a60a8ea25ca1303fcaaaf8574f24a diff --git a/alg/seq_span.hpp b/alg/seq_span.hpp index ec94c27..8d19913 100644 --- a/alg/seq_span.hpp +++ b/alg/seq_span.hpp @@ -39,7 +39,9 @@ public: public: SeqSpan(const SeqSpan &); SeqSpan(const SeqSpan *); - explicit SeqSpan(const std::string &); + explicit SeqSpan(const std::string &, + AlphabetRef = reduced_nucleic_alphabet + ); SeqSpan(const SeqSpanRef, size_type start=0, size_type count=npos); //! assignment @@ -50,6 +52,7 @@ public: friend bool operator==(const SeqSpan&, const SeqSpan&); friend bool operator!=(const SeqSpan&, const SeqSpan&); + const Alphabet& get_alphabet() const { return seq->get_alphabet(); } //! \defgroup string_operators //! @{ //! retrive element at specific position