1 /* 2 Genome-wide Efficient Mixed Model Association (GEMMA) 3 Copyright (C) 2011-2017, Xiang Zhou 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #include <fstream> 20 #include <iostream> 21 #include <sstream> 22 23 #include <algorithm> 24 #include <cmath> 25 #include <cstring> 26 #include <ctime> 27 #include <iomanip> 28 #include <iostream> 29 #include <stdio.h> 30 #include <stdlib.h> 31 32 #include "gsl/gsl_blas.h" 33 #include "gsl/gsl_cdf.h" 34 #include "gsl/gsl_eigen.h" 35 #include "gsl/gsl_linalg.h" 36 #include "gsl/gsl_matrix.h" 37 #include "gsl/gsl_randist.h" 38 #include "gsl/gsl_roots.h" 39 #include "gsl/gsl_vector.h" 40 41 #include "lapack.h" 42 #include "ldr.h" 43 #include "lm.h" 44 #include "mathfunc.h" 45 #include "param.h" 46 47 using namespace std; 48 CopyFromParam(PARAM & cPar)49void LDR::CopyFromParam(PARAM &cPar) { 50 a_mode = cPar.a_mode; 51 d_pace = cPar.d_pace; 52 53 file_bfile = cPar.file_bfile; 54 file_geno = cPar.file_geno; 55 file_out = cPar.file_out; 56 path_out = cPar.path_out; 57 58 ni_total = cPar.ni_total; 59 ns_total = cPar.ns_total; 60 ni_test = cPar.ni_test; 61 ns_test = cPar.ns_test; 62 n_cvt = cPar.n_cvt; 63 64 indicator_idv = cPar.indicator_idv; 65 indicator_snp = cPar.indicator_snp; 66 snpInfo = cPar.snpInfo; 67 68 return; 69 } 70 71 CopyToParam(PARAM & cPar)72void LDR::CopyToParam(PARAM &cPar) { return; } 73 74