|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_FORMAT_SYNC_READER_H_
2 #define GENESIS_POPULATION_FORMAT_SYNC_READER_H_
42 namespace population {
150 std::vector<bool>
const& sample_filter
160 std::vector<Variant>
read(
161 std::shared_ptr< utils::BaseInputSource > source
172 std::vector<Variant>
read(
173 std::shared_ptr< utils::BaseInputSource > source,
174 std::vector<bool>
const& sample_filter
199 std::vector<bool>
const& sample_filter
208 return guess_alt_base_;
226 guess_alt_base_ = value;
232 return allow_missing_;
247 allow_missing_ = value;
260 std::vector<bool>
const& sample_filter,
261 bool use_sample_filter
265 #if defined(__GNUC__) || defined(__GNUG__) || defined(__clang__)
267 void parse_sample_gcc_intrinsic_(
274 void parse_sample_simple_(
294 bool guess_alt_base_ =
false;
295 bool allow_missing_ =
true;
302 #endif // include guard
bool allow_missing() const
bool guess_alt_base() const
One set of nucleotide sample counts, for example for a given sample that represents a pool of sequenc...
bool parse_line(utils::InputStream &input_stream, Variant &sample_set) const
Read a single line into the provided Variant.
SyncReader & allow_missing(bool value)
Set whether to allow missing data in the format suggested by Kapun et al.
std::vector< Variant > read(std::shared_ptr< utils::BaseInputSource > source) const
Read the whole input into a vector of Variants.
SyncReader & operator=(SyncReader const &)=default
A single variant at a position in a chromosome, along with SampleCounts for a set of samples.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::vector< std::string > read_header(utils::InputStream &input_stream) const
Read the header line, if there is one. Do nothing if there is not.
SyncReader & guess_alt_base(bool value)
Set to guess the alternative base of the Variant, instead of leaving it at 'N'.
Reader for PoPoolation2's "synchronized" files.