1 #ifndef _RELATEDNESS_H_
2 #define _RELATEDNESS_H_
11 #include "interface.h"
14 #include "genotype_pair.h"
15 #include "relatedness_data.h"
16 #include "newton-method-rel.h"
17 #include "constants.h"
24 #include <gsl/gsl_multimin.h>
25 #include <gsl/gsl_permutation.h>
26 #include <gsl/gsl_vector.h>
27 #include <gsl/gsl_matrix.h>
28 #include <gsl/gsl_linalg.h>
29 #include <gsl/gsl_blas.h>
34 int estimateRel(
int argc,
char *argv[]);
42 std::map <Genotype_pair_tuple, size_t>
43 hash_genotypes (
const std::stringstream &,
const size_t &,
const size_t &,
const bool &);
46 std::map <Genotype_pair_tuple, size_t>
47 downsample_genotypes (
const std::stringstream &,
const size_t &,
const size_t &,
const bool &);
51 set_e(
Relatedness &relatedness, std::map <Genotype_pair_tuple, size_t> &hashed_genotypes);
55 gestimate(
Relatedness &relatedness, std::map <Genotype_pair_tuple, size_t> &counts);
76 rel_ll (
const gsl_vector *v,
void *void_hashed_genotypes_p);
81 maximize(
Relatedness &rel, std::map <Genotype_pair_tuple, size_t> &hashed_genotypes);
84 get_llr(
Relatedness &rel, std::map <Genotype_pair_tuple, size_t> hashed_genotypes);
Definition: genotype_pair.h:19