diff options
| author | Pjotr Prins | 2025-12-01 11:23:04 +0100 |
|---|---|---|
| committer | Pjotr Prins | 2025-12-01 11:23:04 +0100 |
| commit | 32a5367f0a0a00bec7e610b74abc899521a75fa5 (patch) | |
| tree | e0e74b3499d1ec270e95f2fc7142d0ede1a30675 /src/param.cpp | |
| parent | 02149fb38d05b14f74caa458741b1512bbf6a8d5 (diff) | |
| download | pangemma-32a5367f0a0a00bec7e610b74abc899521a75fa5.tar.gz | |
Almost ready to run GWA
Diffstat (limited to 'src/param.cpp')
| -rw-r--r-- | src/param.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/param.cpp b/src/param.cpp index a81d18f..45904cd 100644 --- a/src/param.cpp +++ b/src/param.cpp @@ -227,8 +227,6 @@ void PARAM::ReadFiles(void) { indicator_idv.push_back(k); } - ns_test = 0; // number of snps to test - return; } @@ -339,7 +337,14 @@ void PARAM::ReadFiles(void) { } // lmdb-type genotype file: if (is_mdb && !file_geno.empty()) { - ns_total = indicator_snp.size(); + if (!file_kin.empty()) { // GWA + // Phenotype file before genotype file. Already done this(?!) + if (ReadFile_pheno(file_pheno, indicator_pheno, pheno, p_column) == false) { + error = true; + } + ProcessInclusionIndicators(); + ns_total = indicator_snp.size(); + } } // Read genotype file for multiple PLINK files. |
