32 template <
typename threshold_t>
33 constexpr
auto operator()(threshold_t
const threshold)
const 36 "The threshold must either be a quality alphabet or an integral type " 37 "in which case it is compared with the underlying phred type.");
39 return adaptor_from_functor{*
this, threshold};
47 template <std::ranges::InputRange irng_t,
typename threshold_t>
48 constexpr
auto operator()(irng_t && irange, threshold_t
const threshold)
const 51 "view:trim can only operate on ranges over seqan3::QualityAlphabet.");
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 view::take_until(std::forward<irng_t>(irange), [threshold] (
auto const value)
66 return static_cast<c_t
>(
to_phred(value)) < static_cast<c_t>(threshold);
131 inline constexpr
auto trim =
deep{seqan3::detail::trim_fn{}};
Provides quality alphabet composites.
auto constexpr take_until
A view adaptor that returns elements from the underlying range until the functor evaluates to true (o...
Definition: take_until.hpp:599
std::remove_cv_t< std::remove_reference_t< t > > remove_cvref_t
Return the input type with const, volatile and references removed (type trait).
Definition: basic.hpp:35
Provides seqan3::view::take_until and seqan3::view::take_until_or_throw.
Provides various type traits.
Provides seqan3::view::deep.
Adaptations of concepts from the Ranges TS.
The SeqAn3 namespace for views.
constexpr auto trim
A view that does quality-threshold trimming on a range of seqan3::QualityAlphabet.
Definition: trim.hpp:131
constexpr auto to_phred
The public getter function for the phred representation of a quality score.
Definition: concept.hpp:104
Definition: aligned_sequence_concept.hpp:35
A wrapper type around an existing view adaptor that enables "deep view" behaviour for that view...
Definition: deep.hpp:101
The concept std::Same<T, U> is satisfied if and only if T and U denote the same type.
The concept Integral is satisfied if and only if T is an integral type.