libsequence  1.9.5
filtering.hpp
1 #ifndef SEQUENCE_VARIANT_MATRIX_FILTERING_HPP_
2 #define SEQUENCE_VARIANT_MATRIX_FILTERING_HPP_
3 
4 #include <Sequence/VariantMatrix.hpp>
5 #include <Sequence/VariantMatrixViews.hpp>
6 #include <functional>
7 #include <cstdint>
8 
9 namespace Sequence
10 {
11  std::int32_t filter_sites(VariantMatrix &m,
12  const std::function<bool(const RowView &)> &f);
13  std::int32_t
14  filter_haplotypes(VariantMatrix &m,
15  const std::function<bool(const ColView &)> &f);
16 }
17 
18 #endif
internal::row_view_< std::int8_t * > RowView
View of a VariantMatrix row (a variable site)
The namespace in which this library resides.
internal::col_view_< std::int8_t * > ColView
View of a VariantMatrix column ("haplotype")