| removedSnpHWEauto | R Documentation |
Remove autosomal SNPs deviating from Hardy Weinberg Equilibrium (HWE).
removedSnpHWEauto( groupLabel, plink, inputPrefix, pval = 1e-06, outputPvalFile, outputSNPfile, outputPrefix )
groupLabel |
a string value indicating the outcome label: "control",
or, "case" or "caseControl" for both existing groups. For more details, see
|
plink |
an executable program in either the current working directory or somewhere in the command path. |
inputPrefix |
the prefix of the input PLINK binary files. |
pval |
the p-value cutoff for controlling HWE test in either control or case subjects. Only autosomal SNPs are considered. The default value is 0.000001. |
outputPvalFile |
the output pure text file that stores autosomal SNPs and their sorted HWE p-values. |
outputSNPfile |
the output pure text file that stores the removed SNPs, one per line. |
outputPrefix |
the prefix of the output PLINK binary files. |
The output PLINK binary files after HWE test on the autosome.
Junfang Chen
removedSnpFemaleChrXhweControl,
getGroupLabel.
## In the current working directory
bedFile <- system.file("extdata", "genoUpdatedData.bed", package="Gimpute")
bimFile <- system.file("extdata", "genoUpdatedData.bim", package="Gimpute")
famFile <- system.file("extdata", "genoUpdatedData.fam", package="Gimpute")
system(paste0("scp ", bedFile, bimFile, famFile, " ."))
groupLabel <- "control"
inputPrefix <- "genoUpdatedData" ## Specify the input PLINK file prefix
outputPvalFile <- "2_11_snpHwePvalAuto.txt"
outputSNPfile <- "2_11_snpRemovedHweAuto.txt"
outputPrefix <- "2_11_removedSnpHweAuto"
## Not run: Requires an executable program PLINK, e.g.
## plink <- "/home/tools/plink"
## removedSnpHWEauto(groupLabel, plink, inputPrefix, pval=0.000001,
## outputPvalFile, outputSNPfile, outputPrefix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.