Skip to content

Commit

Permalink
Add midp modifier for --hwe and --hardy as recommended on [plink hwe …
Browse files Browse the repository at this point in the history
…documentation](https://www.cog-genomics.org/plink/1.9/filter#hwe) and discussed in issue #27.
  • Loading branch information
HannahVMeyer committed Aug 5, 2020
1 parent 5c9cd4c commit d009da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/applyQC.R
Expand Up @@ -266,7 +266,7 @@ cleanData <- function(indir, name, qcdir=indir,
if (is.null(hweTh)) {
stop("filterHWE is TRUE but hweTh not specified")
} else {
hwe <- c("--hwe", hweTh)
hwe <- c("--hwe midp", hweTh)
}
}
if (filterMAF) {
Expand Down
2 changes: 1 addition & 1 deletion R/markerQC.R
Expand Up @@ -436,7 +436,7 @@ check_hwe <- function(indir, name, qcdir=indir, hweTh=1e-5, interactive=FALSE,
}
suffix <- ""
sys::exec_wait(path2plink,
args=c("--bfile", prefix, "--hardy", "--out",
args=c("--bfile", prefix, "--hardy midp", "--out",
paste(out, suffix, sep="")),
std_out=showPlinkOutput, std_err=showPlinkOutput)
} else {
Expand Down

0 comments on commit d009da9

Please sign in to comment.