#include <genesis/population/plotting/af_spectrum.hpp>
Definition at line 56 of file af_spectrum.hpp.
Public Member Functions | |
AlleleFrequencyWindow (AlleleFrequencyWindow &&)=default | |
AlleleFrequencyWindow (AlleleFrequencyWindow const &)=default | |
AlleleFrequencyWindow (size_t width, size_t number_of_bins=100) | |
~AlleleFrequencyWindow () | |
void | enqueue (std::string const &chromosome, size_t position, double frequency) |
void | enqueue (VcfRecord const &record) |
size_t | number_of_bins () const |
AlleleFrequencyWindow & | operator= (AlleleFrequencyWindow &&)=default |
AlleleFrequencyWindow & | operator= (AlleleFrequencyWindow const &)=default |
void | run_vcf (std::string const &vcf_file) |
bool | skip_invalid_records () const |
self_type & | skip_invalid_records (bool value) |
Public Types | |
using | AFWindow = Window< double > |
using | self_type = AlleleFrequencyWindow |
using | Spectrum = HeatmapColorization::Spectrum |
Public Attributes | |
std::function< void(Spectrum const &)> | on_chromosome_finish |
std::function< void(Spectrum const &)> | on_chromosome_start |
AlleleFrequencyWindow | ( | size_t | width, |
size_t | number_of_bins = 100 |
||
) |
Definition at line 52 of file af_spectrum.cpp.
Definition at line 70 of file af_spectrum.cpp.
|
default |
|
default |
void enqueue | ( | std::string const & | chromosome, |
size_t | position, | ||
double | frequency | ||
) |
Definition at line 86 of file af_spectrum.cpp.
void enqueue | ( | VcfRecord const & | record | ) |
Definition at line 98 of file af_spectrum.cpp.
|
inline |
Definition at line 92 of file af_spectrum.hpp.
|
default |
|
default |
void run_vcf | ( | std::string const & | vcf_file | ) |
Definition at line 79 of file af_spectrum.cpp.
|
inline |
Definition at line 97 of file af_spectrum.hpp.
|
inline |
Definition at line 102 of file af_spectrum.hpp.
Definition at line 64 of file af_spectrum.hpp.
using self_type = AlleleFrequencyWindow |
Definition at line 65 of file af_spectrum.hpp.
Definition at line 66 of file af_spectrum.hpp.
std::function<void( Spectrum const& )> on_chromosome_finish |
Definition at line 86 of file af_spectrum.hpp.
std::function<void( Spectrum const& )> on_chromosome_start |
Definition at line 85 of file af_spectrum.hpp.