![]() |
ʻOhana
Population structure, admixture history, and selection using learning methods.
|
A template for a class implementing the neoscan algorithm. This algorithm scans for positive selection between ancient and modern data. It can take advantage of the dating for each individual ancient sample. More...
#include <jade.neoscan.hpp>
Data Structures | |
struct | output |
Output for one column. More... | |
Public Types | |
typedef TValue | value_type |
The value type. More... | |
typedef basic_matrix< value_type > | matrix_type |
The matrix type. More... | |
typedef basic_verification< value_type > | verification_type |
The verification type. More... | |
typedef basic_genotype_matrix< value_type > | genotype_matrix_type |
The genotype matrix type. More... | |
typedef basic_genotype_matrix_factory< value_type > | genotype_matrix_factory_type |
The genotype matrix factory type. More... | |
Public Member Functions | |
basic_neoscan (const genotype_matrix_type &g, const matrix_type &q, const matrix_type &f, const matrix_type &years) | |
Initializes a new instance of the class. Memory for the specified G, Q, and Fa matrices must remain valid for the lifetime of this instance. More... | |
template<typename TOutputAction > | |
void | execute (const TOutputAction &output_action) const |
Executes the algorithm using the specified action for the output of each column. More... | |
Static Public Member Functions | |
static void | run (args &a) |
Runs the program based on command-line arguments. More... | |
A template for a class implementing the neoscan algorithm. This algorithm scans for positive selection between ancient and modern data. It can take advantage of the dating for each individual ancient sample.
Definition at line 21 of file jade.neoscan.hpp.
typedef basic_genotype_matrix_factory<value_type> jade::basic_neoscan< TValue >::genotype_matrix_factory_type |
The genotype matrix factory type.
Definition at line 43 of file jade.neoscan.hpp.
typedef basic_genotype_matrix<value_type> jade::basic_neoscan< TValue >::genotype_matrix_type |
The genotype matrix type.
Definition at line 38 of file jade.neoscan.hpp.
typedef basic_matrix<value_type> jade::basic_neoscan< TValue >::matrix_type |
The matrix type.
Definition at line 32 of file jade.neoscan.hpp.
typedef TValue jade::basic_neoscan< TValue >::value_type |
The value type.
Definition at line 29 of file jade.neoscan.hpp.
typedef basic_verification<value_type> jade::basic_neoscan< TValue >::verification_type |
The verification type.
Definition at line 35 of file jade.neoscan.hpp.
|
inline |
Initializes a new instance of the class. Memory for the specified G, Q, and Fa matrices must remain valid for the lifetime of this instance.
g | The G matrix. |
q | The Q matrix. |
f | The F matrix. |
years | The years matrix. |
Definition at line 89 of file jade.neoscan.hpp.
|
inline |
Executes the algorithm using the specified action for the output of each column.
output_action | The action to perform for the output; this function or lambda must take one argument of type, output. |
Definition at line 112 of file jade.neoscan.hpp.
|
inlinestatic |
Runs the program based on command-line arguments.
a | The command-line arguments. |
Definition at line 168 of file jade.neoscan.hpp.