1 #ifndef LIBSEQUENCE_TESTS_VARIANTMATRIXFIXTURE_HPP 2 #define LIBSEQUENCE_TESTS_VARIANTMATRIXFIXTURE_HPP 4 #include <Sequence/VariantMatrix.hpp> 5 #include <Sequence/AlleleCountMatrix.hpp> 14 : m{ data_type{ 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0,
15 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0 },
16 positions_type{ 0.1, 0.2, 0.3 } },
22 struct invariantdataset
29 : empty{ data_type{}, positions_type{} },
30 invariant{ data_type{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
31 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
32 positions_type{ 0.1, 0.2, 0.3 } },
33 empty_counts(empty), invariant_counts(invariant)
std::vector< double > positions
Position of sites.
Matrix representation of variation data.
std::vector< std::int8_t > data
Data stored in matrix form with rows as sites.
Matrix representation of allele counts in a VariantMatrix To be constructed.