removedSnpMiss | R Documentation |
Remove SNPs with missingness of greater than a certain threshold.
removedSnpMiss(plink, snpMissCutOff, inputPrefix, outputPrefix)
plink |
an executable program in either the current working directory or somewhere in the command path. |
snpMissCutOff |
the cutoff of the missingness for removing SNPs. |
inputPrefix |
the prefix of the input PLINK binary files. |
outputPrefix |
the prefix of the output PLINK binary files. |
The output PLINK binary files after removing SNPs with pre-defined missing values.
Junfang Chen
## 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, " .")) snpMissCutOff <- 0.05 inputPrefix <- "genoUpdatedData" outputPrefix <- "2_04_removedSnpMissPre" ## Not run: Requires an executable program PLINK, e.g. ## plink <- "/home/tools/plink" ## removedSnpMiss(plink, snpMissCutOff, inputPrefix, outputPrefix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.