View source: R/phasingImpute.R
removedMonoSnp | R Documentation |
Detect monomorphic SNPs from PLINK BIM file and exclude them if any.
removedMonoSnp(plink, inputPrefix, outputPrefix, outputSNPfile)
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. |
outputPrefix |
the prefix of the output PLINK binary files after removing monomorphic SNPs. |
outputSNPfile |
the output pure text file that stores the removed monomorphic SNPs, one per line, if any. |
The output PLINK binary files after removing monomorphic SNPs and a pure text file with removed monomorphic SNPs.
Junfang Chen
## In the current working directory bedFile <- system.file("extdata", "alignedData.bed", package="Gimpute") bimFile <- system.file("extdata", "alignedData.bim", package="Gimpute") famFile <- system.file("extdata", "alignedData.fam", package="Gimpute") system(paste0("scp ", bedFile, " .")) system(paste0("scp ", bimFile, " .")) system(paste0("scp ", famFile, " .")) inputPrefix <- "alignedData" outputPrefix <- "removedMonoSnp" outputSNPfile <- "monoSNP.txt" ## Not run: Requires an executable program PLINK, e.g. ## plink <- "/home/tools/plink" ## removedMonoSnp(plink, inputPrefix, outputPrefix, outputSNPfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.