A library for working with phylogenetic and population genetic data.
v0.32.0
fst_cathedral.cpp File Reference
#include "genesis/population/function/fst_cathedral.hpp"
#include "genesis/population/function/window_average.hpp"
#include "genesis/utils/formats/json/document.hpp"
#include <cassert>
#include <cmath>
#include <cstdint>
#include <stdexcept>
#include <utility>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::population
 

Functions

bool all_finite_ (FstCathedralPlotRecord::Entry const &entry)
 
std::vector< FstCathedralPlotRecord > compute_fst_cathedral_records (VariantInputStream &iterator, FstPoolProcessor &processor, FstPoolCalculatorUnbiased::Estimator fst_estimator, std::vector< std::string > const &sample_names=std::vector< std::string >{}, std::shared_ptr< genesis::sequence::SequenceDict > const &sequence_dict=nullptr)
 Compute the components of per-position FST data for all pairs of samples in the given processor, for the chromosomes in the given input iterator. More...
 
std::vector< FstCathedralPlotRecord > compute_fst_cathedral_records_for_chromosome (VariantInputStream::Iterator &iterator, FstPoolProcessor &processor, FstPoolCalculatorUnbiased::Estimator fst_estimator, std::vector< std::string > const &sample_names=std::vector< std::string >{}, std::shared_ptr< genesis::sequence::SequenceDict > const &sequence_dict=nullptr)
 Compute the components of per-position FST data for all pairs of samples in the given processor, for the current chromosome in the given input iterator. More...
 
void fill_fst_cathedral_records_from_processor_ (FstPoolProcessor const &processor, std::vector< FstCathedralPlotRecord > &records, size_t position)
 
genesis::utils::JsonDocument fst_cathedral_plot_record_to_json_document (FstCathedralPlotRecord const &record)
 Get a user-readable description of the data of a FstCathedralPlotRecord as a JsonDocument. More...
 
std::vector< FstCathedralPlotRecord > prepare_fst_cathedral_records_for_chromosome_ (std::string const &chromosome, FstPoolProcessor const &processor, FstPoolCalculatorUnbiased::Estimator fst_estimator, std::vector< std::string > const &sample_names)