Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengxwen committed Mar 29, 2019
1 parent 09cb24f commit 1c0714f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ install:

# Adapt as necessary starting from here

environment:
matrix:
- R_VERSION: stable
R_ARCH: x64
BIOC_USE_DEVEL: FALSE

build_script:
- travis-tool.sh install_bioc_deps
- travis-tool.sh install_github zhengxwen/gdsfmt
Expand Down
4 changes: 2 additions & 2 deletions src/genPCA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// genPCA.cpp: Principal Component Analysis on GWAS
//
// Copyright (C) 2011-2018 Xiuwen Zheng
// Copyright (C) 2011-2019 Xiuwen Zheng
//
// This file is part of SNPRelate.
//
Expand Down Expand Up @@ -218,7 +218,7 @@ void CProdMat_AlgArith::PCA_Detect_BlockNumSNP(int nSamp)
size_t Cache = GetOptimzedCache();
BlockNumSNP = Cache / (sizeof(double)*nSamp);
BlockNumSNP = (BlockNumSNP / 4) * 4;
if (BlockNumSNP < 16) BlockNumSNP = 16;
if (BlockNumSNP < 64) BlockNumSNP = 64;
}

// time-consuming function
Expand Down

0 comments on commit 1c0714f

Please sign in to comment.