 |
SeqAn3
3.0.2
The Modern C++ library for sequence analysis.
|
|
Go to the documentation of this file.
20 namespace seqan3::detail
31 template <
typename threshold_t>
32 constexpr
auto operator()(threshold_t
const threshold)
const
35 "The threshold must either be a quality alphabet or an integral type "
36 "in which case it is compared with the underlying phred type.");
38 return adaptor_from_functor{*
this, threshold};
46 template <std::ranges::input_range irng_t,
typename threshold_t>
47 constexpr
auto operator()(irng_t && irange, threshold_t
const threshold)
const
50 "views::trim_quality can only operate on ranges over seqan3::quality_alphabet.");
54 "The threshold must either be a letter of the underlying alphabet or an integral type "
55 "in which case it is compared with the underlying phred type.");
57 return views::take_until(std::forward<irng_t>(irange), [threshold] (
auto const value)
67 return static_cast<c_t
>(
to_phred(value)) <
static_cast<c_t
>(threshold);
Provides quality alphabet composites.
The SeqAn namespace for views.
Definition: view_iota_simd.hpp:218
Provides seqan3::views::take_until and seqan3::views::take_until_or_throw.
A concept that indicates whether an alphabet represents quality scores.
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view.
Definition: deep.hpp:102
constexpr auto take_until
A view adaptor that returns elements from the underlying range until the functor evaluates to true (o...
Definition: take_until.hpp:610
constexpr auto to_phred
The public getter function for the phred representation of a quality score.
Definition: concept.hpp:89
Adaptations of concepts from the Ranges TS.
Provides seqan3::views::deep.
constexpr auto trim_quality
A view that does quality-threshold trimming on a range of seqan3::quality_alphabet.
Definition: trim_quality.hpp:129