From 3935ba39d30666dd7d4a831155631847c77b70c4 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Wed, 2 Aug 2017 08:46:58 +0000 Subject: Massive patch using LLVM coding style. It was generated with: clang-format -style=LLVM -i *.cpp *.h Please set your editor to replace tabs with spaces and use indentation of 2 spaces. --- src/ldr.h | 62 ++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 30 insertions(+), 32 deletions(-) (limited to 'src/ldr.h') diff --git a/src/ldr.h b/src/ldr.h index ab55fe2..6720689 100644 --- a/src/ldr.h +++ b/src/ldr.h @@ -19,53 +19,51 @@ #ifndef __LDR_H__ #define __LDR_H__ -#include -#include -#include -#include #include "param.h" +#include +#include +#include +#include using namespace std; class LDR { public: - // IO-related parameters. - int a_mode; - size_t d_pace; + // IO-related parameters. + int a_mode; + size_t d_pace; - string file_bfile; - string file_geno; - string file_out; - string path_out; + string file_bfile; + string file_geno; + string file_out; + string path_out; - // Summary statistics. - size_t ni_total, ns_total; // Total number of individuals & SNPs. - size_t ni_test, ns_test; // Number of individuals & SNPs used - // for analysis - size_t n_cvt; // Number of covariates. + // Summary statistics. + size_t ni_total, ns_total; // Total number of individuals & SNPs. + size_t ni_test, ns_test; // Number of individuals & SNPs used + // for analysis + size_t n_cvt; // Number of covariates. - // Indicator for individuals (phenotypes): 0 missing, 1 - // available for analysis. - vector indicator_idv; + // Indicator for individuals (phenotypes): 0 missing, 1 + // available for analysis. + vector indicator_idv; - // Sequence indicator for SNPs: 0 ignored because of (a) maf, - // (b) miss, (c) non-poly; 1 available for analysis. - vector indicator_snp; + // Sequence indicator for SNPs: 0 ignored because of (a) maf, + // (b) miss, (c) non-poly; 1 available for analysis. + vector indicator_snp; - vector snpInfo; // Record SNP information. + vector snpInfo; // Record SNP information. - // Not included in PARAM. - gsl_rng *gsl_r; + // Not included in PARAM. + gsl_rng *gsl_r; - // Main functions. - void CopyFromParam (PARAM &cPar); - void CopyToParam (PARAM &cPar); + // Main functions. + void CopyFromParam(PARAM &cPar); + void CopyToParam(PARAM &cPar); - void VB(const vector > &Xt, - const gsl_matrix *W_gsl, const gsl_vector *y_gsl); + void VB(const vector> &Xt, const gsl_matrix *W_gsl, + const gsl_vector *y_gsl); }; #endif - - -- cgit v1.2.3