Skip to content

Commit

Permalink
fixed bug for MVP.Data
Browse files Browse the repository at this point in the history
  • Loading branch information
YinLiLin committed Sep 24, 2024
1 parent f2dc1c9 commit f31f5f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions R/MVP.Data.r
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ MVP.Data <- function(fileMVP = NULL, fileVCF = NULL, fileHMP = NULL, fileBed = N
sep = sep.kin,
cpu = ncpus
)
}else{
K <- NULL
}

# get pc
Expand Down
2 changes: 1 addition & 1 deletion R/MVP.PCA.r
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function(M=NULL, K=NULL, maxLine=10000, ind_idx=NULL, mrk_idx=NULL, pcs.keep=5,
if(is.null(K)){
K <- MVP.K.VanRaden(M=M, ind_idx = ind_idx, mrk_idx = mrk_idx, maxLine = maxLine, cpu = cpu, verbose = verbose)
}else{
K <- K[ind_idx, ind_idx]
if(!is.null(ind_idx)) K <- K[ind_idx, ind_idx]
}

logging.log("Eigen Decomposition on GRM", "\n", verbose = verbose)
Expand Down
1 change: 0 additions & 1 deletion src/mvp_omp.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#if defined(_OPENMP)
#include <omp.h>
// [[Rcpp::plugins(openmp)]]
#else
#endif

Expand Down

0 comments on commit f31f5f2

Please sign in to comment.