diff options
| author | Pjotr Prins | 2025-11-27 13:42:10 +0100 |
|---|---|---|
| committer | Pjotr Prins | 2025-11-27 13:42:10 +0100 |
| commit | eb037e2b78bc6bbeca8dde0c62f9d916e2a7bedc (patch) | |
| tree | f46bf143b93efbffdb03a0a057f777626f558243 /src/param.cpp | |
| parent | fad3d64d66a4705b3da33a90480c7e24c35b9c44 (diff) | |
| download | pangemma-eb037e2b78bc6bbeca8dde0c62f9d916e2a7bedc.tar.gz | |
Introduce first test
Diffstat (limited to 'src/param.cpp')
| -rw-r--r-- | src/param.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/param.cpp b/src/param.cpp index 9e55693..82121b9 100644 --- a/src/param.cpp +++ b/src/param.cpp @@ -318,7 +318,7 @@ void PARAM::ReadFiles(void) { trim_individuals(indicator_idv, ni_max); trim_individuals(indicator_cvt, ni_max); - // The following reads the geno file to get the SNPs + // The following reads the geno file to get the SNPs - only for BIMBAM if (is_bimbam && ReadFile_bimbam_geno(file_geno, setSnps, W2, indicator_idv, indicator_snp, maf_level, miss_level, hwe_level, r2_level, mapRS2chr, mapRS2bp, mapRS2cM, snpInfo, ns_test) == false) { @@ -392,7 +392,7 @@ void PARAM::ReadFiles(void) { infile.clear(); } - // Read genotype and phenotype file for multiple BIMBAM files. + // Read genotype and phenotype file for multiple BIMBAM files. Note this goes untested. if (!file_mgeno.empty()) { // Annotation file before genotype file. @@ -1273,8 +1273,8 @@ void PARAM::ReadBIMBAMGenotypes(gsl_matrix *UtX, gsl_matrix *K, const bool calc_ error = true; } } else { - // Read BIMBAM. Not supposed to be mdb - if (is_mdb || ReadFile_geno(file_geno, indicator_idv, indicator_snp, UtX, K, calc_K) == false) { + // Read BIMBAM + if (is_bimbam && ReadFile_geno(file_geno, indicator_idv, indicator_snp, UtX, K, calc_K) == false) { error = true; } } |
