Loading...
Searching...
No Matches
phred68solexa.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <seqan3/alphabet/quality/phred_base.hpp>
namespace seqan3
{
class phred68solexa : public phred_base<phred68solexa, 68>
{
private:
using base_t = phred_base<phred68solexa, 68>;
friend base_t;
friend base_t::base_t;
public:
constexpr phred68solexa() noexcept = default;
constexpr phred68solexa(phred68solexa const &) noexcept = default;
constexpr phred68solexa(phred68solexa &&) noexcept = default;
constexpr phred68solexa & operator=(phred68solexa const &) noexcept = default;
constexpr phred68solexa & operator=(phred68solexa &&) noexcept = default;
~phred68solexa() noexcept = default;
// Inherit converting constructor
using base_t::base_t;
static constexpr phred_type offset_phred{-5};
static constexpr char_type offset_char{';'};
};
inline namespace literals
{
constexpr phred68solexa operator""_phred68solexa(char const c) noexcept
{
return phred68solexa{}.assign_char(c);
}
SEQAN3_WORKAROUND_LITERAL std::vector<phred68solexa> operator""_phred68solexa(char const * s, std::size_t n)
{
std::vector<phred68solexa> r;
r.resize(n);
for (size_t i = 0; i < n; ++i)
r[i].assign_char(s[i]);
return r;
}
} // namespace literals
} // namespace seqan3
seqan3::alphabet_base::assign_char
constexpr derived_type & assign_char(char_type const chr) noexcept
Assign from a character, implicitly converts invalid characters.
Definition alphabet_base.hpp:160
seqan3::alphabet_base::char_type
std::conditional_t< std::same_as< char_t, void >, char, char_t > char_type
The char representation; conditional needed to make semi alphabet definitions legal.
Definition alphabet_base.hpp:69
seqan3::phred68solexa::offset_phred
static constexpr phred_type offset_phred
The projection offset between Phred and rank score representation.
Definition phred68solexa.hpp:71
seqan3::phred68solexa::offset_char
static constexpr char_type offset_char
The projection offset between char and rank score representation.
Definition phred68solexa.hpp:77
seqan3::phred68solexa::phred68solexa
constexpr phred68solexa() noexcept=default
Defaulted.
seqan3::phred_base< phred68solexa, 68 >::phred_type
int8_t phred_type
Definition phred_base.hpp:39
seqan3
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
phred_base.hpp
Provides seqan3::phred42 quality scores.
SEQAN3_WORKAROUND_LITERAL
#define SEQAN3_WORKAROUND_LITERAL
Our char literals returning std::vector should be constexpr if constexpr std::vector is supported.
Definition platform.hpp:310
std::vector::resize
T resize(T... args)
std::size_t
std::vector
Hide me