|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_SEQUENCE_SEQUENCE_H_
2 #define GENESIS_SEQUENCE_SEQUENCE_H_
74 swap( label_, other.label_ );
75 swap( sites_, other.sites_ );
82 phred_scores_.clear();
95 std::string
const&
label()
const
100 void label( std::string
const& value )
107 label_ = std::move( value );
120 void sites( std::string
const& value )
127 sites_ = std::move( value );
132 return phred_scores_;
137 return phred_scores_;
142 phred_scores_ = value;
147 phred_scores_ = std::move( value );
169 return sites_.size();
177 return sites_.size();
182 return sites_.at(index);
187 return sites_.at(index);
192 return sites_[index];
197 return sites_[index];
206 return sites_.begin();
216 return sites_.cbegin();
221 return sites_.cend();
226 return sites_.cbegin();
231 return sites_.cend();
243 std::vector<unsigned char> phred_scores_;
244 size_t abundance_ = 1;
251 #endif // include guard
void swap(Sample &lhs, Sample &rhs)
char & operator[](size_t index)
Sequence & operator=(Sequence const &)=default
std::string::iterator iterator
const_iterator end() const
void label(std::string const &value)
std::vector< unsigned char > const & phred_scores() const
const_iterator begin() const
void phred_scores(std::vector< unsigned char > &&value)
const_iterator cend() const
void swap(Sequence &other)
void sites(std::string &&value)
Sequence(std::string const &label, std::string const &sites, size_t abundance=1)
char site_at(size_t index) const
char & site_at(size_t index)
size_t length() const
Return the length (number of sites) of this sequence.
std::string const & sites() const
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::vector< unsigned char > & phred_scores()
size_t size() const
Alias for length().
void phred_scores(std::vector< unsigned char > const &value)
std::string::const_iterator const_iterator
void abundance(size_t value)
const_iterator cbegin() const
std::string const & label() const
void sites(std::string const &value)
void label(std::string &&value)