| removedSnpMissDiff | R Documentation |
Remove SNPs with difference in SNP missingness between cases and controls. To test for differential call rates between cases and controls for each SNP
removedSnpMissDiff( plink, inputPrefix, snpMissDifCutOff, outputPrefix, groupLabel )
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. |
snpMissDifCutOff |
the cutoff of the difference in missingness between cases and controls. |
outputPrefix |
the prefix of the output PLINK binary files. |
groupLabel |
a string value indicating the outcome label: "control",
or, "case" or "caseControl" for both existing groups. For more details, see
|
Only if both case-control groups exist in the input genotype data, differential SNPs are removed.
The output PLINK binary files.
Junfang Chen
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, " ."))
inputPrefix <- "genoUpdatedData"
snpMissDifCutOff <- 0.02
outputPrefix <- "2_09_removedSnpMissDiff"
groupLabel <- "control"
## Not run: Requires an executable program PLINK, e.g.
## plink <- "/home/tools/plink"
## removedSnpMissDiff(plink, inputPrefix, snpMissDifCutOff,
## outputPrefix, groupLabel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.