|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_FUNCTION_VARIANT_INPUT_STREAM_H_
2 #define GENESIS_POPULATION_FUNCTION_VARIANT_INPUT_STREAM_H_
48 namespace population {
67 std::vector<std::string>
const& sample_names,
68 std::vector<std::string>
const& names_filter,
69 bool inverse_filter =
false
86 std::vector<bool>
const& sample_filter
203 std::shared_ptr<genesis::sequence::SequenceDict> sequence_dict = {},
204 bool check_sequence_lengths = true
218 std::shared_ptr<genesis::sequence::SequenceDict> sequence_dict
224 #endif // include guard
std::function< void(Variant const &)> make_variant_input_stream_sequence_order_observer(std::shared_ptr< genesis::sequence::SequenceDict > sequence_dict={}, bool check_sequence_lengths=true)
Helper function to check that some Variant input is sorted properly.
SubsamplingMethod
Select which method to use for reducing the max read depth of a SampleCounts sample or a Variant.
@ kSubsampleWithReplacement
Use transform_subsample_with_replacement()
std::function< void(Variant &)> make_variant_input_stream_sample_name_filter_transform(std::vector< bool > const &sample_filter)
Helper function to create a Variant transform to filter out samples.
@ kSubsampleWithoutReplacement
Use transform_subsample_without_replacement()
A single variant at a position in a chromosome, along with SampleCounts for a set of samples.
std::function< void(Variant &)> make_variant_input_stream_sample_subsampling_transform(size_t max_depth, SubsamplingMethod method=SubsamplingMethod::kSubscale)
Create a Variant transformation function that subscales or subsamples the base counts to be below a g...
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::function< void(Variant const &)> make_variant_input_stream_sequence_length_observer(std::shared_ptr< genesis::sequence::SequenceDict > sequence_dict)
Helper function to check that some Variant input has positions that agree with those reported in a Se...
@ kSubscale
Use transform_subscale()
std::vector< bool > make_sample_name_filter(std::vector< std::string > const &sample_names, std::vector< std::string > const &names_filter, bool inverse_filter)
Create a filter for samples, indicating which to keep.