1 #ifndef SEQUENCE_SUMMSTATS_ALLELE_COUNTS_HPP__ 4 #define SEQUENCE_SUMMSTATS_ALLELE_COUNTS_HPP__ 9 #include <Sequence/AlleleCountMatrix.hpp> 34 std::vector<AlleleCounts>
36 const std::int8_t refstate);
43 std::vector<AlleleCounts>
45 const std::vector<std::int8_t>& refstates);
std::vector< AlleleCounts > allele_counts(const AlleleCountMatrix &m)
Count number of alleles at each site.
int nstates
Number of non-missing states.
The namespace in which this library resides.
int nmissing
Number of samples with missing states.
Matrix representation of allele counts in a VariantMatrix To be constructed.
std::vector< AlleleCounts > non_reference_allele_counts(const AlleleCountMatrix &m, const std::int8_t refstate)
Count number of non-reference alleles at each site.